/* ============================================
   GLOBAL DOORS IBÉRICA — Stylesheet
   Editorial / minimalista (ref. klein.pro · saheco.com)
   ============================================ */

/* === VARIABLES === */
:root {
    /* Neutros editoriales */
    --ink:        #1A1C1E;   /* texto principal / secciones oscuras */
    --ink-2:      #33373B;
    --muted:      #6A7079;   /* texto secundario */
    --line:       #E4E6E9;   /* hairlines */
    --paper:      #FFFFFF;
    --paper-2:    #F6F5F2;   /* crema off-white para alternar */
    --paper-3:    #EFEEEA;

    /* Marca */
    --blue:       #1B4B9B;   /* azul del logo, uso discreto */
    --accent:     #C0381A;   /* granate refinado, muy puntual */

    --font:       'Inter', system-ui, -apple-system, sans-serif;
    --radius:     2px;
    --transition: .35s cubic-bezier(.22,.61,.36,1);
    --container:  1280px;
    --gutter:     40px;
    --header-h:   88px;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
html, body { overflow-x: hidden; }
body {
    font-family: var(--font);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.65;
    font-weight: 400;
    width: 100%;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* === Eyebrow label === */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 22px;
}
.eyebrow::before {
    content: '';
    width: 28px;
    height: 1px;
    background: var(--accent);
}
.eyebrow--light { color: rgba(255,255,255,.65); }

/* === CTAs === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 32px;
    font-family: var(--font);
    font-weight: 500;
    font-size: .92rem;
    letter-spacing: .02em;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: var(--radius);
    transition: all var(--transition);
    white-space: nowrap;
    line-height: 1;
}
.btn--solid { background: var(--ink); color: #fff; }
.btn--solid:hover { background: var(--accent); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn--ghost-light:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn--block { width: 100%; }

/* Link-style CTA "Descubrir →" */
.link-cta {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: .9rem;
    font-weight: 600;
    letter-spacing: .02em;
    color: var(--ink);
    padding-bottom: 3px;
    border-bottom: 1px solid var(--ink);
    transition: gap var(--transition), color var(--transition), border-color var(--transition);
}
.link-cta svg { width: 16px; height: 16px; transition: transform var(--transition); }
.link-cta:hover { gap: 14px; color: var(--accent); border-color: var(--accent); }
.link-cta:hover svg { transform: translateX(3px); }
.link-cta--light { color: #fff; border-color: rgba(255,255,255,.5); }
.link-cta--light:hover { color: #fff; border-color: #fff; }

/* ============================================
   HEADER (transparente sobre héroe → blanco al scroll)
   ============================================ */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    transition: box-shadow var(--transition), border-color var(--transition);
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
    gap: 24px;
}
.logo img { height: 44px; width: auto; }   /* logo real, siempre legible */
.nav { display: flex; align-items: center; gap: 36px; }
.nav__link {
    font-weight: 500;
    font-size: .9rem;
    letter-spacing: .01em;
    color: var(--muted);
    transition: color var(--transition);
}
.nav__link:hover { color: var(--ink); }
.nav__cta { color: var(--ink); border-color: var(--line); padding: 11px 22px; }
.nav__cta:hover { border-color: var(--ink); }

/* sombra sutil al hacer scroll */
.header.scrolled { box-shadow: 0 4px 24px rgba(20,22,24,.07); }

/* mobile toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none; border: none;
    cursor: pointer; padding: 6px;
    z-index: 101;
}
.nav-toggle span {
    display: block; width: 26px; height: 1.5px;
    background: var(--ink);
    transition: all var(--transition);
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ============================================
   HERO (foto a sangre completa)
   ============================================ */
.hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: flex-end;
    color: #fff;
    overflow: hidden;
}
.hero__bg {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    top: var(--header-h);          /* la imagen arranca bajo el header */
    z-index: 0;
}
.hero__bg img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center 32%;   /* encuadre que deja ver el carril/sistema */
}
.hero__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20,22,24,.45) 0%, rgba(20,22,24,.15) 40%, rgba(20,22,24,.78) 100%);
}
.hero__inner {
    position: relative;
    z-index: 1;
    width: 100%;
    padding-top: 140px;
    padding-bottom: 72px;
}
.hero__content { max-width: 760px; }
.hero__title {
    font-size: clamp(2.4rem, 5.2vw, 4.1rem);
    font-weight: 500;
    line-height: 1.07;
    letter-spacing: -.03em;
    margin-bottom: 26px;
    text-wrap: balance;
}
.hero__text {
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    font-weight: 400;
    color: rgba(255,255,255,.88);
    max-width: 560px;
    margin-bottom: 38px;
    line-height: 1.65;
}
.hero__actions { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.hero__scroll {
    position: absolute;
    bottom: 32px; right: var(--gutter);
    z-index: 1;
    font-size: .72rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: rgba(255,255,255,.6);
    writing-mode: vertical-rl;
}

/* ============================================
   TRUST BAR
   ============================================ */
.trust {
    border-bottom: 1px solid var(--line);
    background: var(--paper);
}
.trust__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 34px var(--gutter);
    flex-wrap: wrap;
}
.trust__cell { display: flex; align-items: baseline; gap: 12px; }
.trust__num {
    font-size: 1.7rem;
    font-weight: 600;
    letter-spacing: -.02em;
    color: var(--ink);
    line-height: 1;
}
.trust__cell span { font-size: .9rem; color: var(--muted); }
.trust__brands {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.trust__brands > small {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--muted);
    margin-right: 6px;
}
.brand-wordmark {
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: .04em;
    color: var(--ink);
    opacity: .72;
    transition: opacity var(--transition);
}
.brand-wordmark:hover { opacity: 1; }
.brand-wordmark--alt { display: inline-flex; flex-direction: column; line-height: 1; }
.brand-wordmark--alt small {
    font-size: .5rem; font-weight: 600;
    letter-spacing: .14em; text-transform: uppercase;
    color: var(--muted); margin-top: 3px;
}
.trust__sep { width: 1px; height: 30px; background: var(--line); }

/* ============================================
   SECTIONS (genérico)
   ============================================ */
.section { padding: 72px 0; }
.section--paper2 { background: var(--paper-2); }
.section--ink { background: var(--ink); color: #fff; }

.section__head { max-width: 720px; margin-bottom: 64px; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section__head--center .eyebrow::before { display: none; }
.section__head--center .eyebrow { gap: 0; }
.section-title {
    font-size: clamp(1.8rem, 3.4vw, 2.7rem);
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: -.025em;
    color: inherit;
    text-wrap: balance;
}
.section-lead {
    font-size: 1.1rem;
    color: var(--muted);
    margin-top: 18px;
    line-height: 1.7;
}
.section--ink .section-lead { color: rgba(255,255,255,.7); }

/* ============================================
   ABOUT (Quiénes somos)
   ============================================ */
.about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.about__media { position: relative; }
.about__media img {
    width: 100%;
    aspect-ratio: 4 / 4.6;
    object-fit: cover;
}
.about__media-tag {
    position: absolute;
    left: 28px; bottom: 28px;
    background: var(--paper);
    padding: 18px 24px;
    display: flex; align-items: baseline; gap: 12px;
    box-shadow: 0 20px 50px rgba(20,22,24,.18);
}
.about__media-tag b { font-size: 2rem; font-weight: 600; letter-spacing: -.02em; }
.about__media-tag span { font-size: .82rem; color: var(--muted); line-height: 1.35; }
.about__body .section-title { margin-bottom: 26px; }
.about__body p {
    color: var(--muted);
    font-size: 1.04rem;
    line-height: 1.85;
    margin-bottom: 20px;
}
.about__body strong { color: var(--ink); font-weight: 600; }
.about__body .btn { margin-top: 14px; }

/* ============================================
   CATEGORÍAS
   ============================================ */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px 28px;
}
.cat {
    display: flex;
    flex-direction: column;
    color: var(--ink);
    position: relative;
    cursor: pointer;
    outline: none;
}
.cat:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.cat__media {
    position: relative;
    aspect-ratio: 4 / 3.4;
    overflow: hidden;
    background: var(--paper-3);
    margin-bottom: 20px;
}
.cat__media img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .8s cubic-bezier(.22,.61,.36,1);
}
.cat:hover .cat__media img { transform: scale(1.05); }
.cat__index {
    position: absolute;
    top: 16px; left: 16px;
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .12em;
    color: #fff;
    mix-blend-mode: difference;
}
.cat__foot {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    transition: border-color var(--transition);
}
.cat:hover .cat__foot { border-color: var(--ink); }
.cat__title {
    font-size: 1.12rem;
    font-weight: 500;
    letter-spacing: -.015em;
    line-height: 1.3;
    margin-bottom: 6px;
}
.cat__desc {
    font-size: .88rem;
    color: var(--muted);
    line-height: 1.55;
}
.cat__arrow {
    flex-shrink: 0;
    width: 38px; height: 38px;
    display: grid; place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--ink);
    transition: all var(--transition);
}
.cat__arrow svg { width: 17px; height: 17px; }
.cat:hover .cat__arrow { background: var(--ink); color: #fff; border-color: var(--ink); transform: translateX(2px); }

/* --- Overlay (hover desktop / tap mobile) --- */
.cat__overlay {
    position: absolute;
    inset: 0;
    background: rgba(20, 22, 24, .95);
    color: #fff;
    display: flex;
    align-items: center;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity var(--transition), transform var(--transition);
    pointer-events: none;
    z-index: 2;
}
.cat:hover .cat__overlay,
.cat:focus-within .cat__overlay,
.cat.is-open .cat__overlay {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.cat__overlay-inner { width: 100%; padding: 34px 30px; }
.cat__overlay-title {
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: -.015em;
    line-height: 1.25;
    margin-bottom: 12px;
}
.cat__overlay-desc {
    font-size: .92rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, .82);
    margin-bottom: 20px;
}
.cat__features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 26px;
}
.cat__features li {
    position: relative;
    padding-left: 24px;
    font-size: .86rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, .92);
}
.cat__features li::before {
    content: '';
    position: absolute;
    left: 1px; top: 5px;
    width: 12px; height: 7px;
    border-left: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
    transform: rotate(-45deg);
}
.cat__overlay-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
}
.cat__overlay .btn--solid { background: #fff; color: var(--ink); }
.cat__overlay .btn--solid:hover { background: var(--accent); color: #fff; }
.cat__gama-link {
    font-size: .85rem;
    font-weight: 600;
    color: #fff;
    opacity: .85;
    padding-bottom: 2px;
    border-bottom: 1px solid rgba(255, 255, 255, .4);
    transition: opacity var(--transition), border-color var(--transition);
}
.cat__gama-link:hover { opacity: 1; border-color: #fff; }

/* ============================================
   PILARES (Por qué elegirnos)
   ============================================ */
.pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.pillar {
    background: var(--paper-2);
    border-top: 2px solid var(--accent);
    padding: 40px 36px 44px;
}
.pillar__icon {
    width: 44px; height: 44px;
    background: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--ink);
    margin-bottom: 28px;
    flex-shrink: 0;
}
.pillar__icon svg { width: 22px; height: 22px; }
.pillar h3 {
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: -.01em;
    margin-bottom: 12px;
}
.pillar p { font-size: .93rem; color: var(--muted); line-height: 1.8; }

/* ============================================
   PROYECTOS / APLICACIONES (galería)
   ============================================ */
.gallery {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 16px;
}
.gallery__item {
    position: relative;
    overflow: hidden;
    background: var(--paper-3);
    cursor: pointer;
    outline: none;
}
.gallery__item:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.gallery__item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .8s cubic-bezier(.22,.61,.36,1);
}
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item--lg { grid-column: span 6; aspect-ratio: 16/11; }
.gallery__item--lg img { object-position: center 20%; }  /* muestra la parte superior de la puerta */
.gallery__item--sm { grid-column: span 6; aspect-ratio: 16/11; }
.gallery__item--third { grid-column: span 4; aspect-ratio: 4/3.4; }
.gallery__cap {
    position: absolute;
    left: 0; bottom: 0;
    padding: 18px 22px;
    color: #fff;
    font-size: .85rem;
    letter-spacing: .04em;
    width: 100%;
    background: linear-gradient(0deg, rgba(20,22,24,.7) 0%, transparent 100%);
    transition: opacity var(--transition);
}
.gallery__item:hover .gallery__cap,
.gallery__item:focus-within .gallery__cap,
.gallery__item.is-open .gallery__cap { opacity: 0; }

/* --- Overlay (hover desktop / tap mobile) --- */
.gallery__overlay {
    position: absolute;
    inset: 0;
    background: rgba(20, 22, 24, .95);
    color: #fff;
    display: flex;
    align-items: center;
    overflow: auto;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity var(--transition), transform var(--transition);
    pointer-events: none;
    z-index: 3;
}
.gallery__item:hover .gallery__overlay,
.gallery__item:focus-within .gallery__overlay,
.gallery__item.is-open .gallery__overlay {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.gallery__overlay-inner { width: 100%; padding: 30px 32px; }
.gallery__overlay-title {
    font-size: 1.18rem;
    font-weight: 500;
    letter-spacing: -.015em;
    line-height: 1.25;
    margin-bottom: 10px;
}
.gallery__overlay-desc {
    font-size: .9rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, .82);
    margin-bottom: 18px;
}
.gallery__features {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-bottom: 22px;
}
.gallery__features li {
    position: relative;
    padding-left: 24px;
    font-size: .85rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, .92);
}
.gallery__features li::before {
    content: '';
    position: absolute;
    left: 1px; top: 5px;
    width: 12px; height: 7px;
    border-left: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
    transform: rotate(-45deg);
}
.gallery__overlay .btn--solid { background: #fff; color: var(--ink); }
.gallery__overlay .btn--solid:hover { background: var(--accent); color: #fff; }

/* ============================================
   PARA PROFESIONALES (banda oscura)
   ============================================ */
.pros { background: var(--ink); color: #fff; }
.pros__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    min-height: 540px;
}
.pros__content {
    padding: 110px var(--gutter) 110px 0;
    align-self: center;
    max-width: 560px;
}
.pros__content h2 {
    font-size: clamp(1.8rem, 3.2vw, 2.6rem);
    font-weight: 500;
    letter-spacing: -.025em;
    line-height: 1.12;
    margin-bottom: 22px;
}
.pros__content > p {
    color: rgba(255,255,255,.72);
    font-size: 1.05rem;
    line-height: 1.75;
    margin-bottom: 36px;
}
.pros__list { display: flex; flex-direction: column; margin-bottom: 40px; }
.pros__list li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,.14);
}
.pros__list li:last-child { border-bottom: 1px solid rgba(255,255,255,.14); }
.pros__list svg { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; margin-top: 3px; }
.pros__list strong { display: block; font-weight: 600; font-size: 1.02rem; margin-bottom: 3px; }
.pros__list span { color: rgba(255,255,255,.6); font-size: .92rem; }
.pros__media {
    position: relative;
    margin-right: calc(-1 * (50vw - 50%));   /* sangra a la derecha */
}
.pros__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ============================================
   CONTACTO
   ============================================ */
.contact {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 72px;
    align-items: start;
}
.contact__info { display: flex; flex-direction: column; gap: 0; }
.contact__item {
    display: flex;
    gap: 18px;
    padding: 24px 0;
    border-bottom: 1px solid var(--line);
}
.contact__info .contact__item:first-child { padding-top: 0; }
.contact__item svg { width: 22px; height: 22px; color: var(--ink); flex-shrink: 0; margin-top: 3px; }
.contact__item h4 {
    font-size: .72rem; text-transform: uppercase; letter-spacing: .14em;
    color: var(--muted); margin-bottom: 6px; font-weight: 600;
}
.contact__item a { font-weight: 500; }
.contact__item a:hover { color: var(--accent); }
.contact__item p { font-size: .96rem; line-height: 1.55; }
.contact__map { margin-top: 24px; overflow: hidden; border: 1px solid var(--line); }
.contact__map iframe { display: block; filter: grayscale(1) contrast(1.05); transition: filter var(--transition); }
.contact__map:hover iframe { filter: none; }

/* Form */
.contact__form { background: var(--paper-2); padding: 48px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.form-group { margin-bottom: 22px; }
.form-group label {
    display: block;
    font-size: .76rem; font-weight: 600;
    letter-spacing: .08em; text-transform: uppercase;
    color: var(--muted); margin-bottom: 9px;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 13px 0;
    border: none;
    border-bottom: 1px solid var(--line);
    background: transparent;
    font-family: var(--font);
    font-size: 1rem;
    color: var(--ink);
    transition: border-color var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-bottom-color: var(--ink);
}
.form-group textarea { resize: vertical; min-height: 90px; }
.form-note { font-size: .82rem; color: var(--muted); text-align: center; margin-top: 16px; line-height: 1.5; }
.form-note.is-error { color: var(--accent); font-weight: 600; }

/* WhatsApp — panel de contacto + botón */
.contact__wa {
    background: var(--paper-2);
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}
.contact__wa-icon {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: 24px;
}
.contact__wa-icon svg { width: 30px; height: 30px; }
.contact__wa h3 {
    font-size: 1.5rem; font-weight: 500;
    letter-spacing: -.02em; margin-bottom: 12px;
}
.contact__wa p { color: var(--muted); font-size: .98rem; line-height: 1.6; margin-bottom: 26px; }
.contact__wa .btn--wa { margin-bottom: 18px; }
.contact__wa .form-note { width: 100%; margin-top: 0; }
.btn--wa {
    background: #25D366; color: #fff; border-color: #25D366;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
}
.btn--wa svg { width: 22px; height: 22px; }
.btn--wa:hover { background: #1ebe5a; border-color: #1ebe5a; color: #fff; }

/* WhatsApp — botón flotante (inyectado en todas las páginas por main.js) */
.wa-float {
    position: fixed;
    right: 22px; bottom: 22px;
    width: 58px; height: 58px;
    display: flex; align-items: center; justify-content: center;
    background: #25D366; color: #fff;
    border-radius: 50%;
    box-shadow: 0 8px 24px rgba(37,211,102,.36), 0 2px 8px rgba(20,22,24,.16);
    z-index: 95;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover {
    transform: translateY(-3px) scale(1.05);
    background: #1ebe5a;
    box-shadow: 0 12px 30px rgba(37,211,102,.45), 0 3px 10px rgba(20,22,24,.18);
}
@media (max-width: 768px) {
    .wa-float { width: 54px; height: 54px; right: 16px; bottom: 16px; }
    .wa-float svg { width: 28px; height: 28px; }
}

/* ============================================
   FOOTER
   ============================================ */
.footer { background: var(--ink); color: #fff; padding: 88px 0 36px; }
.footer__top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 48px;
    padding-bottom: 56px;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer__logo { filter: invert(1) hue-rotate(180deg); margin-bottom: 22px; height: 40px; }
.footer__brand p { font-size: .92rem; color: rgba(255,255,255,.55); line-height: 1.75; max-width: 320px; }
.footer__links h4 {
    font-size: .72rem; text-transform: uppercase; letter-spacing: .14em;
    color: rgba(255,255,255,.45); margin-bottom: 20px; font-weight: 600;
}
.footer__links ul { display: flex; flex-direction: column; gap: 13px; }
.footer__links li { font-size: .9rem; color: rgba(255,255,255,.6); }
.footer__links a { font-size: .9rem; color: rgba(255,255,255,.6); transition: color var(--transition); }
.footer__links a:hover { color: #fff; }
.footer__bottom {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; flex-wrap: wrap;
}
.footer__bottom p { font-size: .82rem; color: rgba(255,255,255,.4); }
.footer__legal { display: flex; gap: 28px; }
.footer__legal a { font-size: .82rem; color: rgba(255,255,255,.4); transition: color var(--transition); }
.footer__legal a:hover { color: #fff; }

/* ============================================
   SCROLL REVEAL
   ============================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.22,.61,.36,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
    .cat__media img, .gallery__item img { transition: none; }
    .cat__overlay, .gallery__overlay { transition: opacity .01ms; transform: none; }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    :root { --gutter: 28px; }
    .section { padding: 56px 0; }
    .about { grid-template-columns: 1fr; gap: 48px; }
    .about__media { max-width: 520px; }
    .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
    .pillars { grid-template-columns: 1fr; gap: 16px; }
    .pillar { padding: 32px 28px 36px; }
    .pros__inner { grid-template-columns: 1fr; min-height: 0; }
    .pros__content { padding: 80px 0; max-width: none; }
    .pros__media { position: relative; margin: 0; height: 360px; }
    .pros__media img { position: absolute; }
    .contact { grid-template-columns: 1fr; gap: 48px; }
    .footer__top { grid-template-columns: 1fr 1fr; gap: 36px; }
    .gallery__item--lg, .gallery__item--sm { grid-column: span 6; aspect-ratio: 16/11; }
    .gallery__item--third { grid-column: span 4; }
}

@media (max-width: 768px) {
    .section { padding: 44px 0; }
    .hero { min-height: 88vh; }
    .hero__inner { padding-top: 120px; padding-bottom: 56px; }
    .hero__scroll { display: none; }

    .nav {
        position: fixed;
        top: var(--header-h); left: 0; right: 0;
        width: 100%;
        max-height: calc(100dvh - var(--header-h));
        overflow-y: auto;
        /* opaco arriba (donde va el texto) → translúcido abajo para ver la página */
        background: linear-gradient(180deg, #fff 0%, #fff 58%, rgba(255,255,255,.88) 100%);
        -webkit-backdrop-filter: blur(8px);
        backdrop-filter: blur(8px);
        border-bottom: 1px solid var(--line);
        box-shadow: 0 24px 44px rgba(20,22,24,.16);
        z-index: 90;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;   /* texto arriba */
        padding: 8px 28px 30px;
        gap: 0;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-12px);
        transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
    }
    .nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
    .nav__link {
        font-size: 1.05rem; font-weight: 500; color: var(--ink);
        padding: 16px 2px;
        border-bottom: 1px solid var(--line);
    }
    .header.scrolled .nav__link,
    .nav .nav__link { color: var(--ink); }
    .nav .btn { margin-top: 18px; }
    .nav__cta, .header.scrolled .nav__cta { color: var(--ink); border-color: var(--line); }
    .nav-toggle { display: flex; }

    .cat-grid { grid-template-columns: 1fr; gap: 40px; }
    .cat__media { aspect-ratio: 4/3.4; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .contact__form { padding: 28px; }
    .footer__top { grid-template-columns: 1fr; gap: 32px; }
    .footer__bottom { flex-direction: column; align-items: flex-start; }
    .trust__sep { display: none; }
    .trust__inner { gap: 24px; }

    .gallery { grid-template-columns: 1fr; }
    .gallery__item--lg, .gallery__item--sm, .gallery__item--third { grid-column: span 1; aspect-ratio: 16/11; }

    .hero__actions { flex-direction: column; align-items: stretch; }
    .hero__actions .btn { width: 100%; }
}

/* ============================================
   PÁGINA DE GAMA (gama.html)
   ============================================ */
.gama-hero {
    position: relative;
    color: #fff;
    padding: calc(var(--header-h) + 76px) 0 76px;
    overflow: hidden;
}
.gama-hero__bg {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}
.gama-hero__bg::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(20,22,24,.74) 0%, rgba(20,22,24,.6) 100%);
}
.gama-hero__inner { position: relative; z-index: 1; max-width: 820px; }
.breadcrumb {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
    font-size: .82rem; color: rgba(255,255,255,.7);
    margin-bottom: 26px;
}
.breadcrumb a { color: rgba(255,255,255,.7); transition: color var(--transition); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb__current { color: #fff; }
.gama-hero__title {
    font-size: clamp(2rem, 4.2vw, 3.1rem);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -.03em;
    margin-bottom: 24px;
}
.gama-hero__desc p {
    font-size: 1.05rem;
    line-height: 1.75;
    color: rgba(255,255,255,.85);
    margin-bottom: 14px;
}
.gama-hero__desc p:last-child { margin-bottom: 0; }

/* Características + specs */
.gama-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}
.gama-features__list {
    display: flex; flex-direction: column; gap: 14px;
    margin-top: 22px;
}
.gama-features__list li {
    position: relative;
    padding-left: 28px;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--ink-2);
}
.gama-features__list li::before {
    content: '';
    position: absolute; left: 0; top: 7px;
    width: 13px; height: 8px;
    border-left: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
    transform: rotate(-45deg);
}
.gama-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
.spec {
    display: flex; align-items: flex-start; gap: 14px;
    padding: 22px;
    border: 1px solid var(--line);
    background: var(--paper);
}
.spec__icon {
    flex-shrink: 0;
    width: 42px; height: 42px;
    display: grid; place-items: center;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 50%;
}
.spec__icon svg { width: 22px; height: 22px; }
.spec__label {
    display: block;
    font-size: .72rem; text-transform: uppercase; letter-spacing: .1em;
    color: var(--muted); margin-bottom: 4px;
}
.spec__value { display: block; font-size: .98rem; font-weight: 600; color: var(--ink); line-height: 1.35; }

/* Productos de la gama */
.gp-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}
.gp { display: flex; flex-direction: column; }
.gp__media {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--paper-3);
    margin-bottom: 18px;
}
.gp__media img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .7s cubic-bezier(.22,.61,.36,1);
}
.gp:hover .gp__media img { transform: scale(1.05); }
.gp__media--placeholder {
    display: grid; place-items: center;
    padding: 24px; text-align: center;
}
.gp__media--placeholder span {
    font-size: .95rem; font-weight: 500; color: var(--muted); letter-spacing: -.01em;
}
.gp__name { font-size: 1.05rem; font-weight: 500; letter-spacing: -.015em; margin-bottom: 6px; }
.gp__desc { font-size: .88rem; color: var(--muted); line-height: 1.55; margin-bottom: 16px; flex: 1; }
.gp .link-cta { font-size: .85rem; align-self: flex-start; }

/* CTA contacto */
.gama-cta { background: var(--ink); color: #fff; padding: 72px 0; }
.gama-cta__inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 40px; flex-wrap: wrap;
}
.gama-cta h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 500; letter-spacing: -.02em; margin-bottom: 10px; }
.gama-cta p { color: rgba(255,255,255,.75); font-size: 1.02rem; line-height: 1.6; max-width: 540px; }
.gama-cta__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.gama-cta .btn--solid { background: #fff; color: var(--ink); }
.gama-cta .btn--solid:hover { background: var(--accent); color: #fff; }
.gama-cta .btn--ghost { color: #fff; border-color: rgba(255,255,255,.4); }
.gama-cta .btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }

/* Navegación entre gamas */
.gama-nav { border-top: 1px solid var(--line); }
.gama-nav__inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 24px; padding: 32px 0;
}
.gama-nav__link { display: flex; flex-direction: column; gap: 4px; max-width: 40%; }
.gama-nav__link--next { text-align: right; align-items: flex-end; }
.gama-nav__dir { font-size: .8rem; color: var(--muted); letter-spacing: .02em; }
.gama-nav__name { font-size: 1rem; font-weight: 500; color: var(--ink); transition: color var(--transition); letter-spacing: -.01em; }
.gama-nav__link:hover .gama-nav__name { color: var(--accent); }
.gama-nav__all {
    font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em;
    color: var(--muted); transition: color var(--transition);
}
.gama-nav__all:hover { color: var(--ink); }

@media (max-width: 1024px) {
    .gama-cols { grid-template-columns: 1fr; gap: 40px; }
    .gp-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .gama-hero { padding: calc(var(--header-h) + 48px) 0 56px; }
    .gama-specs { grid-template-columns: 1fr; }
    .gp-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .gama-cta__inner { flex-direction: column; align-items: flex-start; }
    .gama-nav__all { display: none; }

    /* Navegación gama — móvil: dos tarjetas apiladas */
    .gama-nav { border-top: none; }
    .gama-nav__inner {
        flex-direction: column;
        gap: 0;
        padding: 24px 0 32px;
    }
    .gama-nav__link {
        max-width: none;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        padding: 18px 20px;
        border: 1px solid var(--line);
        background: var(--paper);
        gap: 4px;
        transition: background var(--transition), border-color var(--transition);
    }
    .gama-nav__link--prev { border-bottom: none; }
    .gama-nav__link--next { text-align: left; align-items: flex-start; }
    .gama-nav__link:active { background: var(--paper-2); border-color: var(--ink); }
    .gama-nav__dir { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
    .gama-nav__name { font-size: 1.05rem; }
}
@media (max-width: 480px) {
    .gp-grid { grid-template-columns: 1fr; }
}

/* ============================================
   PÁGINA DE PRODUCTO (producto.html)
   ============================================ */
.phero { padding: calc(var(--header-h) + 56px) 0 64px; }
.phero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
}
.phero__media {
    aspect-ratio: 1 / 1;
    background: var(--paper-3);
    overflow: hidden;
}
.phero__media img { width: 100%; height: 100%; object-fit: cover; }
.phero__media--placeholder { display: grid; place-items: center; text-align: center; padding: 24px; }
.phero__media--placeholder span { font-size: 1.05rem; font-weight: 500; color: var(--muted); }
.phero__thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.phero__thumb {
    width: 64px; height: 64px;
    border: 1px solid var(--line);
    background: none; padding: 0; cursor: pointer; overflow: hidden;
    transition: border-color var(--transition);
}
.phero__thumb img { width: 100%; height: 100%; object-fit: cover; }
.phero__thumb.is-active { border-color: var(--ink); }

.breadcrumb--dark { color: var(--muted); margin-bottom: 18px; }
.breadcrumb--dark a { color: var(--muted); }
.breadcrumb--dark a:hover { color: var(--ink); }
.breadcrumb--dark .breadcrumb__current { color: var(--ink); }

.phero__title {
    font-size: clamp(1.8rem, 3.4vw, 2.6rem);
    font-weight: 500; letter-spacing: -.025em; line-height: 1.12;
    margin-bottom: 16px;
}
.phero__lead { font-size: 1.1rem; color: var(--muted); line-height: 1.65; margin-bottom: 30px; }
.phero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Specs */
.pspecs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pspec { display: flex; align-items: flex-start; gap: 14px; padding: 22px; border: 1px solid var(--line); background: var(--paper); }
.pspec__icon {
    flex-shrink: 0; width: 42px; height: 42px;
    display: grid; place-items: center; color: var(--ink);
    border: 1px solid var(--line); border-radius: 50%;
}
.pspec__icon svg { width: 22px; height: 22px; }
.pspec__label { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 4px; }
.pspec__value { display: block; font-size: .98rem; font-weight: 600; color: var(--ink); line-height: 1.35; }

/* Descripción larga */
.pdesc { max-width: 760px; }
.pdesc .eyebrow { margin-bottom: 16px; }
.pdesc p { font-size: 1.05rem; line-height: 1.85; color: var(--ink-2); }

/* Contenido del kit */
.pincluye {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 16px 36px; max-width: 820px;
}
.pincluye li { display: flex; align-items: flex-start; gap: 13px; font-size: .98rem; color: var(--ink-2); line-height: 1.5; }
.pincluye svg { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }

/* Relacionados */
.prel-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.prel { display: flex; flex-direction: column; color: var(--ink); }
.prel__media { aspect-ratio: 1 / 1; overflow: hidden; background: var(--paper-3); margin-bottom: 16px; }
.prel__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.22,.61,.36,1); }
.prel:hover .prel__media img { transform: scale(1.05); }
.prel__media--placeholder { display: grid; place-items: center; text-align: center; padding: 20px; }
.prel__media--placeholder span { font-size: .92rem; font-weight: 500; color: var(--muted); }
.prel__name { font-size: 1.02rem; font-weight: 500; letter-spacing: -.01em; margin-bottom: 8px; }
.prel__link { font-size: .85rem; font-weight: 600; color: var(--blue); transition: color var(--transition); margin-top: auto; }
.prel:hover .prel__link { color: var(--accent); }

@media (max-width: 1024px) {
    .phero__inner { grid-template-columns: 1fr; gap: 36px; }
    .phero__media { max-width: 520px; }
    .pspecs-grid { grid-template-columns: repeat(2, 1fr); }
    .prel-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .phero { padding: calc(var(--header-h) + 32px) 0 48px; }
    .pspecs-grid { grid-template-columns: 1fr; }
    .pincluye { grid-template-columns: 1fr; }
    .prel-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}

/* Producto: descripción a la derecha (en el hero) */
.phero__desc { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 22px; }
.phero__desc p { color: var(--ink-2); line-height: 1.85; font-size: 1.02rem; }

/* Producto: características reales */
.pchars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px 40px; max-width: 940px; }
.pchars li { display: flex; align-items: flex-start; gap: 13px; font-size: .98rem; color: var(--ink-2); line-height: 1.5; }
.pchars svg { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }

/* Producto: tabla comparativa de la gama */
.ptable-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ptable { width: 100%; border-collapse: collapse; min-width: 620px; font-size: .92rem; }
.ptable th, .ptable td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.ptable thead th { font-weight: 600; color: var(--ink); border-bottom: 2px solid var(--ink); letter-spacing: -.01em; }
.ptable tbody th { font-weight: 500; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.ptable td { color: var(--ink-2); }
.ptable .is-current { background: var(--paper-2); }
.ptable thead th.is-current { color: var(--accent); border-bottom-color: var(--accent); }

@media (max-width: 768px) {
    .pchars { grid-template-columns: 1fr; }
}
