/* =====================================================
   CENTRO DE NEGOCIOS ELDA-PETRER
   Estilos propios — paleta corporativa compartida
   ===================================================== */

:root {
    /* Paleta corporativa (alineada con la marca hermana Coworking Petrer) */
    --c-primary:        #0066CC;
    --c-primary-dark:   #004C99;
    --c-accent:         #00B4D8;
    --c-secondary:      #1A365D;
    --c-secondary-2:    #2D4A6F;

    --c-white:          #FFFFFF;
    --c-bg:             #FFFFFF;
    --c-bg-alt:         #F6F8FC;
    --c-bg-dark:        #0F1B2D;

    --c-text:           #1F2937;
    --c-text-soft:      #4B5563;
    --c-text-muted:     #6B7280;
    --c-border:         #E5E7EB;

    --c-success:        #10B981;
    --c-whatsapp:       #25D366;

    /* Tipografía (alineada con Coworking Petrer: 100% Inter) */
    --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --fs-xs:   clamp(.75rem, .7rem + .25vw, .875rem);
    --fs-sm:   clamp(.875rem, .8rem + .375vw, 1rem);
    --fs-base: clamp(1rem, .92rem + .4vw, 1.125rem);
    --fs-lg:   clamp(1.125rem, 1rem + .6vw, 1.35rem);
    --fs-xl:   clamp(1.35rem, 1.15rem + .9vw, 1.75rem);
    --fs-2xl:  clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem);
    --fs-3xl:  clamp(2.25rem, 1.7rem + 2.6vw, 3.5rem);
    --fs-hero: clamp(2.5rem, 1.8rem + 4vw, 4.5rem);

    /* Espaciado */
    --sp-1: .25rem;  --sp-2: .5rem;  --sp-3: .75rem;  --sp-4: 1rem;
    --sp-5: 1.5rem;  --sp-6: 2rem;   --sp-7: 3rem;    --sp-8: 4rem;
    --sp-9: 6rem;    --sp-10: 8rem;

    /* Radios y sombras */
    --r-sm: .375rem;  --r-md: .625rem;  --r-lg: 1rem;  --r-xl: 1.5rem;  --r-full: 9999px;
    --sh-sm: 0 1px 2px rgba(15, 27, 45, .06);
    --sh-md: 0 4px 16px rgba(15, 27, 45, .08);
    --sh-lg: 0 12px 32px rgba(15, 27, 45, .12);
    --sh-xl: 0 24px 60px rgba(15, 27, 45, .18);

    /* Layout */
    --container: 1200px;
    --header-h: 76px;
    --t-fast: 180ms ease;
    --t-base: 280ms ease;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
    font-family: var(--font-body);
    font-size: var(--fs-base);
    line-height: 1.65;
    color: var(--c-text);
    background: var(--c-bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg, iframe { max-width: 100%; display: block; }
button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }

/* Container */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--sp-5); }

/* Tipografía utilitaria */
.text-gradient {
    background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-accent) 100%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.eyebrow, .section__eyebrow {
    display: inline-flex; align-items: center; gap: var(--sp-2);
    padding: var(--sp-2) var(--sp-4);
    background: linear-gradient(135deg, rgba(0,102,204,.08), rgba(0,180,216,.08));
    border: 1px solid rgba(0,102,204,.18);
    color: var(--c-primary);
    border-radius: var(--r-full);
    font-size: var(--fs-xs); font-weight: 600;
    text-transform: uppercase; letter-spacing: .08em;
}

/* Botones */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
    padding: var(--sp-3) var(--sp-5);
    border-radius: var(--r-md);
    font-weight: 600; font-size: var(--fs-sm);
    transition: transform var(--t-fast), box-shadow var(--t-base), background var(--t-base), color var(--t-base);
    white-space: nowrap;
}
.btn--sm  { padding: .5rem 1rem; font-size: var(--fs-xs); }
.btn--lg  { padding: var(--sp-4) var(--sp-6); font-size: var(--fs-base); border-radius: var(--r-lg); }
.btn--primary { background: linear-gradient(135deg, var(--c-primary), var(--c-primary-dark)); color: var(--c-white); box-shadow: var(--sh-md); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: var(--sh-lg); }
.btn--secondary { background: var(--c-secondary); color: var(--c-white); box-shadow: var(--sh-md); }
.btn--secondary:hover { background: var(--c-secondary-2); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--c-secondary); border: 1.5px solid var(--c-border); }
.btn--ghost:hover { border-color: var(--c-primary); color: var(--c-primary); }

.link-arrow {
    display: inline-flex; align-items: center; gap: var(--sp-2);
    color: var(--c-primary); font-weight: 600; font-size: var(--fs-sm);
}
.link-arrow i { transition: transform var(--t-fast); }
.link-arrow:hover i { transform: translateX(4px); }

/* HEADER */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    height: var(--header-h);
    background: rgba(255,255,255,.85);
    backdrop-filter: saturate(140%) blur(16px);
    -webkit-backdrop-filter: saturate(140%) blur(16px);
    border-bottom: 1px solid rgba(15,27,45,.06);
}
.header__inner {
    display: flex; align-items: center; justify-content: space-between; height: 100%;
    gap: var(--sp-5);
}

/* Brand */
.brand { display: inline-flex; align-items: center; gap: var(--sp-3); }
.brand__mark {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px;
    border-radius: var(--r-md);
    background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
    color: var(--c-white);
    font-family: var(--font-body); font-weight: 800; font-size: 1.05rem;
    letter-spacing: .04em;
    box-shadow: 0 6px 14px rgba(0,102,204,.25);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-family: var(--font-body); font-weight: 700; font-size: 1.05rem; color: var(--c-secondary); }
.brand__place { font-size: .7rem; font-weight: 700; letter-spacing: .18em; color: var(--c-primary); text-transform: uppercase; }

/* Nav */
.nav__list { display: flex; align-items: center; gap: var(--sp-2); }
.nav__link {
    display: inline-block;
    padding: var(--sp-2) var(--sp-3);
    color: var(--c-text-soft); font-weight: 500; font-size: var(--fs-sm);
    border-radius: var(--r-sm);
    transition: color var(--t-fast), background var(--t-fast);
}
.nav__link:hover { color: var(--c-primary); background: rgba(0,102,204,.06); }
.nav__close, .nav__toggle { display: none; font-size: 1.3rem; color: var(--c-secondary); }

.header__cta { display: flex; align-items: center; gap: var(--sp-3); }
.header__phone {
    display: inline-flex; align-items: center; gap: var(--sp-2);
    color: var(--c-primary); font-weight: 700; font-size: var(--fs-sm);
}
.header__phone:hover { color: var(--c-primary-dark); }

/* Spacer para el header fijo */
main { padding-top: var(--header-h); }

/* HERO */
.hero {
    position: relative;
    padding: var(--sp-9) 0 var(--sp-10);
    background: linear-gradient(180deg, #F6F8FC 0%, #FFFFFF 100%);
    overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__blob {
    position: absolute; border-radius: 50%;
    filter: blur(80px); opacity: .55;
}
.hero__blob--a { width: 520px; height: 520px; background: rgba(0,102,204,.35); top: -160px; right: -120px; }
.hero__blob--b { width: 420px; height: 420px; background: rgba(0,180,216,.30); bottom: -160px; left: -100px; }
.hero__grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(15,27,45,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15,27,45,.04) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

.hero__content { position: relative; text-align: center; max-width: 900px; margin: 0 auto; }

/* Hero con imagen a la derecha (split layout) */
.hero--split .hero__grid-wrapper {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: 1fr 1.05fr;
    gap: var(--sp-8); align-items: center;
}
.hero--split .hero__content { text-align: left; max-width: none; margin: 0; }
.hero--split .hero__lead { margin-left: 0; margin-right: 0; }
.hero--split .hero__actions { justify-content: flex-start; }
.hero--split .hero__chips { justify-content: flex-start; }

.hero__media {
    position: relative;
    border-radius: var(--r-xl);
    overflow: hidden;
    box-shadow: var(--sh-xl);
    aspect-ratio: 16 / 10;
    background: var(--c-bg-alt);
    margin: 0;
}
.hero__media img {
    width: 100%; height: 100%;
    object-fit: cover; object-position: center;
    display: block;
}
.hero__media-caption {
    position: absolute; bottom: var(--sp-4); left: var(--sp-4);
    display: inline-flex; align-items: center; gap: var(--sp-2);
    padding: var(--sp-2) var(--sp-4);
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(8px);
    border-radius: var(--r-full);
    font-size: var(--fs-xs); font-weight: 600;
    color: var(--c-secondary);
    box-shadow: var(--sh-md);
}
.hero__media-caption i { color: var(--c-primary); }

@media (max-width: 980px) {
    .hero--split .hero__grid-wrapper { grid-template-columns: 1fr; gap: var(--sp-6); }
    .hero--split .hero__content { text-align: center; }
    .hero--split .hero__actions, .hero--split .hero__chips { justify-content: center; }
    .hero__media { aspect-ratio: 16 / 9; }
}

.hero__title {
    font-family: var(--font-body);
    font-size: var(--fs-hero);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--c-secondary);
    margin: var(--sp-5) 0 var(--sp-4);
}
.hero__title .text-gradient { display: block; }
.hero__lead {
    font-size: var(--fs-lg);
    color: var(--c-text-soft);
    max-width: 720px; margin: 0 auto var(--sp-6);
}
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-3); margin-bottom: var(--sp-7); }
.hero__chips {
    display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-2) var(--sp-3);
}
.hero__chips li {
    display: inline-flex; align-items: center; gap: var(--sp-2);
    padding: .5rem .9rem;
    background: var(--c-white);
    border: 1px solid var(--c-border);
    border-radius: var(--r-full);
    font-size: var(--fs-xs); font-weight: 500; color: var(--c-text-soft);
    box-shadow: var(--sh-sm);
}
.hero__chips i { color: var(--c-primary); }

/* SECCIONES */
.section { padding: var(--sp-10) 0; }
.section--alt { background: var(--c-bg-alt); }
.section__head { text-align: center; max-width: 760px; margin: 0 auto var(--sp-8); }
.section__title {
    font-family: var(--font-body);
    font-size: var(--fs-3xl); line-height: 1.15;
    font-weight: 800; letter-spacing: -0.02em;
    color: var(--c-secondary);
    margin: var(--sp-4) 0 var(--sp-4);
}
.section__lead { font-size: var(--fs-lg); color: var(--c-text-soft); }

/* CARDS GENÉRICAS */
.cards { display: grid; gap: var(--sp-5); }
.cards--2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.cards--3 { grid-template-columns: repeat(3, minmax(0,1fr)); }

.card {
    padding: var(--sp-6);
    background: var(--c-white);
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-sm);
    transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); border-color: rgba(0,102,204,.25); }
.card__icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 56px; height: 56px;
    background: linear-gradient(135deg, rgba(0,102,204,.12), rgba(0,180,216,.12));
    color: var(--c-primary);
    border-radius: var(--r-md);
    font-size: 1.4rem;
    margin-bottom: var(--sp-4);
}
.card__title { font-family: var(--font-body); font-size: 1.35rem; font-weight: 700; color: var(--c-secondary); margin-bottom: var(--sp-2); }
.card__text { color: var(--c-text-soft); }

/* SPACE CARDS */
.space-card {
    display: flex; flex-direction: column;
    background: var(--c-white);
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--sh-sm);
    transition: transform var(--t-base), box-shadow var(--t-base);
}
.space-card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }
.space-card__media {
    height: 160px;
    display: flex; align-items: center; justify-content: center;
    font-size: 3rem; color: var(--c-white);
    background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
    position: relative; overflow: hidden;
}
.space-card__media::before {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(255,255,255,.18), transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255,255,255,.12), transparent 55%);
}
.space-card__media i { position: relative; z-index: 1; }
.space-card__media--coworking { background: linear-gradient(135deg, #1A365D, #0066CC); }
.space-card__media--sala      { background: linear-gradient(135deg, #00B4D8, #0096B4); }
.space-card__media--domi      { background: linear-gradient(135deg, #2D4A6F, #1A365D); }

.space-card__body { padding: var(--sp-6); display: flex; flex-direction: column; flex: 1; }
.space-card__title { font-family: var(--font-body); font-size: 1.45rem; font-weight: 700; color: var(--c-secondary); margin-bottom: var(--sp-3); }
.space-card__text { color: var(--c-text-soft); margin-bottom: var(--sp-4); }
.space-card__list { display: flex; flex-direction: column; gap: var(--sp-2); margin-bottom: var(--sp-5); }
.space-card__list li { display: flex; gap: var(--sp-2); align-items: flex-start; color: var(--c-text-soft); font-size: var(--fs-sm); }
.space-card__list i { color: var(--c-success); margin-top: .25rem; }

/* SERVICIOS */
.services__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: var(--sp-4);
}
.feature {
    display: flex; align-items: center; gap: var(--sp-3);
    padding: var(--sp-4) var(--sp-5);
    background: var(--c-white);
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
    font-weight: 500; font-size: var(--fs-sm);
    transition: border-color var(--t-fast), transform var(--t-fast);
}
.feature:hover { border-color: var(--c-primary); transform: translateY(-2px); }
.feature i {
    color: var(--c-primary);
    font-size: 1.15rem;
    width: 28px; flex-shrink: 0;
}

/* UBICACIÓN */
.location__grid {
    display: grid; grid-template-columns: 1fr 1.1fr;
    gap: var(--sp-8); align-items: center;
}
.location__list { display: flex; flex-direction: column; gap: var(--sp-4); margin: var(--sp-5) 0 var(--sp-6); }
.location__list li { display: flex; gap: var(--sp-4); align-items: flex-start; color: var(--c-text-soft); }
.location__list i {
    width: 40px; height: 40px; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(0,102,204,.1); color: var(--c-primary);
    border-radius: var(--r-md);
}
.location__map iframe {
    width: 100%; height: 420px;
    border: 0; border-radius: var(--r-lg);
    box-shadow: var(--sh-lg);
}

/* SISTER */
.sister__inner {
    display: grid; grid-template-columns: 1.4fr 1fr;
    gap: var(--sp-8); align-items: center;
    padding: var(--sp-8); border-radius: var(--r-xl);
    background: linear-gradient(135deg, var(--c-secondary), var(--c-primary-dark));
    color: var(--c-white);
    position: relative; overflow: hidden;
}
.sister__inner::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 80% 30%, rgba(0,180,216,.35), transparent 55%);
}
.sister__copy { position: relative; z-index: 1; }
.sister__copy .section__eyebrow { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.25); color: var(--c-white); }
.sister__copy .section__title { color: var(--c-white); }
.sister__copy .section__lead { color: rgba(255,255,255,.85); }
.sister__copy .section__title .text-gradient { background: none; -webkit-text-fill-color: currentColor; color: var(--c-accent); }

.sister__badge { position: relative; z-index: 1; display: flex; justify-content: center; }
.sister__logo {
    display: inline-flex; flex-direction: column; align-items: center; gap: var(--sp-3);
    padding: var(--sp-6) var(--sp-7);
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.18);
    backdrop-filter: blur(6px);
    border-radius: var(--r-xl);
}
.sister__mark {
    display: inline-flex; align-items: center; justify-content: center;
    width: 84px; height: 84px;
    background: var(--c-white); color: var(--c-primary);
    border-radius: var(--r-lg);
    font-family: var(--font-body); font-weight: 800; font-size: 2rem;
}
.sister__name { text-align: center; font-family: var(--font-body); font-weight: 700; font-size: 1.25rem; line-height: 1.15; }

/* FAQ */
.faq__list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: var(--sp-3); }
.faq__item {
    background: var(--c-white);
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
    padding: var(--sp-4) var(--sp-5);
    transition: box-shadow var(--t-fast), border-color var(--t-fast);
}
.faq__item[open] { border-color: rgba(0,102,204,.3); box-shadow: var(--sh-sm); }
.faq__item summary {
    cursor: pointer; list-style: none;
    display: flex; justify-content: space-between; align-items: center;
    font-weight: 600; color: var(--c-secondary);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
    content: '\f078'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
    color: var(--c-primary); transition: transform var(--t-fast);
}
.faq__item[open] summary::after { transform: rotate(180deg); }
.faq__item p { margin-top: var(--sp-3); color: var(--c-text-soft); }

/* CONTACTO */
.contact__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: var(--sp-8); align-items: flex-start; }
.contact__list { display: flex; flex-direction: column; gap: var(--sp-3); margin-top: var(--sp-5); }
.contact__list li { display: flex; gap: var(--sp-3); align-items: center; color: var(--c-text-soft); }
.contact__list i { color: var(--c-primary); width: 22px; text-align: center; }
.contact__list a:hover { color: var(--c-primary); }

.contact__form {
    background: var(--c-white);
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
    padding: var(--sp-6);
    display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: var(--sp-4);
    box-shadow: var(--sh-md);
}
.field { display: flex; flex-direction: column; gap: var(--sp-2); }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: var(--fs-sm); color: var(--c-secondary); }
.field__opt { color: var(--c-text-muted); font-weight: 400; font-size: var(--fs-xs); }
.field input, .field select, .field textarea {
    padding: var(--sp-3) var(--sp-4);
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
    background: var(--c-bg-alt);
    transition: border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
}
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: var(--c-primary); background: var(--c-white);
    box-shadow: 0 0 0 4px rgba(0,102,204,.12);
}
.field__check { display: flex; gap: var(--sp-2); align-items: flex-start; font-size: var(--fs-sm); color: var(--c-text-soft); }
.field__check input { margin-top: .25rem; }
.contact__submit { display: flex; align-items: center; gap: var(--sp-4); flex-wrap: wrap; }
.form__status { font-size: var(--fs-sm); color: var(--c-success); margin: 0; }
.form__status.is-error { color: #DC2626; }

/* FOOTER */
.site-footer {
    background: var(--c-bg-dark); color: rgba(255,255,255,.75);
    padding: var(--sp-8) 0 var(--sp-5);
    margin-top: var(--sp-8);
}
.site-footer__inner {
    display: grid; grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: var(--sp-6); padding-bottom: var(--sp-6);
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.site-footer__brand p { margin-top: var(--sp-3); font-size: var(--fs-sm); color: rgba(255,255,255,.6); max-width: 320px; }
.brand--footer .brand__name { color: var(--c-white); }
.brand--footer .brand__place { color: var(--c-accent); }
.site-footer__col h4 {
    font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .15em;
    color: var(--c-white); margin-bottom: var(--sp-3);
}
.site-footer__col ul { display: flex; flex-direction: column; gap: var(--sp-2); }
.site-footer__col a { font-size: var(--fs-sm); }
.site-footer__col a:hover { color: var(--c-accent); }
.site-footer__legal {
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-3);
    padding-top: var(--sp-5);
    font-size: var(--fs-xs); color: rgba(255,255,255,.5);
}
.site-footer__legal a:hover { color: var(--c-accent); }

/* FAB WhatsApp */
.wa-fab {
    position: fixed; bottom: 24px; right: 24px; z-index: 90;
    width: 56px; height: 56px;
    background: var(--c-whatsapp); color: var(--c-white);
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 10px 24px rgba(37,211,102,.45);
    transition: transform var(--t-fast);
}
.wa-fab:hover { transform: scale(1.08); }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 980px) {
    .cards--3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .services__grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .location__grid, .sister__inner, .contact__grid {
        grid-template-columns: 1fr;
    }
    .location__map iframe { height: 320px; }
    .site-footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
    .nav {
        position: fixed; top: 0; right: 0;
        height: 100vh; width: min(320px, 86vw);
        background: var(--c-white);
        box-shadow: var(--sh-xl);
        padding: calc(var(--header-h) + var(--sp-4)) var(--sp-6) var(--sp-6);
        transform: translateX(110%); transition: transform var(--t-base);
        z-index: 110;
    }
    .nav.is-open { transform: translateX(0); }
    .nav__list { flex-direction: column; align-items: stretch; gap: var(--sp-1); }
    .nav__link { padding: var(--sp-3); border-radius: var(--r-md); font-size: 1rem; }
    .nav__close { display: inline-flex; position: absolute; top: var(--sp-4); right: var(--sp-5); }
    .nav__toggle { display: inline-flex; margin-left: var(--sp-2); }
    .header__phone span { display: none; }
    .header__phone i { font-size: 1.1rem; }
    .header__cta .btn { display: none; }

    .cards--2, .cards--3 { grid-template-columns: 1fr; }
    .contact__form { grid-template-columns: 1fr; }
    .site-footer__inner { grid-template-columns: 1fr; }
    .hero { padding: var(--sp-7) 0 var(--sp-8); }
}

/* Mostrar overlay al abrir nav móvil */
body.nav-open { overflow: hidden; }
body.nav-open::after {
    content: ''; position: fixed; inset: 0;
    background: rgba(15,27,45,.5); z-index: 105;
}

/* Accesibilidad: foco visible */
:focus-visible {
    outline: 2px solid var(--c-primary);
    outline-offset: 3px;
    border-radius: var(--r-sm);
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

/* =====================================================
   LEGAL PAGES
   ===================================================== */
.legal-page { padding: calc(var(--header-h) + var(--sp-8)) 0 var(--sp-8); }
.legal-page__header { text-align: center; margin-bottom: var(--sp-8); padding-bottom: var(--sp-6); border-bottom: 1px solid var(--c-border); }
.legal-page__title { font-size: var(--fs-3xl); font-weight: 800; color: var(--c-secondary); letter-spacing: -0.02em; margin-bottom: var(--sp-2); }
.legal-page__subtitle { font-size: var(--fs-lg); color: var(--c-text-soft); }
.legal-page__content { max-width: 820px; margin: 0 auto; }
.legal-section { margin-bottom: var(--sp-7); }
.legal-section h2 { font-size: 1.5rem; font-weight: 700; color: var(--c-secondary); margin-bottom: var(--sp-4); padding-bottom: var(--sp-2); border-bottom: 2px solid var(--c-primary); display: inline-block; }
.legal-section h3 { font-size: 1.15rem; font-weight: 700; color: var(--c-secondary); margin: var(--sp-5) 0 var(--sp-3); }
.legal-section p { color: var(--c-text-soft); margin-bottom: var(--sp-3); line-height: 1.75; }
.legal-section ul { padding-left: var(--sp-5); margin-bottom: var(--sp-4); list-style: disc; }
.legal-section li { color: var(--c-text-soft); margin-bottom: var(--sp-2); line-height: 1.7; }
.legal-section a { color: var(--c-primary); font-weight: 500; }
.legal-section a:hover { text-decoration: underline; }
.legal-page__back { margin-top: var(--sp-7); padding-top: var(--sp-6); border-top: 1px solid var(--c-border); text-align: center; }

.cookie-table-wrapper { overflow-x: auto; margin: var(--sp-4) 0; border-radius: var(--r-md); border: 1px solid var(--c-border); }
.cookie-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); background: var(--c-white); }
.cookie-table thead { background: var(--c-bg-alt); }
.cookie-table th { text-align: left; padding: var(--sp-3) var(--sp-4); font-weight: 700; color: var(--c-secondary); border-bottom: 1px solid var(--c-border); }
.cookie-table td { padding: var(--sp-3) var(--sp-4); color: var(--c-text-soft); border-bottom: 1px solid var(--c-border); }
.cookie-table tbody tr:last-child td { border-bottom: 0; }

/* =====================================================
   COOKIE CONSENT BANNER + MODAL
   ===================================================== */
.cookie-banner {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
    background: var(--c-white);
    border-top: 3px solid var(--c-primary);
    box-shadow: 0 -8px 32px rgba(15,27,45,.18);
    padding: var(--sp-5) 0;
    animation: cookieSlideUp .35s ease-out;
}
.cookie-banner[hidden] { display: none; }
@keyframes cookieSlideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.cookie-banner__content {
    max-width: var(--container); margin: 0 auto; padding: 0 var(--sp-5);
    display: grid; grid-template-columns: 1fr auto; gap: var(--sp-5); align-items: center;
}
.cookie-banner__title { font-size: 1.05rem; font-weight: 700; color: var(--c-secondary); margin-bottom: var(--sp-2); }
.cookie-banner__description { font-size: var(--fs-sm); color: var(--c-text-soft); margin: 0; line-height: 1.5; }
.cookie-banner__actions { display: flex; gap: var(--sp-2); flex-wrap: wrap; align-items: center; }
.cookie-banner__btn { white-space: nowrap; }
.cookie-banner__link { display: inline-block; margin-top: var(--sp-2); font-size: var(--fs-xs); color: var(--c-primary); font-weight: 500; }
.cookie-banner__link:hover { text-decoration: underline; }

@media (max-width: 760px) {
    .cookie-banner__content { grid-template-columns: 1fr; }
    .cookie-banner__actions { justify-content: stretch; }
    .cookie-banner__btn { flex: 1; min-width: 30%; }
}

.cookie-modal { position: fixed; inset: 0; z-index: 250; display: flex; align-items: center; justify-content: center; padding: var(--sp-4); }
.cookie-modal[hidden] { display: none; }
.cookie-modal__overlay { position: absolute; inset: 0; background: rgba(15,27,45,.55); backdrop-filter: blur(2px); }
.cookie-modal__content {
    position: relative; z-index: 1;
    background: var(--c-white); border-radius: var(--r-lg);
    width: 100%; max-width: 560px; max-height: 90vh; overflow: hidden;
    display: flex; flex-direction: column;
    box-shadow: var(--sh-xl);
    animation: cookieModalIn .25s ease-out;
}
@keyframes cookieModalIn { from { transform: scale(.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.cookie-modal__header { display: flex; justify-content: space-between; align-items: center; padding: var(--sp-5) var(--sp-6); border-bottom: 1px solid var(--c-border); }
.cookie-modal__title { font-size: 1.15rem; font-weight: 700; color: var(--c-secondary); }
.cookie-modal__close { font-size: 1.25rem; color: var(--c-text-muted); padding: var(--sp-1); border-radius: var(--r-sm); transition: color var(--t-fast), background var(--t-fast); }
.cookie-modal__close:hover { color: var(--c-secondary); background: var(--c-bg-alt); }
.cookie-modal__body { padding: var(--sp-5) var(--sp-6); overflow-y: auto; display: flex; flex-direction: column; gap: var(--sp-4); }
.cookie-modal__footer { padding: var(--sp-5) var(--sp-6); border-top: 1px solid var(--c-border); display: flex; gap: var(--sp-3); justify-content: flex-end; flex-wrap: wrap; }

.cookie-option { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--sp-4); padding: var(--sp-4); background: var(--c-bg-alt); border-radius: var(--r-md); }
.cookie-option__info { flex: 1; min-width: 0; }
.cookie-option__title { font-size: 1rem; font-weight: 700; color: var(--c-secondary); margin-bottom: var(--sp-1); }
.cookie-option__description { font-size: var(--fs-xs); color: var(--c-text-soft); margin: 0; line-height: 1.5; }

.toggle { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle__slider { position: absolute; cursor: pointer; inset: 0; background: var(--c-border); border-radius: 24px; transition: background var(--t-fast); }
.toggle__slider::before { content: ''; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; background: var(--c-white); border-radius: 50%; transition: transform var(--t-fast); box-shadow: 0 1px 3px rgba(0,0,0,.18); }
.toggle input:checked + .toggle__slider { background: var(--c-primary); }
.toggle input:checked + .toggle__slider::before { transform: translateX(20px); }
.toggle--disabled .toggle__slider { background: var(--c-primary); opacity: .6; cursor: not-allowed; }

@media (max-width: 760px) {
    .cookie-modal__footer { flex-direction: column-reverse; }
    .cookie-modal__footer .btn { width: 100%; }
}
