/* Fuentes servidas desde el propio tema (no desde Google): evita enviar la IP del visitante a terceros sin consentimiento (RGPD). Variables: un archivo cubre todos los pesos. */
@font-face { font-family:'Inter'; font-style:normal; font-weight:400 700; font-display:swap; src:url(../fonts/inter-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:'Inter'; font-style:normal; font-weight:400 700; font-display:swap; src:url(../fonts/inter-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:400 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:'Sora'; font-style:normal; font-weight:400 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; }

* { box-sizing: border-box; margin:0; padding:0; }
html { scroll-behavior:smooth; overflow-x:clip; }
body { font-family:'Inter', sans-serif; background:#f6f7f9; color:#0f172a; -webkit-font-smoothing:antialiased; overflow-x:hidden; }
body { min-height:100vh; display:flex; flex-direction:column; }
main { flex:1 0 auto; }
img { max-width:100%; }
:root { --brand-orange:#d17a00; --text-orange:#a35f00; --btn-orange:#a35f00; --navy:#07071c; --navy-2:#0f172a; }

/* ============ NAV ============ */
.nav { position:sticky; top:0; z-index:20; display:flex; align-items:center; justify-content:space-between; padding:14px 40px; background:rgba(255,255,255,0.8); -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px); border-bottom:1px solid #eef0f2; }
.logo-badge { display:flex; align-items:center; background:var(--navy); border-radius:10px; padding:12px 18px; text-decoration:none; cursor:pointer; transition:transform .2s ease; }
.logo-badge:hover { transform:scale(1.04); }
.logo-badge img { display:block; height:38px; width:auto; }
.nav-menu { display:flex; align-items:center; justify-content:space-between; flex:1; margin-left:40px; }
.nav-actions { display:flex; align-items:center; gap:18px; }
.nav-links { display:flex; flex:1; justify-content:center; gap:34px; font-size:15.5px; font-weight:600; color:#1e293b; }
.nav-links a { position:relative; text-decoration:none; color:inherit; padding-bottom:4px; cursor:pointer; }
.nav-links a.current { color:var(--text-orange); }
.nav-links a::after { content:''; position:absolute; left:0; bottom:0; width:100%; height:2px; background:var(--brand-orange); transform:scaleX(0); transform-origin:left; transition:transform .25s ease; }
.nav-links a:hover::after, .nav-links a.current::after { transform:scaleX(1); }
.menu-toggle { display:none; background:none; border:none; color:var(--navy-2); cursor:pointer; padding:8px; z-index:32; position:relative; }
.nav-backdrop { display:none; }
.lang { display:flex; position:relative; background:#eef0f2; border-radius:999px; padding:3px; font-size:12.5px; font-weight:800; }
.lang a { position:relative; z-index:1; padding:6px 14px; cursor:pointer; color:#57606c; text-decoration:none; }
.lang a.active { color:#fff; }
.lang .pill { position:absolute; top:3px; left:3px; width:calc(50% - 3px); height:calc(100% - 6px); background:var(--navy-2); border-radius:999px; transition:transform .25s ease; }
.btn { display:inline-block; border-radius:9px; padding:12px 24px; font-weight:700; font-size:14px; text-decoration:none; transition:transform .2s ease; cursor:pointer; }
.btn:hover { transform:translateY(-2px); }
.btn-dark { background:var(--navy-2); color:#fff; }
.skip-link { position:absolute; left:12px; top:-60px; z-index:50; background:var(--navy-2); color:#fff; padding:10px 16px; border-radius:8px; font-weight:700; text-decoration:none; }
.skip-link:focus { top:12px; }
:focus-visible { outline:3px solid var(--brand-orange); outline-offset:2px; }
.btn-primary { background:var(--btn-orange); color:#fff; } /* #a35f00: 5:1 con texto blanco (WCAG AA); #d17a00 daba 3:1 */

.hero, .page-hero { position:relative; }

/* ============ HERO (Home) ============ */
.hero { position:relative; padding:70px 40px 60px; overflow:hidden; text-align:center; }
.hero-full > div { max-width:760px; margin:0 auto; }
.tag { display:inline-flex; align-items:center; gap:8px; font-size:12.5px; font-weight:800; letter-spacing:1.4px; color:var(--text-orange); background:#fff4e6; padding:7px 14px; border-radius:999px; }
h1.h1 { font-family:'Sora',sans-serif; font-size:40px; font-weight:800; line-height:1.16; margin:20px 0 18px; }
h1.h1 .grad { color:var(--brand-orange); }
.lead { font-size:16px; color:#475569; line-height:1.7; max-width:480px; margin:0 auto; }
.hero-actions { display:flex; justify-content:center; align-items:center; gap:22px; flex-wrap:wrap; margin-top:30px; }
.hero-actions .link-sec { font-weight:700; font-size:14px; color:var(--navy-2); text-decoration:none; border-bottom:2px solid var(--brand-orange); padding-bottom:2px; }

/* ============ SERVICES SECTION ============ */
.section { padding:30px 40px 90px; position:relative; text-align:center; }
.sec-tag { font-size:13.5px; font-weight:800; letter-spacing:1.6px; color:var(--text-orange); }
h2.sec-title { font-family:'Sora',sans-serif; font-size:36px; font-weight:700; margin:14px 0 14px; }
.sec-sub { font-size:16.5px; color:#57606c; max-width:600px; margin:0 auto 48px; line-height:1.6; }
.cards { display:grid; grid-template-columns:repeat(2,1fr); gap:26px; max-width:820px; margin:0 auto; text-align:left; }
.cards.cols-3 { grid-template-columns:repeat(3,1fr); max-width:1180px; }
.cards.cols-auto { grid-template-columns:repeat(auto-fit, minmax(280px, 1fr)); max-width:1180px; }
.cards.cols-auto .full-row { grid-column:1 / -1; max-width:560px; width:100%; margin:0 auto; }
.card { border-radius:18px; padding:38px 32px; position:relative; overflow:hidden; transition:transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease, border-color .35s ease; text-decoration:none; display:block; }
.card.solo { grid-column:1 / -1; max-width:380px; margin:0 auto; width:100%; }
.card.dark, .card.light { background:#fff; border:1px solid #e2e8f0; color:#0f172a; }
.card.dark:hover, .card.light:hover { transform:translateY(-10px); box-shadow:0 24px 48px -20px rgba(7,7,28,0.35); border-color:#f3d5ad; }
.card .accent { position:absolute; top:0; left:0; width:100%; height:3px; background:linear-gradient(90deg,var(--brand-orange),transparent); }
.ic { width:58px; height:58px; border-radius:14px; display:flex; align-items:center; justify-content:center; margin-bottom:20px; transition:transform .35s ease; }
.ic.orange-chip, .ic.light-chip { background:var(--brand-orange); }
.card:hover .ic { transform:scale(1.1); }
.card h3 { font-size:19px; font-weight:700; margin-bottom:11px; }
.card p.desc { font-size:14.5px; opacity:0.78; line-height:1.7; margin-bottom:14px; }
.card ul { list-style:none; font-size:14px; opacity:0.85; line-height:2.15; }
.card ul li::before { content:'— '; opacity:0.6; }

/* ============ SCROLL REVEAL ============ */
.reveal { opacity:0; transform:translateY(28px); transition:opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.visible { opacity:1; transform:none; }

/* ============ ABOUT (Quiénes somos) ============ */
.about { background:var(--navy); color:#fff; padding:72px 40px; }
.about-inner { max-width:760px; margin:0 auto; }
.about h2.big { font-family:'Sora',sans-serif; font-size:30px; font-weight:700; line-height:1.2; margin:10px 0 20px; }
.about h2.big .orange { color:var(--brand-orange); display:block; }
.about p.body { font-size:15px; line-height:1.75; color:#cbd2df; margin-bottom:18px; }
.about p.body strong { color:#fff; }
.stats-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:22px; margin:36px 0 20px; padding:28px 0; border-top:1px solid rgba(255,255,255,0.12); border-bottom:1px solid rgba(255,255,255,0.12); }
.stat-num { font-family:'Sora',sans-serif; font-size:36px; font-weight:800; color:var(--brand-orange); line-height:1; }
.stat-label { font-size:13px; color:#94a3b8; margin-top:6px; }
.cities-row { font-size:13.5px; color:#94a3b8; line-height:1.7; margin-bottom:18px; }
.cities-row strong { color:#fff; }
.link-more { display:inline-flex; align-items:center; gap:6px; color:var(--brand-orange); font-weight:700; font-size:14px; text-decoration:none; margin-bottom:8px; }
.link-more:hover { text-decoration:underline; }
.why-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:22px; margin-top:30px; }
.why-ic { width:38px; height:38px; border-radius:9px; background:#fff4e6; display:flex; align-items:center; justify-content:center; margin-bottom:14px; }
.why-item h3 { font-size:15px; font-weight:700; margin-bottom:6px; }
.why-item p { font-size:12.5px; color:#57606c; line-height:1.6; }
.about .why-item p { color:#94a3b8; }
.divider { height:1px; background:rgba(255,255,255,0.12); margin:52px 0 40px; }
.steps { display:grid; grid-template-columns:repeat(3,1fr); gap:22px; margin-top:26px; }
.step-num { width:34px; height:34px; border-radius:50%; background:var(--brand-orange); color:#fff; font-weight:800; font-family:'Sora',sans-serif; display:flex; align-items:center; justify-content:center; margin-bottom:14px; font-size:14px; }
.step h3 { font-size:15px; font-weight:700; margin-bottom:6px; }
.step p { font-size:12.5px; color:#57606c; line-height:1.6; }
.about .step p { color:#94a3b8; }
.section .sec-tag { display:block; margin:50px 0 10px; }
.section .sec-tag:first-child { margin-top:0; }
.content-title { font-family:'Sora',sans-serif; font-size:24px; font-weight:700; color:#0f172a; margin-bottom:26px; }

/* ============ PROCESS STEPS (homologación, etc. sobre fondo claro) ============ */
.process-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(240px, 1fr)); gap:22px; max-width:1180px; margin:0 auto; text-align:left; }
.process-step { background:#fff; border:1px solid #e2e8f0; border-radius:18px; padding:30px 26px; position:relative; overflow:hidden; transition:transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease; }
.process-step:hover { transform:translateY(-6px); box-shadow:0 20px 40px -22px rgba(15,23,42,0.25); }
.process-step .accent { position:absolute; top:0; left:0; width:100%; height:3px; background:linear-gradient(90deg,var(--brand-orange),transparent); }
.process-step .step-num { width:34px; height:34px; border-radius:50%; background:var(--brand-orange); color:#fff; font-weight:800; font-family:'Sora',sans-serif; display:flex; align-items:center; justify-content:center; margin-bottom:16px; font-size:14px; }
.process-step h3, .process-step h4 { font-size:15.5px; font-weight:700; margin-bottom:8px; color:#0f172a; }
.process-step p { font-size:13.5px; color:#57606c; line-height:1.65; }

/* ============ CONTACT ============ */
.contact { padding:72px 40px 80px; }
.contact-grid { display:grid; grid-template-columns:0.8fr 1fr; gap:40px; max-width:1000px; margin:44px auto 0; text-align:left; }
.contact-info h3 { font-family:'Sora',sans-serif; font-size:19px; font-weight:800; margin-bottom:18px; }
.info-card { display:flex; align-items:center; gap:16px; background:#fff; border:1px solid #e2e8f0; border-radius:12px; padding:18px 20px; margin-bottom:16px; }
.ic-group { display:flex; gap:8px; }
.info-card .ic, .ic-wa { margin:0; background:#fff4e6; width:42px; height:42px; min-width:42px; border-radius:11px; display:flex; align-items:center; justify-content:center; }
.ic-wa { text-decoration:none; }
.info-card h4 { font-size:14.5px; font-weight:700; margin-bottom:2px; }
.info-card p, .info-card a { font-size:13.5px; color:#475569; text-decoration:none; }
.info-highlight { background:#fff4e6; border-radius:12px; padding:20px; }
.info-highlight h4 { font-size:14.5px; font-weight:700; margin-bottom:6px; color:#0f172a; }
.info-highlight p { font-size:13px; color:var(--text-orange); line-height:1.6; }

/* Tarjeta que envuelve el formulario real de Spectra Forms (the_content) */
.form-card { background:#fff; border:1px solid #e2e8f0; border-radius:16px; padding:30px; box-shadow:0 20px 50px -30px rgba(15,23,42,0.25); }
.form-card label { display:block; font-size:12.5px; font-weight:700; color:#334155; margin-bottom:6px; }
.form-card input[type="text"],
.form-card input[type="email"],
.form-card input[type="tel"],
.form-card textarea { width:100%; border:1px solid #e8dcc8; background:#fff8ef; border-radius:8px; padding:12px 14px; font-family:'Inter',sans-serif; font-size:14px; color:#0f172a; margin-bottom:16px; }
.form-card textarea { min-height:100px; resize:vertical; }
.form-card button,
.form-card input[type="submit"] { width:100%; border:none; background:var(--btn-orange); color:#fff; font-weight:700; font-size:14.5px; padding:14px; border-radius:9px; cursor:pointer; }
.form-card a { color:var(--text-orange); font-weight:600; }

/* ============ COOKIE BANNER ============ */
.cookie-banner { position:fixed; left:20px; right:20px; bottom:20px; z-index:40; max-width:640px; margin:0 auto; background:var(--navy-2); color:#e2e8f0; border-radius:14px; padding:20px 22px; display:flex; align-items:center; gap:20px; flex-wrap:wrap; box-shadow:0 20px 50px -20px rgba(7,7,28,0.5); }
.cookie-banner[hidden] { display:none; }
.cookie-banner p { font-size:13.5px; line-height:1.6; flex:1; min-width:220px; }
.cookie-banner a { color:var(--brand-orange); font-weight:600; }
.cookie-actions { display:flex; gap:10px; flex:none; }
.btn-ghost { background:transparent; border:1px solid rgba(255,255,255,0.25); color:#e2e8f0; }
.btn-ghost:hover { border-color:rgba(255,255,255,0.5); }

/* ============ FOOTER ============ */
.footer { padding:36px 40px; background:var(--navy); color:#cbd2df; font-size:16px; display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:16px; }
.footer-left { display:flex; align-items:center; gap:16px; }
.footer .logo-badge { padding:10px 14px; }
.footer .logo-badge img { height:32px; }
.footer-right { font-size:15.5px; display:flex; gap:10px; align-items:center; }
.footer-right a { color:#cbd2df; text-decoration:none; cursor:pointer; }
.footer-right a.current { color:var(--brand-orange); }
.footer-right button { background:none; border:none; color:#cbd2df; font:inherit; cursor:pointer; padding:0; }
.footer-right a:hover, .footer-right button:hover { color:#fff; }

/* ============ INTERIOR PAGE HERO / BANNER ============ */
.page-hero { position:relative; padding:56px 40px 48px; overflow:hidden; text-align:center; }
.back-link { display:flex; width:max-content; align-items:center; gap:6px; font-size:13px; font-weight:600; color:#57606c; text-decoration:none; margin-bottom:26px; position:relative; z-index:2; cursor:pointer; }
.hero-col { display:flex; align-items:flex-start; gap:22px; position:relative; z-index:2; max-width:680px; margin:0 auto; text-align:left; }
.page-icon { width:60px; height:60px; min-width:60px; border-radius:14px; background:var(--brand-orange); display:flex; align-items:center; justify-content:center; }
h1.h1b { font-family:'Sora',sans-serif; font-size:34px; font-weight:800; line-height:1.16; }
h1.h1b .line2 { color:var(--brand-orange); display:block; }
.page-lead { font-size:15.5px; color:#475569; line-height:1.7; margin-top:14px; }
.banner { background:#f6f7f9; text-align:center; padding:56px 40px; border-top:1px solid #eef0f2; border-bottom:1px solid #eef0f2; }
.banner h2 { font-family:'Sora',sans-serif; font-size:26px; font-weight:800; color:#0f172a; }
.banner p { color:#57606c; margin:12px auto 24px; max-width:460px; font-size:14.5px; }

/* ============ LEGAL PAGES (contenido real editable desde WordPress) ============ */
.legal { max-width:760px; margin:0 auto; padding:10px 40px 90px; }
.legal h2 { font-family:'Sora',sans-serif; font-size:18px; font-weight:700; color:var(--text-orange); margin:34px 0 12px; }
.legal h2:first-child { margin-top:0; }
.legal p { font-size:14.5px; line-height:1.75; color:#475569; margin-bottom:12px; }
.legal a { color:var(--text-orange); font-weight:600; text-decoration:none; }
.legal a.btn { color:#fff; }
.legal strong { color:#0f172a; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .cards.cols-3 { grid-template-columns:repeat(2,1fr); max-width:760px; }
  .why-grid, .steps { grid-template-columns:repeat(2,1fr); }
  .hero { padding:56px 30px 48px; }
  .hero-full > div { max-width:100%; }
}

@media (max-width: 900px) {
  .nav { padding:14px 20px; }
  .nav-menu { margin-left:0; }
  .menu-toggle { display:flex; align-items:center; justify-content:center; }
  .nav-menu {
    position:fixed; top:0; right:0; height:100vh; width:min(300px,82vw);
    background:#fff; flex-direction:column; align-items:flex-start; justify-content:flex-start;
    padding:96px 28px 28px; gap:30px; overflow-y:auto;
    box-shadow:-14px 0 40px rgba(7,7,28,0.18);
    transform:translateX(100%); transition:transform .32s ease, visibility 0s .32s; z-index:31;
    visibility:hidden; /* cerrado: fuera del orden de tabulación y de los lectores de pantalla */
  }
  .nav.menu-open .nav-menu { transform:translateX(0); visibility:visible; transition:transform .32s ease; }
  .nav-links { flex:none; justify-content:flex-start; flex-direction:column; align-items:flex-start; gap:22px; font-size:17px; }
  .nav-links a { display:block; }
  .nav-actions { flex-direction:column; align-items:stretch; gap:16px; width:100%; }
  .nav-actions .btn { width:100%; text-align:center; padding:14px 22px; }
  .nav-backdrop {
    display:block; position:fixed; inset:0; background:rgba(7,7,28,0.45);
    opacity:0; pointer-events:none; transition:opacity .3s ease; z-index:30;
  }
  .nav.menu-open .nav-backdrop { opacity:1; pointer-events:auto; }
}

@media (max-width: 768px) {
  .section, .about, .contact, .page-hero, .legal, .footer { padding-left:22px; padding-right:22px; }
  h1.h1 { font-size:30px; }
  h1.h1b { font-size:26px; }
  h2.sec-title { font-size:27px; }
  .about h2.big { font-size:24px; }
  .banner h2 { font-size:22px; }
  .cards, .cards.cols-3 { grid-template-columns:1fr; max-width:460px; }
  .contact-grid { grid-template-columns:1fr; gap:30px; }
  .why-grid, .steps, .stats-grid { grid-template-columns:1fr; }
  .hero-col { flex-direction:column; align-items:center; text-align:center; gap:16px; }
  .hero-col .page-lead { text-align:center; }
  .footer { flex-direction:column; text-align:center; gap:18px; }
  .footer-right { justify-content:center; flex-wrap:wrap; }
  .about { padding-top:56px; padding-bottom:56px; }
  .contact { padding-top:56px; padding-bottom:56px; }
}

@media (max-width: 480px) {
  .hero { padding:44px 18px 40px; }
  h1.h1 { font-size:25px; }
  .tag { font-size:11.5px; padding:6px 12px; }
  .card { padding:28px 22px; }
  .form-card { padding:22px; }
  .logo-badge img { height:32px; }
}
