/* ── Tipografías autoalojadas ─────────────────── */
@font-face{font-family:'Sora';font-style:normal;font-weight:100 800;font-display:swap;
  src:url('fonts/sora-latin-ext.woff2') format('woff2');
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;}
@font-face{font-family:'Sora';font-style:normal;font-weight:100 800;font-display:swap;
  src:url('fonts/sora-latin.woff2') format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:'DM Sans';font-style:normal;font-weight:100 1000;font-display:swap;
  src:url('fonts/dmsans-latin-ext.woff2') format('woff2');
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;}
@font-face{font-family:'DM Sans';font-style:normal;font-weight:100 1000;font-display:swap;
  src:url('fonts/dmsans-latin.woff2') format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}


  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  :root {
    --navy:    #071628;
    --ocean:   #0A3D6B;
    --blue:    #1565C0;
    --teal:    #00A8C8;
    --teal-ink: #017A90; /* teal accesible sobre fondo claro (5:1) */
    --foam:    #E8F6FB;
    --white:   #FFFFFF;
    --gray-50: #F7F9FB;
    --gray-200:#DDE4EC;
    --gray-400:#8A9BAB;
    --gray-600:#4A5E72;
    --text:    #071628;
    --radius:  12px;
  }

  html { scroll-behavior: smooth; }

  body {
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    color: var(--text);
    background: var(--white);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
  }

  h1, h2, h3, h4, .logo-text {
    font-family: 'Sora', sans-serif;
  }

  /* ── NAV ─────────────────────────────────────── */
  nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5vw;
    height: 96px;
    background: rgba(7, 22, 40, 0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }

  .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
  }

  .logo-icon {
    width: 44px;
    height: 44px;
  }

  .logo-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.02em;
  }
  .logo-text span { color: var(--teal); }

  .nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
    list-style: none;
  }

  .nav-links a {
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    color: rgba(255,255,255,0.72);
    transition: color 0.2s;
    letter-spacing: 0.01em;
  }
  .nav-links a:hover { color: var(--white); }

  .nav-cta {
    background: var(--teal) !important;
    color: var(--navy) !important;
    padding: 9px 22px;
    border-radius: 6px;
    font-weight: 500 !important;
    transition: opacity 0.2s !important;
  }
  .nav-cta:hover { opacity: 0.88 !important; }

  /* ── HERO ─────────────────────────────────────── */
  .hero {
    min-height: 100vh;
    background: var(--navy);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 150px 5vw 90px;
    position: relative;
    overflow: hidden;
  }

  .hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
  }

  /* Animated wave background */
  .hero-waves {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 55%;
    opacity: 0.12;
  }

  .hero-glow {
    position: absolute;
    top: -200px; left: 50%;
    transform: translateX(-50%);
    width: 800px; height: 800px;
    background: radial-gradient(ellipse, rgba(0,168,200,0.18) 0%, transparent 70%);
    pointer-events: none;
  }

  .hero-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0,168,200,0.12);
    border: 1px solid rgba(0,168,200,0.3);
    color: var(--teal);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 32px;
  }

  .hero-label::before {
    content: '';
    width: 6px; height: 6px;
    background: var(--teal);
    border-radius: 50%;
    animation: pulse 2s infinite;
  }

  @keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
  }

  .hero h1 {
    font-size: clamp(40px, 6vw, 76px);
    font-weight: 800;
    color: var(--white);
    line-height: 1.08;
    letter-spacing: -0.03em;
    max-width: 840px;
    margin-bottom: 28px;
  }

  .hero h1 em {
    font-style: normal;
    color: var(--teal);
  }

  .hero p {
    font-size: clamp(16px, 1.8vw, 20px);
    color: rgba(255,255,255,0.6);
    max-width: 560px;
    margin-bottom: 48px;
    font-weight: 300;
    line-height: 1.7;
  }

  .hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .btn-primary {
    background: var(--teal);
    color: var(--navy);
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 500;
    padding: 14px 32px;
    border: none;
    border-radius: 7px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
    letter-spacing: 0.01em;
  }
  .btn-primary:hover { background: #00bce0; transform: translateY(-1px); }

  .btn-secondary {
    background: transparent;
    color: rgba(255,255,255,0.8);
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 400;
    padding: 14px 32px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 7px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
  }
  .btn-secondary:hover { border-color: rgba(255,255,255,0.5); color: var(--white); }

  .hero-stats {
    display: flex;
    gap: 60px;
    margin-top: 88px;
    padding-top: 48px;
    border-top: 1px solid rgba(255,255,255,0.08);
  }

  .stat-item {
    text-align: center;
  }

  .stat-number {
    font-family: 'Sora', sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: var(--white);
    display: block;
    letter-spacing: -0.02em;
  }

  .stat-label {
    font-size: 13px;
    color: rgba(255,255,255,0.45);
    margin-top: 4px;
  }

  /* ── SECTION COMMON ───────────────────────────── */
  section { padding: 100px 5vw; }

  .section-label {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 16px;
    display: block;
  }

  .section-title {
    font-size: clamp(28px, 3.5vw, 44px);
    font-weight: 700;
    color: var(--navy);
    letter-spacing: -0.02em;
    line-height: 1.15;
    max-width: 540px;
    margin-bottom: 20px;
  }

  .section-desc {
    font-size: 17px;
    color: var(--gray-600);
    max-width: 520px;
    line-height: 1.7;
    font-weight: 300;
  }

  /* ── PARTNERS STRIP ───────────────────────────── */
  .partners {
    background: var(--gray-50);
    padding: 48px 5vw;
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
  }

  .partners-label {
    text-align: center;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray-400);
    margin-bottom: 36px;
    font-weight: 500;
  }

  .partners-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
  }

  .partner-logo {
    font-family: 'Sora', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-400);
    letter-spacing: 0.05em;
    opacity: 0.7;
    transition: opacity 0.2s;
  }
  .partner-logo:hover { opacity: 1; }

  /* ── SERVICES ─────────────────────────────────── */
  .services {
    background: var(--white);
  }

  .services-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 72px;
    gap: 40px;
    flex-wrap: wrap;
  }

  .services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--gray-200);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
  }

  .service-card {
    background: var(--white);
    padding: 48px 40px;
    transition: background 0.25s;
    position: relative;
    overflow: hidden;
  }
  .service-card:hover { background: var(--foam); }

  .service-icon {
    width: 52px;
    height: 52px;
    background: var(--navy);
    color: var(--teal);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
  }

  .service-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 14px;
    letter-spacing: -0.01em;
  }

  .service-card p {
    font-size: 15px;
    color: var(--gray-600);
    line-height: 1.65;
    font-weight: 300;
  }

  .service-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 24px;
    font-size: 14px;
    font-weight: 500;
    color: var(--teal);
    text-decoration: none;
    transition: gap 0.2s;
  }
  .service-link:hover { gap: 10px; }

  /* ── WHY US ───────────────────────────────────── */
  .why {
    background: var(--navy);
    color: var(--white);
    position: relative;
    overflow: hidden;
  }

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

  .why .section-title { color: var(--white); max-width: 420px; }
  .why .section-desc { color: rgba(255,255,255,0.55); }

  .why-features {
    display: flex;
    flex-direction: column;
    gap: 32px;
  }

  .why-feature {
    display: flex;
    gap: 20px;
    align-items: flex-start;
  }

  .feature-dot {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(0,168,200,0.15);
    border: 1px solid rgba(0,168,200,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
  }

  .why-feature h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 6px;
    letter-spacing: -0.01em;
  }

  .why-feature p {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    font-weight: 300;
    line-height: 1.6;
  }

  /* ── ABOUT ────────────────────────────────────── */
  .about {
    background: var(--gray-50);
  }

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

  .about-visual {
    position: relative;
    height: 400px;
  }

  .about-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 32px;
    position: absolute;
  }

  .about-card.main {
    left: 0; top: 0;
    right: 60px; bottom: 60px;
  }

  .about-card.accent {
    right: 0; bottom: 0;
    left: 60px; top: 60px;
    background: var(--navy);
    border-color: var(--ocean);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .about-card.accent .big-num {
    font-family: 'Sora', sans-serif;
    font-size: 52px;
    font-weight: 800;
    color: var(--teal);
    display: block;
    letter-spacing: -0.03em;
  }
  .about-card.accent p {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    margin-top: 4px;
  }

  .about-card.main h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 12px;
  }
  .about-card.main p {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.65;
    font-weight: 300;
  }

  /* ── HOW ──────────────────────────────────────── */
  .how {
    background: var(--white);
  }

  .how-header {
    text-align: center;
    margin-bottom: 80px;
  }
  .how-header .section-title { max-width: 100%; margin: 0 auto 20px; text-align: center; }
  .how-header .section-desc { max-width: 520px; margin: 0 auto; text-align: center; }

  .steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--gray-200);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
  }

  .step {
    background: var(--white);
    padding: 40px 32px;
    position: relative;
  }

  .step-num {
    font-family: 'Sora', sans-serif;
    font-size: 48px;
    font-weight: 800;
    color: var(--gray-200);
    display: block;
    margin-bottom: 16px;
    letter-spacing: -0.03em;
  }

  .step h4 {
    font-size: 17px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 10px;
  }

  .step p {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.6;
    font-weight: 300;
  }

  /* ── CTA ──────────────────────────────────────── */
  .cta {
    background: var(--navy);
    text-align: center;
    position: relative;
    overflow: hidden;
  }

  .cta-glow {
    position: absolute;
    bottom: -300px; left: 50%;
    transform: translateX(-50%);
    width: 700px; height: 700px;
    background: radial-gradient(ellipse, rgba(0,168,200,0.12) 0%, transparent 70%);
    pointer-events: none;
  }

  .cta h2 {
    font-size: clamp(30px, 4vw, 52px);
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 24px;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
  }

  .cta p {
    color: rgba(255,255,255,0.55);
    font-size: 17px;
    max-width: 440px;
    margin: 0 auto 44px;
    font-weight: 300;
  }

  /* ── CONTACT ──────────────────────────────────── */
  .contact {
    background: var(--white);
  }

  .contact-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: start;
  }

  .contact-info {
    padding-top: 8px;
  }

  .contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-top: 32px;
  }

  .contact-detail-icon {
    width: 40px; height: 40px;
    background: var(--foam);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
  }

  .contact-detail h5 {
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
  }

  .contact-detail p {
    font-size: 15px;
    color: var(--navy);
    font-weight: 400;
  }

  .contact-form {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    padding: 44px;
  }

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

  .form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 20px;
  }

  .form-group label {
    font-size: 13px;
    font-weight: 500;
    color: var(--navy);
    letter-spacing: 0.01em;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    padding: 11px 14px;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    color: var(--navy);
    outline: none;
    transition: border-color 0.2s;
  }

  .form-group input:focus,
  .form-group select:focus,
  .form-group textarea:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(0,168,200,0.1);
  }

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

  /* ── FOOTER ───────────────────────────────────── */
  footer {
    background: var(--navy);
    padding: 64px 5vw 32px;
    border-top: 1px solid rgba(255,255,255,0.06);
  }

  .footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
  }

  .footer-brand p {
    font-size: 14px;
    color: rgba(255,255,255,0.45);
    margin-top: 16px;
    line-height: 1.7;
    font-weight: 300;
    max-width: 280px;
  }

  .footer-col h5 {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 20px;
  }

  .footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .footer-col a {
    font-size: 14px;
    color: rgba(255,255,255,0.45);
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 300;
  }
  .footer-col a:hover { color: var(--white); }

  .footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.06);
    font-size: 13px;
    color: rgba(255,255,255,0.3);
  }

  /* ── SVG LOGO ─────────────────────────────────── */
  .logo img { height: 62px; width: auto; display: block; }
  .logo-svg-unused { width: 44px; height: 44px; }

  /* ── WAVE ANIMATION ───────────────────────────── */
  @keyframes waveScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
  }

  .wave-track {
    animation: waveScroll 20s linear infinite;
    display: flex;
    width: 200%;
  }

  /* ── RESPONSIVE ───────────────────────────────── */
  @media (max-width: 900px) {
    .services-grid { grid-template-columns: 1fr; }
    .why-inner { grid-template-columns: 1fr; gap: 48px; }
    .about-inner { grid-template-columns: 1fr; gap: 48px; }
    .about-visual { display: none; }
    .contact-inner { grid-template-columns: 1fr; gap: 48px; }
    .steps { grid-template-columns: 1fr 1fr; }
    .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
    .nav-links { display: none; }
    .hero-stats { gap: 32px; flex-wrap: wrap; justify-content: center; }
    .form-row { grid-template-columns: 1fr; }
  }

  @media (max-width: 600px) {
    .steps { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr; }
  }

/* ── Añadidos: accesibilidad, formulario, legales ── */
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
.skip-link {
  position: absolute; left: -9999px; background: var(--teal); color: var(--navy);
  padding: 12px 20px; font-weight: 700; z-index: 999; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; top: 0; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration:.01ms !important; transition-duration:.01ms !important; scroll-behavior:auto !important; }
  html { scroll-behavior: auto; }
}

.hp-field { position: absolute; left: -9999px; opacity: 0; }
.form-consent { display: flex; align-items: flex-start; gap: 10px; margin: 4px 0 24px; }
.form-consent input[type="checkbox"] { margin-top: 4px; width: 17px; height: 17px; accent-color: var(--teal); flex-shrink: 0; cursor: pointer; }
.form-consent label { font-size: 13px; color: var(--gray-600); line-height: 1.55; }
.form-consent a { color: var(--ocean); text-decoration: underline; }

/* Páginas de texto legal */
.legal { padding: 170px 5vw 100px; }
.legal-inner { max-width: 760px; margin: 0 auto; }
.legal h1 { font-size: clamp(30px,4vw,46px); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 8px; color: var(--navy); }
.legal h2 { font-size: 21px; color: var(--navy); margin: 44px 0 14px; padding-top: 28px; border-top: 1px solid var(--gray-200); font-weight: 700; }
.legal h2:first-of-type { border-top: 0; padding-top: 0; }
.legal p, .legal li { color: var(--gray-600); line-height: 1.75; margin-bottom: 15px; font-weight: 300; }
.legal ul { padding-left: 21px; margin-bottom: 18px; }
.legal li { margin-bottom: 7px; }
.legal a { color: var(--ocean); text-decoration: underline; }
.legal strong { color: var(--navy); font-weight: 600; }
.legal table { width: 100%; border-collapse: collapse; margin-bottom: 22px; font-size: 14px; }
.legal th, .legal td { border: 1px solid var(--gray-200); padding: 11px 13px; text-align: left; color: var(--gray-600); vertical-align: top; font-weight: 300; }
.legal th { color: var(--navy); font-weight: 600; background: var(--gray-50); width: 34%; }
.legal-updated { font-size: 14px; color: var(--gray-400); margin-bottom: 40px; }
.legal-note { border-left: 3px solid var(--teal); background: var(--foam); padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0; margin-bottom: 32px; }
.legal-note p { margin: 0; font-size: 14px; }

/* Página simple (gracias / 404) */
.simple { padding: 210px 5vw 140px; text-align: center; background: var(--navy); min-height: 70vh; }
.simple h1 { font-size: clamp(30px,4.5vw,50px); font-weight: 800; color: var(--white); letter-spacing: -0.02em; margin-bottom: 18px; }
.simple p { color: rgba(255,255,255,0.6); font-size: 17px; max-width: 500px; margin: 0 auto 40px; font-weight: 300; }
.simple .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.simple a.link { color: var(--teal); }

@media (max-width: 640px) {
  .legal table, .legal tbody, .legal tr, .legal th, .legal td { display: block; width: 100%; }
  .legal tr { border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 12px; }
  .legal th, .legal td { border: 0; padding: 3px 0; }
  .legal th { background: none; }
}

/* ── Contención de desbordes en pantallas muy estrechas ── */
html, body { overflow-x: hidden; }
.hero-bg, .cta { overflow: hidden; }
.hero-waves { max-width: 100%; }

@media (max-width: 480px) {
  .contact-inner, .why-inner, .about-inner, .services-header { min-width: 0; }
  .contact-inner > *, .why-inner > *, .services-grid > * { min-width: 0; }
  .service-card, .why-feature, .step, .contact-detail { min-width: 0; }
  .contact-detail > div { min-width: 0; overflow-wrap: anywhere; }
  h1, h2, h3, h4, p, a { overflow-wrap: break-word; }
}


/* ── Contraste accesible sobre fondos claros ── */
.services .section-label,
.about .section-label,
.how .section-label,
.contact .section-label { color: var(--teal-ink); }

.service-link { color: var(--teal-ink); }
.contact-detail a { color: var(--teal-ink); }
.step-num { color: #78899B; }
.contact-form p[style*="gray-400"] { color: var(--gray-600) !important; }

/* ── Color de los iconos SVG en sus contenedores ── */
.feature-dot { color: var(--teal); }
.contact-detail-icon { color: var(--teal-ink); }

footer .logo img { height: 78px; }
@media (max-width: 900px) { nav { height: 84px; } .logo img { height: 54px; } }
@media (max-width: 600px) { nav { height: 76px; } .logo img { height: 48px; } }

/* ── Tarjetas de la sección Quiénes somos ── */
.about-inner p + p { margin-top: 16px; }
.about-visual { display: flex; flex-direction: column; gap: 16px; }
.about-fact {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-left: 3px solid var(--teal);
  border-radius: var(--radius);
  padding: 20px 24px;
}
.about-fact h4 { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.about-fact p { font-size: 14px; color: var(--gray-600); line-height: 1.6; font-weight: 300; margin: 0; }
@media (max-width: 900px) { .about-visual { display: flex !important; } }

/* ── Hero con fotografía de la costa balear ── */
.hero-bg {
  background-image: url('hero.webp');
  background-size: cover;
  background-position: center 42%;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(7,22,40,0.86) 0%,
    rgba(7,22,40,0.52) 45%,
    rgba(7,22,40,0.80) 100%);
}
.hero-waves { opacity: 0.14; }
@media (max-width: 700px) {
  .hero-bg { background-position: center 38%; }
  .hero-bg::after { background: linear-gradient(180deg, rgba(7,22,40,0.88) 0%, rgba(7,22,40,0.78) 100%); }
}

/* ── Menú móvil ── */
.menu-toggle {
  display: none;
  background: none; border: 0; cursor: pointer;
  color: var(--white); padding: 8px; line-height: 0;
  border-radius: 8px;
}
.menu-toggle:hover { background: rgba(255,255,255,0.08); }

.mobile-nav {
  display: none;
  position: fixed;
  top: 76px; left: 0; right: 0;
  background: rgba(7,22,40,0.985);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 12px 5vw 24px;
  z-index: 99;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block;
  padding: 14px 0;
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.mobile-nav a:last-of-type { border-bottom: 0; }
.mobile-nav a:hover, .mobile-nav a:focus-visible { color: var(--teal); }
.mobile-nav .btn-primary {
  display: block; text-align: center; margin-top: 18px;
  color: var(--navy); border-bottom: 0;
}
.mobile-nav .phone {
  color: var(--teal); font-weight: 600; border-bottom: 0; padding-top: 18px;
}

@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; align-items: center; }
  .mobile-nav { top: 84px; }
}
@media (max-width: 600px) {
  .mobile-nav { top: 76px; }
}

/* ── Hero: ajuste al titular de dos frases ── */
.hero h1 { max-width: 1000px; font-size: clamp(34px, 5.2vw, 66px); }
.hero p { max-width: 720px; color: rgba(255,255,255,0.72); }
.hero h1 .break { display: block; }
@media (max-width: 640px) {
  .hero h1 { font-size: clamp(28px, 7.4vw, 40px); }
  .hero p { font-size: 15.5px; }
}

/* ── Legibilidad del texto del hero sobre la fotografía ── */
.hero-bg::after {
  background: linear-gradient(180deg,
    rgba(7,22,40,0.88) 0%,
    rgba(7,22,40,0.68) 40%,
    rgba(7,22,40,0.72) 70%,
    rgba(7,22,40,0.86) 100%);
}
.hero p { color: rgba(255,255,255,0.88); }

/* ── Orden de capas del hero: el velo va por encima de lo decorativo ── */
.hero-bg { z-index: 0; isolation: isolate; }
.hero-waves, .hero-glow { z-index: 1; }
.hero-bg > * { position: absolute; z-index: 1; }
.hero-bg::after { z-index: 2; }

/* ── Campo para adjuntar la factura ── */
.form-group .opt { color: var(--gray-600); font-weight: 400; }

.file-field { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.file-field input[type="file"] {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.file-button {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px;
  background: var(--foam);
  color: var(--ocean);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  font-size: 14px; font-weight: 600;
  cursor: pointer;
  transition: background .2s, border-color .2s;
  margin: 0;
}
.file-button:hover { background: #d9eef6; border-color: var(--teal); }
.file-field input[type="file"]:focus-visible + .file-button {
  outline: 3px solid var(--teal); outline-offset: 3px;
}
.file-name {
  font-size: 13.5px; color: var(--gray-600);
  overflow-wrap: anywhere; flex: 1; min-width: 0;
}
.file-name.has-file { color: var(--navy); font-weight: 600; }
.file-clear {
  background: none; border: 0; cursor: pointer; padding: 4px 6px;
  color: var(--gray-600); font-size: 13px; text-decoration: underline;
  border-radius: 6px;
}
.file-clear:hover { color: #B3261E; }
.field-help { font-size: 12.5px; color: var(--gray-600); margin-top: 9px; line-height: 1.5; }
.field-error {
  font-size: 13px; color: #B3261E; font-weight: 600;
  margin-top: 8px; line-height: 1.5;
}

/* ── Titular del hero: una frase por renglón ── */
.hero h1 {
  max-width: 1160px;
  font-size: clamp(28px, 4.6vw, 66px);
}
@media (max-width: 640px) {
  .hero h1 { font-size: clamp(26px, 6.6vw, 34px); }
}
.hero h1 { text-wrap: balance; }
