/* ================================================================
   AMDOR Aberturas — Estilos (fiel al diseño Pencil)
   ================================================================ */

/* ── Variables ──────────────────────────────────────────────── */
:root {
    --dark:        #0B1220;
    --dark-2:      #0f1a2e;
    --dark-card:   #141f35;
    --dark-border: #1e2f4a;
    --white:       #ffffff;
    --light:       #f8f9fb;
    --blue:        #1A60D6;
    --blue-hover:  #1450b8;
    --blue-light:  #3B82F6;
    --text-dark:   #0d1a2e;
    --text-mid:    #4a5568;
    --text-muted:  #718096;
    --text-light:  #e2e8f0;
    --text-dim:    #8fa3bf;

    --font: 'Inter', system-ui, -apple-system, sans-serif;
    --r-sm: 6px;
    --r-md: 10px;
    --r-lg: 16px;
    --shadow: 0 2px 16px rgba(0,0,0,.12);
    --shadow-lg: 0 8px 40px rgba(0,0,0,.18);
    --t: .22s ease;
    --max-w: 1280px;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
    scroll-behavior: smooth;
    overflow-x: hidden;     /* evita zoom-out por desborde horizontal */
    max-width: 100%;
}
body {
    font-family: var(--font); color: var(--text-dark);
    line-height: 1.65; -webkit-font-smoothing: antialiased;
    background: var(--white);
    overflow-x: hidden;
    max-width: 100%;
    overflow-wrap: break-word;   /* palabras largas no rompen el layout */
    word-break: break-word;
}
img, iframe, video, embed, object {
    display: block; max-width: 100%;
    /* NO aplicar height:auto globalmente — sobreescribiría atributos HTML */
}
iframe { width: 100%; }
a    { text-decoration: none; color: inherit; }
ul   { list-style: none; }

/* Evita que ninguna sección fuerce ancho mayor al viewport */
section, header, footer, .container, .navbar__inner {
    max-width: 100%;
}

/* ── Layout helpers ─────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 80px; }
.section   { padding: 96px 0; }
.section--light { background: var(--white); }
.section--dark  { background: var(--dark); }

/* ── Section headers ────────────────────────────────────────── */
.section__header { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section__header--left { text-align: left; margin-left: 0; }

.section__eyebrow {
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 12px;
    display: block;
}
.section__eyebrow--light { color: var(--blue-light); }

.section__title {
    font-size: clamp(1.75rem, 3vw, 2.4rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--text-dark);
    margin-bottom: 14px;
    letter-spacing: -.02em;
}
.section__title--light { color: var(--white); }

.section__subtitle {
    font-size: 1rem;
    color: var(--text-mid);
    line-height: 1.7;
}
.section__subtitle--light { color: var(--text-dim); }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font); font-weight: 600; line-height: 1;
    border-radius: var(--r-sm); cursor: pointer;
    border: 2px solid transparent;
    transition: background var(--t), border-color var(--t), transform var(--t), box-shadow var(--t);
    white-space: nowrap;
}
.btn--sm  { padding: 10px 20px; font-size: .85rem; }
.btn--md  { padding: 13px 26px; font-size: .95rem; }
.btn--lg  { padding: 16px 32px; font-size: 1rem; }

.btn--primary {
    background: var(--blue); color: var(--white); border-color: var(--blue);
}
.btn--primary:hover {
    background: var(--blue-hover); border-color: var(--blue-hover);
    transform: translateY(-2px); box-shadow: 0 6px 20px rgba(26,96,214,.3);
}
.btn--outline {
    background: transparent; color: var(--white); border-color: rgba(255,255,255,.5);
}
.btn--outline:hover { border-color: var(--white); background: rgba(255,255,255,.1); }

.btn--white {
    background: var(--white); color: var(--blue); border-color: var(--white);
}
.btn--white:hover { background: #f0f0f0; transform: translateY(-2px); }

/* ════════════════════════════════════════════════════════
   PARTE 1 — Navbar + Hero + ¿En qué trabajamos?
════════════════════════════════════════════════════════ */

/* ── NAVBAR ─────────────────────────────────────────────────── */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    height: 80px;
    background: var(--dark);
    transition: box-shadow var(--t);
}
.navbar.scrolled { box-shadow: 0 2px 24px rgba(0,0,0,.5); }

.navbar__inner {
    max-width: var(--max-w); margin: 0 auto; padding: 0 80px;
    height: 100%; display: flex; align-items: center; gap: 0;
}

.navbar__logo {
    display: flex; align-items: center; gap: 10px; flex-shrink: 0;
}
.navbar__logo img { height: 44px; width: auto; flex-shrink: 0; }
/* Logo navbar — igual al Pencil: AMDOR grande blanco + ABERTURAS pequeño azul */
.navbar__logo-name {
    font-size: 1.25rem; font-weight: 700; color: var(--white);
    letter-spacing: -.03em; line-height: 1; white-space: nowrap;
}
.navbar__logo-sub {
    font-size: .69rem; font-weight: 600; color: var(--blue);
    letter-spacing: .12em; font-family: 'Courier New', monospace;
    white-space: nowrap; line-height: 1;
}
/* Compatibilidad con breakpoint que ocultaba .navbar__brand */
.navbar__brand { display: none; }

.navbar__nav {
    display: flex; align-items: center;
    gap: 32px; margin: 0 auto;
}
.navbar__nav a {
    font-size: .85rem; font-weight: 500;
    color: rgba(255,255,255,.75);
    transition: color var(--t);
    white-space: nowrap;
}
.navbar__nav a:hover { color: var(--white); }

.navbar__btn { flex-shrink: 0; }

.navbar__hamburger {
    display: none; flex-direction: column; justify-content: center;
    gap: 5px; background: none; border: none; cursor: pointer;
    padding: 6px; margin-left: auto;
}
.navbar__hamburger span {
    display: block; width: 22px; height: 2px; background: var(--white);
    border-radius: 2px; transition: all .25s;
}

/* ── HERO ───────────────────────────────────────────────────── */
.hero {
    display: grid; grid-template-columns: 47% 53%;
    min-height: 680px; margin-top: 80px;
}

.hero__left {
    background: var(--dark);
    display: flex; flex-direction: column; justify-content: center;
    padding: 80px 72px;
}

.hero__eyebrow {
    font-size: .72rem; font-weight: 700;
    letter-spacing: .12em; text-transform: uppercase;
    color: var(--blue-light); margin-bottom: 20px;
}

.hero__title {
    font-size: clamp(2rem, 3.2vw, 3rem);
    font-weight: 800; line-height: 1.1;
    color: var(--white); letter-spacing: -.025em;
    margin-bottom: 20px;
}

.hero__desc {
    font-size: 1rem; line-height: 1.75;
    color: rgba(255,255,255,.65);
    margin-bottom: 36px; max-width: 460px;
}

.hero__btns { display: flex; gap: 14px; flex-wrap: wrap; }

.hero__right { overflow: hidden; }
.hero__right img {
    width: 100%; height: 100%; object-fit: cover;
    display: block;
}

/* ── ¿EN QUÉ TRABAJAMOS? ────────────────────────────────────── */
.services-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}

.service-card__img {
    position: relative; height: 460px; overflow: hidden;
    border-radius: var(--r-md);
}
.service-card__img img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .5s ease;
}
.service-card:hover .service-card__img img { transform: scale(1.04); }

.service-card__overlay {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 28px 28px 28px;
    background: linear-gradient(transparent 0%, rgba(11,18,32,.9) 50%, rgba(11,18,32,.97) 100%);
    display: flex; gap: 16px; align-items: flex-end;
}
.service-card__num {
    font-size: 2rem; font-weight: 800; color: var(--blue-light);
    line-height: 1; flex-shrink: 0;
}
.service-card__overlay h3 {
    font-size: 1.2rem; font-weight: 700; color: var(--white);
    margin-bottom: 6px;
}
.service-card__overlay p {
    font-size: .85rem; color: rgba(255,255,255,.7); line-height: 1.55;
}

/* ════════════════════════════════════════════════════════
   PARTE 2 — Líneas FEXA + ¿Por qué elegirnos?
════════════════════════════════════════════════════════ */

/* ── FEXA BADGE ─────────────────────────────────────────────── */
.fexa-badge {
    display: inline-flex; align-items: center; gap: 12px;
    margin-top: 20px; padding: 10px 18px;
    background: var(--light); border: 1px solid #dde3ec;
    border-radius: var(--r-sm);
    font-size: .82rem; font-weight: 600; color: var(--text-mid);
}
.fexa-badge img { max-height: 28px; width: auto; }

/* ── LÍNEAS GRID ────────────────────────────────────────────── */
.lineas-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 8px;
}

.linea-card {
    border: 1px solid #e2e8f0; border-radius: var(--r-md);
    overflow: hidden; background: var(--white);
    transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.linea-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: #b8cde8;
}
.linea-card__img {
    aspect-ratio: 4/3; overflow: hidden; background: var(--light);
}
.linea-card__img img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .4s ease;
}
.linea-card:hover .linea-card__img img { transform: scale(1.06); }

.linea-card__body { padding: 18px 16px; }
.linea-card__tag {
    font-size: .68rem; font-weight: 700; letter-spacing: .1em;
    color: var(--blue); text-transform: uppercase; display: block;
    margin-bottom: 6px;
}
.linea-card__nombre {
    font-size: .95rem; font-weight: 700; color: var(--text-dark);
    margin-bottom: 8px;
}
.linea-card__desc {
    font-size: .8rem; color: var(--text-muted); line-height: 1.6;
}

/* ── POR QUÉ ELEGIRNOS ──────────────────────────────────────── */
.razones-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}

.razon-card {
    padding: 28px 24px; border-radius: var(--r-md);
    border: 1px solid var(--dark-border);
    background: var(--dark-card);
    transition: border-color var(--t), transform var(--t);
}
.razon-card:hover {
    border-color: rgba(59,130,246,.35);
    transform: translateY(-3px);
}

.razon-card__icon {
    width: 42px; height: 42px; margin-bottom: 16px;
    color: var(--blue-light);
}
.razon-card__icon svg { width: 100%; height: 100%; }

.razon-card__titulo {
    font-size: .95rem; font-weight: 700;
    color: var(--white); margin-bottom: 10px;
}
.razon-card__desc {
    font-size: .83rem; color: var(--text-dim); line-height: 1.65;
}

/* ════════════════════════════════════════════════════════
   PARTE 3 — Sistemas Seco + Galería + Proceso
════════════════════════════════════════════════════════ */

/* ── SISTEMAS CONSTRUCTIVOS ─────────────────────────────────── */
.seco-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}

.seco-card {
    border: 1px solid #e2e8f0; border-radius: var(--r-md); overflow: hidden;
    background: var(--white);
    transition: transform var(--t), box-shadow var(--t);
}
.seco-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.seco-card__img { aspect-ratio: 4/3; overflow: hidden; background: var(--light); }
.seco-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.seco-card:hover .seco-card__img img { transform: scale(1.05); }

.seco-card__body { padding: 20px 20px 24px; }
.seco-card__num {
    font-size: .72rem; font-weight: 700; color: var(--blue);
    letter-spacing: .1em; display: block; margin-bottom: 8px;
}
.seco-card__nombre {
    font-size: 1rem; font-weight: 700; color: var(--text-dark);
    margin-bottom: 10px;
}
.seco-card__desc { font-size: .85rem; color: var(--text-muted); line-height: 1.65; }

/* ── GALERÍA / SLIDER ───────────────────────────────────────── */
.slider-wrap {
    position: relative; overflow: hidden;
    padding: 0 80px;
}

.slider {
    display: flex; gap: 20px;
    overflow: hidden;
    transition: transform .4s cubic-bezier(.25,.46,.45,.94);
}

.slide {
    flex: 0 0 calc((100% - 40px) / 3);
    aspect-ratio: 4/3; overflow: hidden;
    border-radius: var(--r-md); background: var(--light);
    cursor: pointer;
}
.slide img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .4s;
    pointer-events: none;
}
.slide:hover img { transform: scale(1.05); }

.slider-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    z-index: 10; background: var(--white); border: 1px solid #dde3ec;
    width: 44px; height: 44px; border-radius: 50%;
    font-size: 1.4rem; line-height: 1; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background var(--t), border-color var(--t);
    color: var(--text-dark);
    box-shadow: var(--shadow);
}
.slider-btn:hover { background: var(--blue); color: var(--white); border-color: var(--blue); }
.slider-btn--prev { left: 20px; }
.slider-btn--next { right: 20px; }

.slider-dots {
    display: flex; justify-content: center; gap: 8px;
    margin-top: 24px;
}
.slider-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #cdd5e0; cursor: pointer; border: none;
    transition: background var(--t), width var(--t);
}
.slider-dot.active { background: var(--blue); width: 20px; border-radius: 4px; }

.slider-counter {
    text-align: center; margin-top: 8px;
    font-size: .8rem; color: var(--text-muted);
}

/* ── PROCESO DE TRABAJO ─────────────────────────────────────── */
.pasos-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.paso-card {
    padding: 28px 24px; border-radius: var(--r-md);
    border: 1px solid #e2e8f0; background: var(--white);
    transition: border-color var(--t), box-shadow var(--t);
}
.paso-card:hover { border-color: #b8cde8; box-shadow: var(--shadow); }

.paso-card__num {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--blue); color: var(--white);
    font-size: .9rem; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 16px; flex-shrink: 0;
}
.paso-card__titulo {
    font-size: .95rem; font-weight: 700;
    color: var(--text-dark); margin-bottom: 10px;
}
.paso-card__desc { font-size: .83rem; color: var(--text-muted); line-height: 1.65; }

/* ════════════════════════════════════════════════════════
   PARTE 4 — Quiénes Somos + Garantía + Contacto + Footer
════════════════════════════════════════════════════════ */

/* ── QUIÉNES SOMOS ──────────────────────────────────────────── */
.quienes__eyebrow {
    display: flex; align-items: center; justify-content: center;
    gap: 16px; text-align: center;
    font-size: .75rem; font-weight: 700; letter-spacing: .12em;
    text-transform: uppercase; color: var(--blue);
    margin-bottom: 12px;
}
.quienes__eyebrow-line {
    flex: 1; max-width: 80px;
    height: 1px; background: currentColor; opacity: .35;
    display: block;
}

.quienes__title {
    font-size: clamp(1.75rem, 3vw, 2.4rem); font-weight: 800;
    line-height: 1.15; color: var(--text-dark);
    letter-spacing: -.02em; text-align: center;
    margin-bottom: 48px;
}

.quienes-wrap {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 80px; align-items: center;
}
.quienes__texto p {
    color: var(--text-mid); line-height: 1.8; font-size: .95rem;
    margin-bottom: 16px;
}
/* Una sola imagen — igual al Pencil */
.quienes__foto {
    flex-shrink: 0; width: 460px;
}
.quienes__foto img {
    width: 100%; height: 400px; object-fit: cover;
    border-radius: 12px;
}

.quienes__banner {
    margin-top: 48px;
    background: var(--dark);
    padding: 20px 80px;
    text-align: center;
    font-size: .85rem; font-weight: 600;
    color: rgba(255,255,255,.55);
    letter-spacing: .1em;
    text-transform: uppercase;
}

/* ── GARANTÍA ───────────────────────────────────────────────── */
.garantia-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
    margin-bottom: 20px;
}

.garantia-card {
    border-radius: var(--r-md); padding: 28px 28px 32px;
    border: 1px solid var(--dark-border);
}
.garantia-card--cubre   { background: rgba(26,96,214,.08); border-color: rgba(26,96,214,.25); }
.garantia-card--no-cubre { background: var(--dark-card); }

.garantia-card__header {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 16px;
}
.garantia-card--cubre   .garantia-card__header { color: var(--blue-light); }
.garantia-card--no-cubre .garantia-card__header { color: #f59e0b; }

.garantia-card h3 { font-size: 1rem; font-weight: 700; color: var(--white); }

.garantia-card > p {
    font-size: .85rem; color: var(--text-dim); line-height: 1.7;
    margin-bottom: 16px;
}
.garantia-card ul { display: flex; flex-direction: column; gap: 8px; }
.garantia-card ul li {
    font-size: .83rem; color: var(--text-dim);
    padding-left: 16px; position: relative;
}
.garantia-card ul li::before {
    content: '·'; position: absolute; left: 0;
    color: #f59e0b; font-size: 1.2rem; line-height: 1;
}

.garantia-card__sub { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--dark-border); }
.garantia-card__sub strong { font-size: .88rem; color: var(--blue-light); display: block; margin-bottom: 8px; }
.garantia-card__sub p { font-size: .82rem; color: var(--text-dim); line-height: 1.65; }

.garantia-footer {
    display: flex; gap: 14px; align-items: flex-start;
    padding: 20px 24px; border-radius: var(--r-md);
    background: var(--dark-card); border: 1px solid var(--dark-border);
    color: var(--blue-light);
}
.garantia-footer p { font-size: .85rem; color: var(--text-dim); line-height: 1.65; }
.garantia-footer strong { color: var(--text-light); }

/* ── CONTACTO ───────────────────────────────────────────────── */
.contacto-grid {
    display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 48px;
}
.contacto-col h4 {
    font-size: .88rem; font-weight: 700; color: var(--white);
    text-transform: uppercase; letter-spacing: .08em;
    margin-bottom: 20px; padding-bottom: 12px;
    border-bottom: 1px solid var(--dark-border);
}

.contacto-mapa {
    border-radius: var(--r-md); overflow: hidden;
    background: var(--dark-card); height: 200px;
}
.contacto-mapa iframe { width: 100%; height: 100%; display: block; }
.contacto-mapa img    { width: 100%; height: 100%; object-fit: cover; }

.contacto-info {
    display: flex; flex-direction: column; gap: 14px;
}
.contacto-info li {
    display: flex; gap: 10px; align-items: flex-start;
    font-size: .85rem; color: var(--text-dim); line-height: 1.5;
}
.contacto-info li svg { flex-shrink: 0; color: var(--blue-light); margin-top: 2px; }

.contacto-qr {
    margin-top: 20px; padding-top: 16px;
    border-top: 1px solid var(--dark-border);
}
/* Tarjeta oscura del QR — igual al Pencil */
.contacto-qr__card {
    background: #1E3A4F;
    border-radius: var(--r-md);
    padding: 20px 18px;
    display: flex; flex-direction: column; align-items: center;
    gap: 14px; text-align: center;
}
.contacto-qr__title {
    display: flex; align-items: center; gap: 8px;
    font-size: .875rem; font-weight: 700; color: var(--white);
    margin: 0;
}
.contacto-qr__img-wrap {
    display: block; line-height: 0;
    background: var(--white);      /* fondo blanco mientras carga */
    border-radius: 6px; overflow: hidden;
    min-width: 140px; min-height: 140px;
}
.contacto-qr__img-wrap img { width: 140px; height: 140px; display: block; border-radius: 4px; }
.contacto-qr__hint {
    font-size: .75rem; color: #94A3B8; line-height: 1.4;
}

.horarios { width: 100%; border-collapse: collapse; }
.horarios td {
    padding: 10px 0; font-size: .85rem;
    border-bottom: 1px solid var(--dark-border);
    color: var(--text-dim); vertical-align: top;
}
.horarios td:first-child { color: var(--text-light); width: 55%; }
.horarios td span {
    display: block; color: var(--blue-light);
    font-weight: 600; font-size: .82rem;
}
.horarios td .cerrado { color: #ef4444; }

.contacto-social {
    display: flex; align-items: center; justify-content: center; gap: 16px;
    margin-top: 48px; padding-top: 28px;
    border-top: 1px solid var(--dark-border);
    font-size: .85rem; color: var(--text-dim);
}
.contacto-social__links {
    display: flex; align-items: center; gap: 12px;
}
.social-link {
    display: flex; align-items: center; gap: 8px;
    font-size: .85rem; font-weight: 600;
    color: var(--white); transition: opacity var(--t), transform var(--t);
    padding: 8px 16px;
    border-radius: var(--r-sm);
}
.social-link:hover { opacity: .85; transform: translateY(-1px); }
.social-link--ig {
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border: none;
}
.social-link--fb {
    background: #1877F2;
    border: none;
}

/* ── CTA BANNER ─────────────────────────────────────────────── */
.cta-banner { background: var(--blue); padding: 40px 0; }
.cta-banner__inner {
    max-width: var(--max-w); margin: 0 auto; padding: 0 80px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 32px; flex-wrap: wrap;
}
.cta-banner h2 { font-size: 1.4rem; font-weight: 800; color: var(--white); margin-bottom: 4px; }
.cta-banner p  { font-size: .9rem; color: rgba(255,255,255,.8); }

/* ── FOOTER ─────────────────────────────────────────────────── */
.footer { background: var(--dark); }

.footer__main {
    display: grid; grid-template-columns: 2fr 1fr 1fr;
    gap: 48px; padding-top: 52px; padding-bottom: 52px;
    border-bottom: 1px solid var(--dark-border);
}

.footer__logo {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 14px;
}
.footer__logo img { height: 36px; width: auto; flex-shrink: 0; }
.footer__logo-text {
    font-size: 1rem; font-weight: 700; color: #F4F4F5;
    letter-spacing: -.02em;
}

.footer__brand p { font-size: .85rem; color: var(--text-dim); line-height: 1.65; }

.footer__col h4 {
    font-size: .75rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .1em; color: var(--text-dim); margin-bottom: 16px;
}
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__col a, .footer__col span {
    font-size: .85rem; color: var(--text-dim);
    transition: color var(--t);
}
.footer__col a:hover { color: var(--white); }

.footer__social { display: flex; gap: 10px; margin-top: 4px; }
.footer__social a {
    display: flex; align-items: center; justify-content: center;
    width: 34px; height: 34px;
    border-radius: 50%; background: var(--dark-card);
    border: 1px solid var(--dark-border);
    color: var(--text-dim); transition: all var(--t);
}
.footer__social a:hover { opacity: .85; transform: translateY(-1px); }
.footer__social-ig {
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%) !important;
    border-color: transparent !important;
    color: var(--white) !important;
}
.footer__social-fb {
    background: #1877F2 !important;
    border-color: transparent !important;
    color: var(--white) !important;
}

.footer__bottom {
    padding: 18px 0;
}
.footer__bottom-inner {
    display: flex; align-items: center; justify-content: space-between;
    font-size: .78rem; color: var(--text-dim);
}
.footer__fexa {
    display: flex; align-items: center; gap: 8px;
}
.footer__fexa img { filter: brightness(.6); max-height: 18px; width: auto; }

.footer__dev { font-size: .78rem; color: var(--text-dim); }
.footer__dev a {
    color: var(--blue-light); font-weight: 600;
    transition: color var(--t);
}
.footer__dev a:hover { color: var(--white); }

/* ── WHATSAPP FLOAT — pill verde ────────────────────────────── */
.wa-float {
    position: fixed; bottom: 28px; right: 28px; z-index: 900;
    display: flex; align-items: center; gap: 10px;
    background: #25D366; color: var(--white);
    padding: 14px 22px;
    border-radius: 100px;
    font-size: .92rem; font-weight: 700;
    box-shadow: 0 4px 24px rgba(37,211,102,.45);
    transition: transform var(--t), box-shadow var(--t);
    animation: waPulse 2.5s ease-in-out infinite;
    text-decoration: none;
}
.wa-float:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 32px rgba(37,211,102,.6);
    animation: none;
}
.wa-float svg { flex-shrink: 0; }

@keyframes waPulse {
    0%,100% { box-shadow: 0 4px 24px rgba(37,211,102,.45); }
    50%      { box-shadow: 0 4px 36px rgba(37,211,102,.7); }
}

/* ── SWIPER / GALERÍA ───────────────────────────────────────── */
.gallery-section { padding-bottom: 96px; }
.gallery-section .container { margin-bottom: 40px; }

/* Wrapper que evita el scroll horizontal con overflow:visible del Swiper */
.gallery-swiper-outer {
    overflow: hidden;
    width: 100%;
}

.gallery-swiper {
    padding: 0 80px 48px !important;
    overflow: visible !important;
}

.gallery-slide {
    border-radius: var(--r-md);
    overflow: hidden;
    aspect-ratio: 4/3;
    background: var(--light);
}
.gallery-slide img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .4s ease;
}
.gallery-slide:hover img { transform: scale(1.04); }

/* Botones Swiper personalizados */
.gallery-btn {
    width: 44px !important; height: 44px !important;
    background: var(--white) !important;
    border: 1px solid #dde3ec !important;
    border-radius: 50% !important;
    box-shadow: var(--shadow) !important;
    color: var(--text-dark) !important;
    top: calc(50% - 24px) !important;
    transition: background var(--t), border-color var(--t) !important;
}
.gallery-btn::after {
    font-size: .9rem !important;
    font-weight: 800 !important;
    color: var(--text-dark) !important;
}
.gallery-btn:hover {
    background: var(--blue) !important;
    border-color: var(--blue) !important;
}
.gallery-btn:hover::after { color: var(--white) !important; }

/* Paginación dots */
.gallery-pagination { bottom: 16px !important; }
.gallery-pagination .swiper-pagination-bullet {
    width: 8px; height: 8px;
    background: #cdd5e0; opacity: 1;
    transition: width var(--t), background var(--t);
}
.gallery-pagination .swiper-pagination-bullet-active {
    width: 20px; border-radius: 4px;
    background: var(--blue);
}

/* Contador */
.gallery-counter {
    position: absolute;
    bottom: 20px; right: 88px;
    font-size: .78rem; font-weight: 600;
    color: var(--text-muted);
    z-index: 10;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */

/* ── Tablet grande ──────────────────────────────────────────── */
@media (max-width: 1100px) {
    .container { padding: 0 40px; }
    .navbar__inner { padding: 0 40px; }
    .lineas-grid { grid-template-columns: repeat(2, 1fr); }
    .footer__main { grid-template-columns: 1fr 1fr; }
    .cta-banner__inner { padding: 0 40px; }
    .quienes__banner { padding: 20px 40px; }
    .slider-wrap { padding: 0 40px; }
}

/* ── Tablet / landscape ─────────────────────────────────────── */
@media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; min-height: auto; }
    .hero__right { height: 300px; }
    .hero__left  { padding: 60px 40px; }
    .services-grid  { grid-template-columns: 1fr; }
    .razones-grid   { grid-template-columns: repeat(2, 1fr); }
    .contacto-grid  { grid-template-columns: 1fr; gap: 32px; }
    .quienes-wrap   { grid-template-columns: 1fr; gap: 40px; }
    .quienes__foto { width: 360px; }
    .quienes__foto img { height: 340px; }
    .garantia-grid  { grid-template-columns: 1fr; }
    .pasos-grid     { grid-template-columns: repeat(2, 1fr); }
    .slide { flex: 0 0 calc((100% - 20px) / 2); }
    .gallery-swiper { padding: 0 40px 48px !important; }
}

/* ── Mobile ─────────────────────────────────────────────────── */
@media (max-width: 768px) {
    /* Espaciado general — más compacto que desktop */
    .section        { padding: 44px 0; }
    .container      { padding: 0 20px; }
    .section__header { margin-bottom: 28px; }
    .section__title  { font-size: clamp(1.4rem, 5.5vw, 1.9rem); }
    .section__subtitle { font-size: .9rem; }

    /* Navbar */
    .navbar         { height: 60px; }
    .navbar__inner  { padding: 0 16px; overflow: hidden; }
    .navbar__logo   { flex-shrink: 1; min-width: 0; }
    .navbar__logo-name, .navbar__logo-sub { display: none; }
    .navbar__logo img { height: 32px; width: auto; max-width: 100px; object-fit: contain; }
    .navbar__hamburger { display: flex; flex-shrink: 0; margin-left: auto; }
    .navbar__btn    { display: none; }
    .navbar__nav {
        display: none; flex-direction: column;
        position: absolute; top: 60px; left: 0; right: 0;
        background: var(--dark); padding: 16px;
        gap: 16px; border-top: 1px solid var(--dark-border);
        z-index: 999;
    }
    .navbar__nav.open { display: flex; }
    .navbar__nav a { font-size: .95rem; padding: 6px 0; border-bottom: 1px solid var(--dark-border); }
    .navbar__nav a:last-child { border-bottom: none; }

    /* Hero */
    .hero        { margin-top: 60px; }
    .hero__left  { padding: 36px 20px 28px; }
    .hero__right { height: 200px; }
    .hero__title { font-size: clamp(1.6rem, 6vw, 2.2rem); }
    .hero__desc  { font-size: .9rem; margin-bottom: 24px; }
    .hero__btns  { flex-direction: column; gap: 10px; }
    .hero__btns .btn { width: 100%; justify-content: center; }

    /* Grids tablet — equilibrio entre compacto y legible */
    .services-grid  { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .lineas-grid    { grid-template-columns: repeat(3, 1fr); gap: 12px; }
    .seco-grid      { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .razones-grid   { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .pasos-grid     { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .garantia-grid  { grid-template-columns: repeat(2, 1fr); gap: 12px; }

    /* Service cards — 2 col en tablet, imagen menos alta */
    .service-card__img { height: 180px; }

    /* Seco cards — 2 col en tablet, aspecto compacto */
    .seco-card__img  { aspect-ratio: 4/3; }
    .seco-card__body { padding: 16px 14px; }

    /* Razón y paso cards — menos padding */
    .razon-card { padding: 18px 16px; gap: 8px; }
    .paso-card  { padding: 16px 16px; }

    /* Linea cards */
    .linea-card__body { padding: 14px 12px; }

    /* Gallery */
    .gallery-swiper { padding: 0 20px 40px !important; }
    .gallery-section { padding-bottom: 44px; }

    /* Quiénes somos — imagen más compacta en tablet */
    .quienes-wrap  { display: block; }
    .quienes__foto { width: 100%; }
    .quienes__foto img { height: 240px; }
    .quienes__texto { text-align: center; }
    .quienes__texto p { font-size: .9rem; }
    .quienes__btn   { width: 100%; justify-content: center; }
    .quienes__title { margin-bottom: 24px; }
    .quienes__banner { padding: 12px 20px; font-size: .75rem; letter-spacing: .06em; margin-top: 28px; }

    /* Contacto */
    .contacto-grid { grid-template-columns: 1fr; gap: 24px; }
    .contacto-social { flex-wrap: wrap; justify-content: center; gap: 12px; }
    .contacto-social__links { flex-wrap: wrap; justify-content: center; gap: 10px; }

    /* CTA Banner */
    .cta-banner__inner { flex-direction: column; text-align: center; padding: 0 20px; gap: 16px; }
    .cta-banner .btn   { width: 100%; justify-content: center; }

    /* Footer */
    .footer__main { grid-template-columns: 1fr; gap: 28px; padding-top: 32px; padding-bottom: 32px; }
    .footer__bottom-inner { flex-direction: column; gap: 8px; text-align: center; }

    /* WhatsApp float */
    .wa-float { padding: 12px 18px; font-size: .85rem; bottom: 20px; right: 16px; }
}

/* ── Mobile pequeño (≤ 480px) ───────────────────────────────── */
@media (max-width: 480px) {
    .section        { padding: 36px 0; }
    .container      { padding: 0 16px; }
    .section__header { margin-bottom: 22px; }

    /* Navbar */
    .navbar         { height: 56px; }
    .navbar__inner  { padding: 0 14px; }
    .navbar__logo img { height: 28px; max-width: 90px; }
    .navbar__nav    { top: 56px; }

    /* Hero */
    .hero        { margin-top: 56px; }
    .hero__left  { padding: 30px 16px 24px; }
    .hero__right { height: 170px; }
    .hero__desc  { margin-bottom: 20px; }

    /* Mobile grids */
    .services-grid  { grid-template-columns: 1fr; gap: 12px; }
    .lineas-grid    { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .seco-grid      { grid-template-columns: 1fr; gap: 12px; }
    .razones-grid   { grid-template-columns: 1fr; gap: 10px; }
    .pasos-grid     { grid-template-columns: 1fr; gap: 10px; }
    .garantia-grid  { grid-template-columns: 1fr; gap: 10px; }

    /* Linea cards: ratio más plano + ocultar descripción */
    .linea-card__img    { aspect-ratio: 5/3; }
    .linea-card__body   { padding: 10px 10px; }
    .linea-card__body p { display: none; }

    /* Cards compactos */
    .razon-card    { padding: 16px 14px; gap: 6px; }
    .paso-card     { padding: 14px 14px; }
    .garantia-card { padding: 18px 14px 20px; }
    .service-card__img { height: 200px; }
    .seco-card__img    { aspect-ratio: 16/9; }

    /* Quiénes: ocultar foto en mobile */
    .quienes__foto { display: none; }
    .quienes__banner { margin-top: 20px; }

    /* Galería */
    .gallery-swiper { padding: 0 14px 36px !important; }

    /* Contacto */
    .contacto-grid { gap: 20px; }

    /* Footer */
    .footer__main  { gap: 24px; padding-top: 28px; padding-bottom: 28px; }
    .footer__social a { width: 30px; height: 30px; }
}

/* ── Mobile S (320–360px) ───────────────────────────────────── */
@media (max-width: 360px) {
    /* Casi todo a 1 columna — lineas se queda en 2 cols para no ser interminable */
    .seco-grid, .razones-grid, .pasos-grid,
    .garantia-grid, .services-grid { grid-template-columns: 1fr !important; gap: 10px !important; }
    .lineas-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 8px !important; }

    /* Linea card: ratio ultra-plano en pantallas muy chicas */
    .linea-card__img  { aspect-ratio: 16/9; }
    .linea-card__body { padding: 8px 8px; }

    /* Padding mínimo pero legible */
    .container     { padding: 0 14px; }
    .navbar__inner { padding: 0 12px; }

    /* Hero compacto */
    .hero__left  { padding: 32px 14px 28px; }
    .hero__right { height: 160px; }
    .hero__title { font-size: 1.5rem; }
    .hero__eyebrow { font-size: .65rem; }
    .hero__desc  { font-size: .85rem; }

    /* Secciones muy compactas */
    .section { padding: 32px 0; }
    .section__title  { font-size: 1.3rem; }
    .section__subtitle { font-size: .82rem; }
    .section__header { margin-bottom: 20px; }

    /* Cards */
    .linea-card__body  { padding: 12px 10px; }
    .seco-card__body   { padding: 14px 12px; }
    .razon-card        { padding: 14px 12px; }
    .paso-card         { padding: 14px 12px; }
    .garantia-card     { padding: 16px 12px; }
    .service-card__img { height: 160px; }

    /* Swiper */
    .gallery-swiper { padding: 0 12px 36px !important; }

    /* Quiénes */
    .quienes__title { font-size: 1.4rem; margin-bottom: 20px; }

    /* Contacto */
    .contacto-col h4 { font-size: .8rem; }
    .contacto-info li { font-size: .8rem; }
    .horarios td      { font-size: .8rem; }

    /* Footer */
    .footer__col a, .footer__col span { font-size: .8rem; }
    .footer__brand p { font-size: .8rem; }
    .footer__bottom-inner { font-size: .72rem; }

    /* Botón WhatsApp float más chico */
    .wa-float { padding: 10px 14px; font-size: .8rem; bottom: 16px; right: 12px; }
    .wa-float svg { width: 18px; height: 18px; }
}
