/* ═══════════════════════════════════════════
   TOKENS
═══════════════════════════════════════════ */
:root {
  --black:   #0B0B0F;
  --fucsia:  #FF2D8D;
  --white:   #F5F5F7;
  --gray:    #1A1A22;
  --gray-lt: #F0F0F4;
  --muted:   #888899;
  --font:    'Inter', system-ui, sans-serif;
  --radius:  12px;
  --transition: 220ms ease;
}

/* ═══════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  /* Offset anchor jumps so the section heading isn't hidden
     under the fixed 52px header. */
  scroll-padding-top: 32px;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

img, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; font: inherit; border: none; background: none; }

:focus-visible {
  outline: 2px solid var(--fucsia);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ═══════════════════════════════════════════
   LAYOUT
═══════════════════════════════════════════ */
.container        { max-width: 1200px; margin-inline: auto; padding-inline: 24px; }
.container-narrow { max-width: 800px;  margin-inline: auto; padding-inline: 24px; }
.text-center      { text-align: center; }

/* ═══════════════════════════════════════════
   SECTIONS
═══════════════════════════════════════════ */
.section-dark  { background-color: var(--black); color: var(--white); }
.section-light { background-color: var(--gray-lt); color: var(--black); }

.section-dark  h2,
.section-dark  h3 { color: var(--white); }
.section-light h2,
.section-light h3 { color: var(--black); }

section:not(.hero):not(.section-cta-final) { padding-block: 72px; }

.section-sub {
  font-size: 1.125rem;
  color: var(--muted);
  margin-top: 12px;
  margin-bottom: 44px;
  max-width: 640px;
}
.section-dark  .section-sub { color: #b8b8c4; }
.section-light .section-sub { color: #555; }

/* ═══════════════════════════════════════════
   TYPOGRAPHY
═══════════════════════════════════════════ */
h1 { font-size: clamp(2.5rem, 6vw, 3.5rem); font-weight: 900; line-height: 1.1; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; }
h3 { font-size: 1.125rem; font-weight: 700; line-height: 1.35; }
p  { line-height: 1.7; }

.accent { color: var(--fucsia); }

/* ═══════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  transition-property: background, color, border-color, transform, box-shadow;
  white-space: nowrap;
}

.btn-primary {
  background: var(--fucsia);
  color: #fff;
  border: 2px solid var(--fucsia);
}
.btn-primary:hover {
  background: transparent;
  color: var(--fucsia);
}
.section-light .btn-primary:hover { color: var(--fucsia); }

.btn-outline {
  background: transparent;
  color: var(--fucsia);
  border: 2px solid var(--fucsia);
}
.btn-outline:hover {
  background: var(--fucsia);
  color: #fff;
}

.btn-sm  { padding: 8px 18px; font-size: 0.85rem; }
.btn-lg  { padding: 16px 36px; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; }

/* ═══════════════════════════════════════════
   NAV
═══════════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(11, 11, 15, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background var(--transition);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 24px;
}

.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.logo-seo     { font-size: 1.15rem; font-weight: 900; color: var(--fucsia); letter-spacing: -0.02em; }
.logo-mallorca{ font-size: 1.15rem; font-weight: 900; color: var(--white);  letter-spacing: -0.02em; display: inline; }
.logo-tld     { font-size: 1.15rem; font-weight: 900; color: var(--muted);  letter-spacing: -0.02em; }
.logo-sub     { font-size: 0.6rem; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; margin-top: 2px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a:not(.btn) {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--white);
  transition: color var(--transition);
}
.nav-links a:not(.btn):hover { color: var(--fucsia); }
.nav-links a:not(.btn)[aria-current="page"] { color: var(--fucsia); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ═══════════════════════════════════════════
   HERO
═══════════════════════════════════════════ */
.hero {
  min-height: 100vh;         /* fallback for older browsers */
  min-height: 100svh;        /* small viewport — respects mobile URL bars */
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 60px;
  background: var(--black);
  position: relative;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  padding-block: 80px;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-kicker {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fucsia);
  padding: 6px 14px;
  border: 1px solid rgba(255, 45, 141, 0.3);
  border-radius: 999px;
  background: rgba(255, 45, 141, 0.08);
  margin-bottom: -8px; /* Tighten gap to H1 since hero-text already has gap:24 */
}
@media (max-width: 1024px) {
  .hero-kicker { align-self: center; }
}

.hero-sub {
  font-size: 1.125rem;
  color: #bbb;
  max-width: 480px;
}
.hero-sub strong { color: var(--fucsia); font-weight: 600; }

.hero-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hero-features li {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1.4;
}
.hero-features li::before {
  content: '';
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><circle cx='10' cy='10' r='10' fill='%23FF2D8D'/><path d='M5.5 10.5l3 3 6-6' stroke='white' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-size: contain;
  background-repeat: no-repeat;
}

.hero-map {
  display: flex;
  align-items: center;
  justify-content: center;
}

#mallorca-canvas {
  width: 100%;
  max-width: 680px;
  height: auto;
  aspect-ratio: 900 / 620;
}

.hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--fucsia);
  opacity: 0.75;
  transition: opacity var(--transition);
}
.hero-scroll:hover { opacity: 1; }

/* ═══════════════════════════════════════════
   FORM SECTION
═══════════════════════════════════════════ */
.section-form { padding-block: 72px; }
.section-form h2 { margin-bottom: 12px; }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 40px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #bbb;
}
.form-optional {
  /* "(opcional)" hint inline with the label. Subtler than the label
     so users know at a glance which fields they can skip. */
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--muted);
  margin-left: 4px;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--gray);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  color: var(--white);
  font: inherit;
  font-size: 0.95rem;
  padding: 12px 16px;
  transition: border-color var(--transition);
  -webkit-appearance: none;
  appearance: none;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath fill='%23888899' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: #555; }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--fucsia);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--fucsia);
  cursor: pointer;
}
.form-check label {
  font-size: 0.85rem;
  color: #888;
  line-height: 1.5;
}
.form-check label a {
  color: var(--fucsia);
  text-decoration: underline;
}

.hp-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note {
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}

/* Form success / error states */
.form-message {
  padding: 16px 20px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 500;
  display: none;
}
.form-message.success { background: rgba(34,197,94,0.15); border: 1px solid rgba(34,197,94,0.4); color: #4ade80; }
.form-message.error   { background: rgba(239,68,68,0.15);  border: 1px solid rgba(239,68,68,0.4);  color: #f87171; }

/* ═══════════════════════════════════════════
   CLIENTES — Banda de logos (dark)
═══════════════════════════════════════════ */
.section-clients {
  background-color: var(--gray-lt);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  /* Override the default 72px section padding for a tighter band */
  padding-block: 56px !important;
}
.clients-title {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.55);
  margin-bottom: 36px;
}
.clients-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px 48px;
  align-items: center;
  justify-items: center;
  max-width: 1100px;
  margin: 0 auto;
}
.client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 56px;
}
.client-logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  /* Logos are pre-baked white. Apply opacity for muted look,
     full opacity on hover for engagement. */
  opacity: 0.65;
  transition: opacity 0.25s ease;
  /* Per-logo size tweaks via CSS variable so we can normalize visual weight */
  max-height: var(--logo-h, 56px);
}
.client-logo:hover img,
.client-logo:focus-within img {
  opacity: 1;
}
/* Per-logo height adjustments — some logos read smaller/thinner than others
   and need a slight boost or trim to feel visually balanced in the row. */
.client-logo:nth-child(1) img { --logo-h: 36px; }   /* meliá: slim wordmark, slightly bigger */
.client-logo:nth-child(2) img { --logo-h: 50px; }   /* uib */
.client-logo:nth-child(3) img { --logo-h: 50px; }   /* arabella golf */
.client-logo:nth-child(4) img { --logo-h: 48px; }   /* ajuntament palma */
.client-logo:nth-child(5) img { --logo-h: 44px; }   /* fashion outlet (2-line, balance with neighbors) */
.client-logo:nth-child(6) img { --logo-h: 50px; }   /* espacio home design */
.client-logo:nth-child(7) img { --logo-h: 56px; }   /* baleares international college (text-heavy, taller) */
.client-logo:nth-child(8) img { --logo-h: 50px; }   /* la sirena art */

/* ═══════════════════════════════════════════
   PROBLEMA
═══════════════════════════════════════════ */
.section-problem h2 {
  margin-bottom: 0;
  max-width: 900px;
}

.section-problem .problem-grid { margin-top: 44px; }

/* Generic safety net: any h2 directly followed by a grid gets breathing room.
   44px matches the margin-bottom of .section-sub so sections with and
   without a subtitle end up with similar spacing. */
h2 + .problem-grid,
h2 + .services-grid,
h2 + .plans-grid { margin-top: 44px; }

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.problem-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}

.problem-icon {
  display: block;
  font-size: 2rem;
  margin-bottom: 20px;
  width: 40px;
  height: 40px;
}

.problem-card h3 {
  color: var(--black);
  margin-bottom: 12px;
}

.problem-card p {
  color: #555;
  font-size: 0.95rem;
}

.problem-empathy {
  margin-top: 56px;
  padding-top: 40px;
  text-align: center;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--black);
  line-height: 1.4;
  position: relative;
}
/* Short fucsia accent bar above the sentence, purely decorative */
.problem-empathy::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 3px;
  background: var(--fucsia);
  border-radius: 2px;
}

/* ═══════════════════════════════════════════
   SERVICIOS
═══════════════════════════════════════════ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.service-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 36px 32px;
  position: relative;
  border: 2px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.service-card:hover {
  border-color: var(--fucsia);
  box-shadow: 0 4px 32px rgba(255,45,141,0.12);
}
.service-card--featured {
  border-color: var(--fucsia);
  background: linear-gradient(135deg, #fff 0%, #fff5fa 100%);
}

.service-badge, .plan-badge {
  position: absolute;
  top: -1px;
  right: 24px;
  background: var(--fucsia);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 0 0 var(--radius) var(--radius);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.service-icon { margin-bottom: 20px; }

.service-card h3 { color: var(--black); margin-bottom: 10px; }
.service-card p  { color: #555; font-size: 0.95rem; margin-bottom: 20px; }

.service-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--fucsia);
  background: rgba(255,45,141,0.08);
  padding: 4px 12px;
  border-radius: 20px;
}

/* ═══════════════════════════════════════════
   PLANES
═══════════════════════════════════════════ */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  /* align-items defaults to 'stretch', which equalizes card heights
     in the grid. We rely on this so the 3 plan-cards line up at top
     and bottom regardless of how many bullets each has. */
}

.plan-card {
  background: var(--gray);
  border-radius: var(--radius);
  padding: 36px 28px;
  position: relative;
  border: 2px solid rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: border-color var(--transition);
}
.plan-card:hover { border-color: rgba(255,45,141,0.4); }
.plan-card--featured {
  border-color: var(--fucsia);
  background: linear-gradient(160deg, #1A1A22 0%, #1f0a14 100%);
}

.plan-name {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.plan-card--featured .plan-name { color: var(--fucsia); }

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  flex-wrap: wrap;
}
.price-from   { font-size: 0.8rem; color: var(--muted); }
.price-amount { font-size: 2.5rem; font-weight: 900; color: var(--white); line-height: 1; }
.price-currency{ font-size: 1.25rem; font-weight: 700; }
.price-period { font-size: 0.9rem; color: var(--muted); }
.price-asterisk {
  /* Same color as price-period so it reads as a regular footnote mark.
     Slightly smaller and lifted to keep visual hierarchy. */
  font-size: 0.85em;
  margin-left: 2px;
  vertical-align: super;
  line-height: 0;
}

.plan-desc { font-size: 0.9rem; color: #888; }

/* Footnote/legal note under a plan's CTA. Small, low-contrast,
   sits flush against the bottom edge of the card. */
.plan-disclaimer {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 12px;
  margin-bottom: 0;
  line-height: 1.5;
  text-align: center;
}

.plan-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
/* Push the CTA button to the bottom of the card so all 3 buttons
   line up horizontally, regardless of how many bullets each plan has. */
.plan-card .btn-full {
  margin-top: auto;
}
.plan-features li {
  font-size: 0.9rem;
  color: #ccc;
  padding-left: 20px;
  position: relative;
}
.plan-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--fucsia);
  font-weight: 700;
}

.plans-note {
  text-align: center;
  margin-top: 40px;
  font-size: 0.875rem;
  color: var(--muted);
}
.plans-note strong { color: var(--white); }

/* ═══════════════════════════════════════════
   METODOLOGÍA
═══════════════════════════════════════════ */
.method-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  counter-reset: none;
}

.method-step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  align-items: start;
  padding-block: 40px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  position: relative;
}
.method-step:last-child { border-bottom: none; }

.step-num {
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1;
  opacity: 0.25;
  transition: opacity var(--transition);
}
.method-step:hover .step-num { opacity: 1; }

.step-content h3 { margin-bottom: 8px; color: var(--black); }
.step-content p  { color: #555; font-size: 0.95rem; }

/* ═══════════════════════════════════════════
   RESULTADOS
═══════════════════════════════════════════ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 64px;
  text-align: center;
}

.stat-num {
  display: block;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 12px;
}

.stat-label {
  font-size: 0.9rem;
  color: #888;
  line-height: 1.5;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.testimonial {
  background: var(--gray);
  border-radius: var(--radius);
  padding: 32px;
  border-left: 3px solid var(--fucsia);
  display: flex;
  flex-direction: column;
}
.testimonial blockquote { margin: 0; flex: 1; }

.testimonial p {
  font-size: 1rem;
  color: #ccc;
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 0;
}

/* Author block: round portrait + name + role, side by side */
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.testimonial-photo {
  flex-shrink: 0;
  display: block;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
}
.testimonial-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.testimonial-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.testimonial-name {
  font-size: 0.95rem;
  font-weight: 600;
  font-style: normal;
  color: var(--white);
}
.testimonial-role {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.35;
}

/* ═══════════════════════════════════════════
   SOBRE NOSOTROS
═══════════════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 64px;
  align-items: center;
  max-width: 1080px;
}

.about-text h2 { margin-bottom: 24px; }
.about-text p  { margin-bottom: 16px; }

.about-photo {
  flex-shrink: 0;
}
.about-photo picture,
.about-photo img {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  /* Editorial-style drop shadow: anchors the figure on the dark section bg
     without any halo. Two stacked shadows give depth (close + diffuse)
     and feel cleaner than a glow on dark-themed pages. */
  filter:
    drop-shadow(0 18px 32px rgba(0, 0, 0, 0.45))
    drop-shadow(0 4px 8px rgba(0, 0, 0, 0.30));
}

.about-values {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
}
.about-values li {
  font-size: 0.95rem;
  font-weight: 500;
}
.about-values .accent { margin-right: 10px; }

/* Full-width background image with dark gradient overlay.
   Responsive: different sizes per viewport to minimise download.
   JPG fallback for the base, WebP via image-set where supported. */
.section-about {
  position: relative;
  background-color: #0B0B0F;
  background-image: url('/assets/img/nosotros-1600w.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--white);
}
/* Serve smaller images on smaller screens */
@media (max-width: 640px) {
  .section-about {
    background-image: url('/assets/img/nosotros-640w.webp');
  }
}
@media (min-width: 641px) and (max-width: 1024px) {
  .section-about {
    background-image: url('/assets/img/nosotros-1024w.webp');
  }
}
@media (min-resolution: 2dppx) and (min-width: 1025px) {
  .section-about {
    background-image: url('/assets/img/nosotros-2400w.webp');
  }
}
/* Dark-to-transparent gradient overlay from the left (text side)
   to the right (image visible). Also a subtle fucsia warm tint. */
.section-about::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    linear-gradient(90deg,
      rgba(11, 11, 15, 0.92) 0%,
      rgba(11, 11, 15, 0.82) 35%,
      rgba(11, 11, 15, 0.55) 60%,
      rgba(11, 11, 15, 0.25) 80%,
      rgba(11, 11, 15, 0.10) 100%),
    linear-gradient(135deg,
      rgba(255, 45, 141, 0.06) 0%,
      transparent 60%);
}
.section-about .container {
  position: relative;
  z-index: 1;
}
/* Override light-section defaults: text must be white here */
.section-about.section-light { background-color: transparent; }
.section-about h2 { color: var(--white); }
.section-about .about-text p { color: rgba(255,255,255,0.8); }
.section-about .about-values li { color: rgba(255,255,255,0.9); }
.section-about .about-values .accent { color: var(--fucsia); }

/* ═══════════════════════════════════════════
   FAQ
═══════════════════════════════════════════ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 32px;
}

.faq-item {
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* Reset h3 defaults so it visually behaves like the old <dt>:
   the button inside is what carries the weight/size. */
.faq-heading {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 24px 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: color var(--transition);
}
.faq-question:hover { color: var(--fucsia); }

.faq-icon {
  width: 20px;
  height: 20px;
  border: 2px solid currentColor;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  transition: transform var(--transition), border-color var(--transition);
}
.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  background: currentColor;
  border-radius: 1px;
  transition: transform var(--transition), opacity var(--transition);
}
.faq-icon::before { width: 8px; height: 2px; transform: translate(-50%, -50%); }
.faq-icon::after  { width: 2px; height: 8px; transform: translate(-50%, -50%); }

.faq-question[aria-expanded="true"] .faq-icon { border-color: var(--fucsia); transform: rotate(45deg); }
.faq-question[aria-expanded="true"] { color: var(--fucsia); }

.faq-answer {
  padding-bottom: 24px;
  color: #aaa;
  font-size: 0.95rem;
  line-height: 1.7;
}
.faq-answer p strong { color: var(--white); }
.faq-answer[hidden] { display: none; }

/* ═══════════════════════════════════════════
   CTA FINAL
═══════════════════════════════════════════ */
.section-cta-final {
  padding-block: 120px;
  background-color: var(--black);
  background-image:
    radial-gradient(ellipse 100% 70% at 50% 50%,
      rgba(255, 45, 141, 0.18) 0%,
      rgba(255, 45, 141, 0.08) 35%,
      transparent 70%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.section-cta-final > * { position: relative; z-index: 1; }

.section-cta-final h2 {
  max-width: 700px;
  margin-inline: auto;
  margin-bottom: 16px;
}

.cta-sub {
  color: #888;
  font-size: 1.125rem;
  margin-bottom: 40px;
}

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
.site-footer {
  background: #07070A;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-block: 56px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 12px;
  max-width: 280px;
  line-height: 1.6;
}

.footer-legal {
  text-align: right;
}
.footer-legal p {
  font-size: 0.8rem;
  color: #888;
  line-height: 1.7;
}
.footer-legal a {
  color: #999;
  transition: color var(--transition);
}
.footer-legal a:hover { color: var(--fucsia); }

.footer-credit {
  margin-top: 8px;
  font-size: 0.75rem;
  color: #666;
}
.footer-credit a {
  color: var(--fucsia);
  font-weight: 600;
}
.footer-credit a:hover { opacity: 0.8; }

/* ═══════════════════════════════════════════
   SCROLL ANIMATIONS
═══════════════════════════════════════════ */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: none;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
    padding-block: 48px;
  }
  .hero-text      { align-items: center; }
  .hero-sub       { text-align: center; }
  .hero-map       {
    order: -1;
    max-width: 520px;
    margin-inline: auto;
    opacity: 0.9;
  }
  #mallorca-canvas { max-width: 520px; }

  .services-grid   { grid-template-columns: 1fr; }
  .plans-grid      { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .stats-grid      { grid-template-columns: 1fr; }
  .testimonials-grid{ grid-template-columns: 1fr; }
  .about-grid      {
    grid-template-columns: 1fr;
    max-width: 100%;
    gap: 40px;
    text-align: center;
  }
  .about-text h2, .about-text p, .about-values { text-align: left; }
  .about-photo { display: flex; justify-content: center; }
  .about-photo picture, .about-photo img { max-width: 280px; }
  .footer-inner    { grid-template-columns: 1fr; text-align: center; }
  .footer-legal    { text-align: center; }
  .footer-brand p  { max-width: none; margin-inline: auto; }

  /* Clients: 3 cols on tablet — 7 logos = 3+3+1 (last centered) */
  .clients-grid { grid-template-columns: repeat(3, 1fr); gap: 32px 40px; }
}

@media (max-width: 768px) {
  section:not(.hero):not(.section-cta-final) { padding-block: 64px; }
  .section-sub { margin-bottom: 36px; }

  /* Mobile menu: full-screen overlay covering all page content.
     Uses visibility + transform instead of display:none so animations
     and stacking are reliable across all browsers. */
  .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: fixed;
    top: 60px;            /* below the fixed header */
    left: 0; right: 0;
    bottom: 0;            /* extend to bottom of viewport */
    background: rgba(11, 11, 15, 0.98);
    backdrop-filter: blur(16px);
    z-index: 99;          /* below header (100), above page content */
    padding: 8px 0 24px;
    overflow-y: auto;
    border-bottom: none;
    /* Hidden by default — slid up out of view */
    visibility: hidden;
    opacity: 0;
    transform: translateY(-100%);
    transition: transform 0.25s ease, opacity 0.2s ease, visibility 0s linear 0.25s;
  }
  .nav-links.open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    transition: transform 0.25s ease, opacity 0.2s ease, visibility 0s linear 0s;
  }
  .nav-links li {
    border-bottom: 1px solid rgba(255,255,255,0.06);
    width: 100%;
  }
  .nav-links li:last-child { border-bottom: none; }
  /* Each <a> fills the entire <li> so the whole row is clickable */
  .nav-links a:not(.btn) {
    display: block;
    width: 100%;
    padding: 18px 24px;
    font-size: 1.05rem;
    text-align: center;
  }
  .nav-links .btn {
    margin: 20px 24px 0;
    text-align: center;
    padding-block: 14px;
  }

  /* Lock background scroll while menu is open.
     The position:fixed + top:-savedY trick is set via JS to avoid the
     overflow:hidden iOS Safari bug where the body still scrolls. */
  body.menu-open {
    position: fixed;
    width: 100%;
    overflow: hidden;
  }

  /* Hamburger ↔ X animation when menu is open.
     The 3 spans collapse: middle fades, outer rotate ±45deg to form X. */
  .nav-toggle { display: flex; }
  .nav-toggle span {
    transform-origin: center;
    transition: transform 0.25s ease, opacity 0.2s ease;
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
    background: var(--white);
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
    background: var(--white);
  }

  .form-row    { grid-template-columns: 1fr; }
  .problem-grid{ grid-template-columns: 1fr; gap: 20px; }
  .section-cta-final { padding-block: 72px; }

  /* Clients: 2 cols on tablet/mobile to keep logos legible */
  .clients-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 32px; }
  .section-clients { padding-block: 48px !important; }
  .clients-title { margin-bottom: 28px; }

  .hero-inner { padding-block: 32px; gap: 24px; }
  .hero-map   { max-width: 420px; }
  #mallorca-canvas { max-width: 420px; }

  .method-step { padding-block: 28px; gap: 16px; grid-template-columns: 60px 1fr; }
  .step-num { font-size: 2rem; }
}

@media (max-width: 480px) {
  .container, .container-narrow { padding-inline: 16px; }
  section:not(.hero):not(.section-cta-final) { padding-block: 48px; }
  .section-sub { margin-bottom: 28px; }
  .hero-map { max-width: 340px; }
  #mallorca-canvas { max-width: 340px; }
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.5rem; }
  .btn-lg { padding: 14px 28px; font-size: 0.95rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ═══════════════════════════════════════════
   THEME OVERRIDES
   Adjustments for sections that changed from their
   original light/dark scheme. Grouped by section so
   it's easy to tweak if we move things around again.
═══════════════════════════════════════════ */

/* ── SERVICIOS: LIGHT → DARK ──
   Cards keep their white background (it looks intentional against
   dark), but the "featured" gradient and tag colours need tweaking. */
.section-services.section-dark .service-card {
  background: var(--gray);
  color: var(--white);
  border-color: rgba(255,255,255,0.06);
}
.section-services.section-dark .service-card:hover {
  border-color: var(--fucsia);
  box-shadow: 0 4px 32px rgba(255,45,141,0.18);
}
.section-services.section-dark .service-card--featured {
  background: linear-gradient(135deg, var(--gray) 0%, #2a0e1c 100%);
  border-color: var(--fucsia);
}
.section-services.section-dark .service-card h3 { color: var(--white); }
.section-services.section-dark .service-card p  { color: #bbb; }
.section-services.section-dark .service-tag {
  background: rgba(255,45,141,0.15);
  color: var(--fucsia);
}

/* ── PLANES: DARK → LIGHT ──
   Plan cards were dark, need to become light on the grey-light bg. */
.section-plans.section-light .plan-card {
  background: #fff;
  border-color: rgba(0,0,0,0.08);
  color: var(--black);
}
.section-plans.section-light .plan-card:hover {
  border-color: rgba(255,45,141,0.5);
  box-shadow: 0 4px 24px rgba(255,45,141,0.08);
}
.section-plans.section-light .plan-card--featured {
  background: linear-gradient(160deg, #fff 0%, #fff5fa 100%);
  border-color: var(--fucsia);
  box-shadow: 0 4px 32px rgba(255,45,141,0.12);
}
.section-plans.section-light .plan-name { color: #555; }
.section-plans.section-light .plan-card--featured .plan-name { color: var(--fucsia); }
.section-plans.section-light .price-amount { color: var(--black); }
.section-plans.section-light .price-from,
.section-plans.section-light .price-period { color: #555; }
.section-plans.section-light .plan-disclaimer { color: #777; }
.section-plans.section-light .plan-desc { color: #555; }
.section-plans.section-light .plan-features li { color: #333; }
.section-plans.section-light .plans-note { color: #555; }
.section-plans.section-light .plans-note strong { color: var(--black); }

/* ── METODOLOGÍA: LIGHT → DARK ──
   Background image with gradient overlay for depth. */
.section-method.section-dark {
  position: relative;
  background-color: #0B0B0F;
  background-image: url('/assets/img/metodo-1600w.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
@media (max-width: 640px) {
  .section-method.section-dark {
    background-image: url('/assets/img/metodo-640w.webp');
  }
}
@media (min-width: 641px) and (max-width: 1024px) {
  .section-method.section-dark {
    background-image: url('/assets/img/metodo-1024w.webp');
  }
}
@media (min-resolution: 2dppx) and (min-width: 1025px) {
  .section-method.section-dark {
    background-image: url('/assets/img/metodo-2400w.webp');
  }
}
.section-method.section-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    linear-gradient(180deg,
      rgba(11, 11, 15, 0.72) 0%,
      rgba(11, 11, 15, 0.62) 40%,
      rgba(11, 11, 15, 0.72) 100%),
    linear-gradient(135deg,
      rgba(255, 45, 141, 0.04) 0%,
      transparent 50%);
}
.section-method.section-dark > .container {
  position: relative;
  z-index: 1;
}
.section-method.section-dark .method-step {
  border-bottom-color: rgba(255,255,255,0.08);
}
.section-method.section-dark .step-num { opacity: 0.5; }
.section-method.section-dark .method-step:hover .step-num { opacity: 1; }
.section-method.section-dark .step-content h3 { color: var(--white); }
.section-method.section-dark .step-content p  { color: #aaa; }

/* ── RESULTADOS: distinctive dark background ──
   Sits between METHOD (dark w/ bg image) and ABOUT (dark w/ bg image).
   Uses the site's --gray (#1A1A22), same as service cards / stat boxes,
   with a subtle fucsia wash top-right for warmth. */
/* ── RESULTADOS: now on LIGHT bg ──
   Stats and testimonials need light-mode adaptations:
   white card background, dark text. */
.section-results.section-light {
  background-color: var(--gray-lt);
}
.section-results.section-light .stat-label {
  color: #555;
}
.section-results.section-light .testimonial {
  background: #fff;
  border-left-color: var(--fucsia);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.05);
}
.section-results.section-light .testimonial p {
  color: #333;
}
.section-results.section-light .testimonial-author {
  border-top-color: rgba(0, 0, 0, 0.08);
}
.section-results.section-light .testimonial-name {
  color: var(--black);
}
.section-results.section-light .testimonial-role {
  color: #777;
}

/* ── PROBLEMA: now on DARK bg ──
   The 3 cards are already white (intentional contrast), but the
   empathy line below was set to var(--black); flip to white. */
.section-problem.section-dark .problem-empathy {
  color: var(--white);
}

/* ── FAQ: DARK → LIGHT ──
   FAQ was designed for dark bg; flip text/border colours for light. */
.section-faq.section-light .faq-item {
  border-bottom-color: rgba(0,0,0,0.08);
}
.section-faq.section-light .faq-question { color: var(--black); }
.section-faq.section-light .faq-question:hover { color: var(--fucsia); }
.section-faq.section-light .faq-question[aria-expanded="true"] { color: var(--fucsia); }
.section-faq.section-light .faq-answer { color: #555; }
.section-faq.section-light .faq-answer p strong { color: var(--black); }

/* ═══════════════════════════════════════════
   FORM NOTIFICATION MODAL
═══════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 24px;
}
.modal-overlay.is-active {
  display: flex;
  animation: modal-fade-in 300ms ease forwards;
}
@keyframes modal-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal-box {
  background: var(--gray);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 48px 40px 36px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  transform: scale(0.9) translateY(20px);
  transition: transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.modal-overlay.is-active .modal-box {
  transform: scale(1) translateY(0);
}

.modal-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  line-height: 1;
}
.modal-icon.icon-success {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 2px solid rgba(34, 197, 94, 0.3);
}
.modal-icon.icon-error {
  background: rgba(255, 45, 141, 0.12);
  color: var(--fucsia);
  border: 2px solid rgba(255, 45, 141, 0.25);
}

.modal-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}
.modal-detail {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 28px;
}

.modal-close {
  min-width: 160px;
  padding: 12px 32px;
  font-size: 0.95rem;
}

@media (max-width: 480px) {
  .modal-box { padding: 36px 24px 28px; }
}

/* Active nav link (set by scrollspy) — excludes the CTA button */
.nav-links a[aria-current]:not(.btn) {
  color: var(--fucsia);
}
.nav-links a[aria-current]:not(.btn)::after {
  content: '';
  display: block;
  height: 2px;
  background: var(--fucsia);
  margin-top: 4px;
  border-radius: 1px;
}

/* NOTE: content-visibility: auto was tried here but caused inaccurate
   anchor-link scroll positions (the browser mis-estimates section
   heights until they're actually painted). Removed because the
   performance gain on this one-pager doesn't justify the UX regression. */

/* ═══════════════════════════════════════════
   QUIZ "¿ENCAJAMOS?"
   Mid-grey section between light Precios and dark CTA Final.
   Uses --gray (#1A1A22) for distinctive contrast in the section flow.
═══════════════════════════════════════════ */
.section-quiz {
  background-color: var(--gray);
  color: var(--white);
}
.section-quiz h2 { color: var(--white); }
.section-quiz .section-sub { color: rgba(255, 255, 255, 0.7); margin-bottom: 48px; }

.quiz {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 32px;
  margin: 0;
}

.quiz-step {
  border: 0;
  padding: 0;
  margin: 0 0 28px;
}
.quiz-step:last-child { margin-bottom: 0; }
.quiz-step legend {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 14px;
  padding: 0;
}

.quiz-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Chip-style buttons (like radio buttons but visual) */
.quiz-chip {
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 10px 18px;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
  text-align: left;
  line-height: 1.35;
}
.quiz-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--white);
}
.quiz-chip:focus-visible {
  outline: 2px solid var(--fucsia);
  outline-offset: 2px;
}
.quiz-chip:active { transform: translateY(1px); }
.quiz-chip[aria-checked="true"] {
  background: var(--fucsia);
  border-color: var(--fucsia);
  color: #fff;
}

/* Result block: appears once all 4 answers given */
.quiz-result {
  margin-top: 32px;
  animation: quizFadeIn 0.5s ease;
}
@keyframes quizFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.quiz-result-card {
  background: linear-gradient(135deg, #0F0F15 0%, #2a0e1c 100%);
  border: 1px solid rgba(255, 45, 141, 0.3);
  border-radius: var(--radius);
  padding: 36px 32px;
  text-align: center;
}
.quiz-result-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fucsia);
  margin-bottom: 12px;
}
.quiz-result-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 14px;
  line-height: 1.3;
}
.quiz-result-body {
  font-size: 1.02rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
  max-width: 580px;
  margin: 0 auto 28px;
}

@media (max-width: 640px) {
  .quiz { padding: 22px; }
  .quiz-step legend { font-size: 0.98rem; }
  .quiz-chip { font-size: 0.88rem; padding: 9px 16px; }
  .quiz-result-card { padding: 28px 22px; }
  .quiz-result-title { font-size: 1.25rem; }
}

/* Visually-hidden helper for screen-reader-only text */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}
