/* ============================================================
   Alpha Fighiera - Estilos del nuevo sitio
   Paleta industrial. Convive con skin.css (heredado).
   ============================================================ */

:root {
    --af-primary:       #003366;
    --af-primary-dark:  #002244;
    --af-primary-deep:  #001a33;
    --af-accent:        #cc0000;
    --af-accent-dark:   #a30000;
    --af-light:         #f5f7fa;
    --af-light-2:       #eef1f5;
    --af-steel:         #2a3340;
    --af-steel-dark:    #1a2230;
    --af-steel-deep:    #0f1620;
    --af-text:          #222;
    --af-text-muted:    #6b7280;
    --af-border:        #e3e7ee;

    --af-shadow-sm:  0 2px 6px rgba(15, 22, 32, .08);
    --af-shadow-md:  0 8px 24px rgba(15, 22, 32, .10);
    --af-shadow-lg:  0 18px 40px rgba(15, 22, 32, .16);
}

body {
    font-family: 'Roboto', system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    color: var(--af-text);
    margin: 0;
    background: #fff;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--af-border);
    box-shadow: 0 2px 4px rgba(0, 0, 0, .04);
    position: relative;
    z-index: 10;
}
.site-header .logo img {
    max-height: 60px;
    width: auto;
}
.site-header .logo .logo-img {
    height: 56px;
    max-height: 56px;
}
.site-header .main-nav .nav-link {
    color: var(--af-text);
    font-weight: 500;
    padding: 10px 16px;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
    transition: color .2s;
    position: relative;
}
.site-header .main-nav .nav-link::after {
    content: '';
    position: absolute;
    left: 16px; right: 16px;
    bottom: 4px;
    height: 2px;
    background: var(--af-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease;
}
.site-header .main-nav .nav-link:hover,
.site-header .main-nav .nav-link.active {
    color: var(--af-primary);
}
.site-header .main-nav .nav-link:hover::after,
.site-header .main-nav .nav-link.active::after {
    transform: scaleX(1);
}

/* ============================================================
   HERO SLIDER (fallback)
   ============================================================ */
.hero-slider .carousel-item img {
    width: 100%;
    max-height: 600px;
    object-fit: cover;
}
.hero-slider .carousel-caption {
    background: rgba(0, 0, 0, .45);
    border-radius: 6px;
    padding: 16px 22px;
}

/* ============================================================
   HERO VIDEO
   ============================================================ */
.hero-video {
    position: relative;
    width: 100%;
    height: 78vh;
    min-height: 480px;
    max-height: 760px;
    overflow: hidden;
    background: #000;
}
.hero-video__media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}
.hero-video__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(115deg, rgba(0, 26, 51, .65) 0%, rgba(0, 26, 51, .25) 55%, rgba(0, 0, 0, .15) 100%),
        linear-gradient(to bottom, rgba(0, 0, 0, .15) 0%, rgba(0, 0, 0, .55) 100%);
    z-index: 2;
}
.hero-video__content {
    position: relative;
    z-index: 3;
    color: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0 24px;
    max-width: 1280px;
    margin: 0 auto;
}
.hero-video__eyebrow {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #ffffff;
    background: rgba(204, 0, 0, .9);
    padding: 6px 14px;
    border-radius: 2px;
    margin-bottom: 18px;
    font-weight: 700;
}
.hero-video__title {
    font-size: clamp(2.2rem, 5.5vw, 4rem);
    font-weight: 700;
    margin: 0 0 14px;
    letter-spacing: -.5px;
    line-height: 1.05;
    text-shadow: 0 2px 16px rgba(0, 0, 0, .45);
}
.hero-video__subtitle {
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    margin: 0 0 28px;
    max-width: 620px;
    color: rgba(255, 255, 255, .94);
    line-height: 1.55;
    text-shadow: 0 1px 8px rgba(0, 0, 0, .35);
}
.hero-video__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.hero-video__scroll {
    position: absolute;
    z-index: 3;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    width: 22px;
    height: 36px;
    border: 2px solid rgba(255, 255, 255, .65);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 6px;
    pointer-events: none;
}
.hero-video__scroll span {
    width: 3px;
    height: 7px;
    background: #fff;
    border-radius: 3px;
    animation: af-scroll 1.6s ease-in-out infinite;
}
@keyframes af-scroll {
    0%   { transform: translateY(0);    opacity: 1; }
    70%  { transform: translateY(10px); opacity: 0; }
    100% { transform: translateY(0);    opacity: 0; }
}

@media (max-width: 767.98px) {
    .hero-video { height: 72vh; min-height: 420px; }
    .hero-video__scroll { display: none; }
}

/* ============================================================
   BOTONES (variantes Alpha) — industrial moderno
   - clip-path con corte diagonal en esquina
   - barra lateral roja de acento
   - shine sweep en hover
   - sombra coloreada (glow)
   ============================================================ */
.btn-af-primary,
.btn-af-outline,
.btn-af-light,
.btn-af-whatsapp {
    --af-btn-cut: 14px;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px 14px 32px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-size: 13px;
    line-height: 1;
    border: 0;
    border-radius: 0;
    cursor: pointer;
    text-decoration: none;
    overflow: hidden;
    isolation: isolate;
    clip-path: polygon(
        0 0,
        100% 0,
        100% calc(100% - var(--af-btn-cut)),
        calc(100% - var(--af-btn-cut)) 100%,
        0 100%
    );
    transition: transform .25s ease, box-shadow .25s ease, color .25s ease;
}
/* Capa de fondo principal (z=-2) */
.btn-af-primary::before,
.btn-af-outline::before,
.btn-af-light::before,
.btn-af-whatsapp::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -2;
    transition: opacity .3s ease, transform .3s ease;
}
/* Capa de hover (z=-1, se desliza desde la izquierda) */
.btn-af-primary::after,
.btn-af-outline::after,
.btn-af-light::after,
.btn-af-whatsapp::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    transform: translateX(-101%);
    transition: transform .35s cubic-bezier(.65, .05, .36, 1);
}
.btn-af-primary:hover::after,
.btn-af-primary:focus-visible::after,
.btn-af-outline:hover::after,
.btn-af-outline:focus-visible::after,
.btn-af-light:hover::after,
.btn-af-light:focus-visible::after,
.btn-af-whatsapp:hover::after,
.btn-af-whatsapp:focus-visible::after {
    transform: translateX(0);
}
.btn-af-primary:hover,
.btn-af-outline:hover,
.btn-af-light:hover,
.btn-af-whatsapp:hover {
    transform: translateY(-2px);
}

/* Tamaño grande (hero) */
.btn-af-primary.btn-lg,
.btn-af-outline.btn-lg,
.btn-af-light.btn-lg,
.btn-af-whatsapp.btn-lg {
    --af-btn-cut: 18px;
    padding: 18px 34px 18px 38px;
    font-size: 14px;
    letter-spacing: 2px;
}

/* Barra lateral roja de acento (primary, light, whatsapp) */
.btn-af-primary,
.btn-af-light,
.btn-af-whatsapp {
    box-shadow:
        inset 4px 0 0 0 var(--af-accent),
        0 10px 24px -6px rgba(0, 51, 102, .45);
}
.btn-af-primary:hover,
.btn-af-light:hover,
.btn-af-whatsapp:hover {
    box-shadow:
        inset 4px 0 0 0 #fff,
        0 14px 30px -6px rgba(204, 0, 0, .45);
}

/* ----- Variante PRIMARY (azul → rojo en hover) ----- */
.btn-af-primary { color: #fff; }
.btn-af-primary::before {
    background:
        linear-gradient(135deg, #0a4a8c 0%, var(--af-primary) 50%, var(--af-primary-dark) 100%);
}
.btn-af-primary::after {
    background:
        linear-gradient(135deg, #e60000 0%, var(--af-accent) 50%, var(--af-accent-dark) 100%);
}
.btn-af-primary:hover,
.btn-af-primary:focus { color: #fff; }

/* ----- Variante OUTLINE (transparente con glass blur, ideal sobre video) ----- */
.btn-af-outline {
    color: #fff;
    box-shadow:
        inset 0 0 0 1.5px rgba(255, 255, 255, .85),
        inset 4px 0 0 0 var(--af-accent),
        0 10px 24px -6px rgba(0, 0, 0, .4);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.btn-af-outline::before {
    background: rgba(255, 255, 255, .08);
}
.btn-af-outline::after {
    background: #fff;
}
.btn-af-outline:hover,
.btn-af-outline:focus {
    color: var(--af-primary);
    box-shadow:
        inset 0 0 0 1.5px #fff,
        inset 4px 0 0 0 var(--af-accent),
        0 14px 30px -6px rgba(255, 255, 255, .35);
}

/* ----- Variante LIGHT (CTA banner — fondo blanco) ----- */
.btn-af-light { color: var(--af-primary); }
.btn-af-light::before {
    background: linear-gradient(135deg, #ffffff 0%, #f0f3f8 100%);
}
.btn-af-light::after {
    background: linear-gradient(135deg, #e60000 0%, var(--af-accent) 50%, var(--af-accent-dark) 100%);
}
.btn-af-light:hover,
.btn-af-light:focus { color: #fff; }

/* ----- Variante WHATSAPP ----- */
.btn-af-whatsapp { color: #fff; }
.btn-af-whatsapp::before {
    background: linear-gradient(135deg, #2ee477 0%, #25d366 50%, #1ebe5a 100%);
}
.btn-af-whatsapp::after {
    background: linear-gradient(135deg, #1ebe5a 0%, #16a34a 100%);
}
.btn-af-whatsapp:hover,
.btn-af-whatsapp:focus { color: #fff; }

/* ============================================================
   Botón flecha (carousel nav)
   ============================================================ */
.btn-af-arrow {
    --af-arrow-cut: 8px;
    width: 46px;
    height: 46px;
    border: 0;
    background: #fff;
    color: var(--af-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: inset 0 0 0 1.5px var(--af-border), 0 4px 12px rgba(0, 51, 102, .12);
    clip-path: polygon(
        0 0,
        100% 0,
        100% calc(100% - var(--af-arrow-cut)),
        calc(100% - var(--af-arrow-cut)) 100%,
        0 100%
    );
    transition: background .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.btn-af-arrow + .btn-af-arrow { margin-left: 10px; }
.btn-af-arrow:hover {
    background: var(--af-primary);
    color: #fff;
    box-shadow:
        inset 0 0 0 1.5px var(--af-primary),
        inset 3px 0 0 0 var(--af-accent),
        0 8px 18px rgba(0, 51, 102, .35);
    transform: translateY(-1px);
}

/* ============================================================
   TIPOGRAFÍA DE SECCIONES
   ============================================================ */
.section-eyebrow {
    display: inline-block;
    color: var(--af-accent);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 10px;
    position: relative;
    padding-left: 22px;
}
.section-eyebrow::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 14px;
    height: 2px;
    background: var(--af-accent);
    transform: translateY(-50%);
}
.section-eyebrow--light { color: #fff; }
.section-eyebrow--light::before { background: #fff; }

.section-title {
    font-size: clamp(1.85rem, 3vw, 2.6rem);
    font-weight: 700;
    color: #111827;
    margin: 0 0 14px;
    line-height: 1.15;
    letter-spacing: -.4px;
}
.section-title--light { color: #fff; }

.section-divider {
    width: 56px;
    height: 4px;
    background: var(--af-accent);
    margin: 4px 0 18px;
    border-radius: 2px;
}
.section-divider--center {
    margin-left: auto;
    margin-right: auto;
}

.section-lead {
    font-size: 1.05rem;
    color: #4b5563;
    line-height: 1.75;
    margin: 0;
}
.section-lead-center {
    font-size: 1.05rem;
    color: #4b5563;
    line-height: 1.75;
    max-width: 760px;
    margin: 0 auto;
}
.section-lead-center--light { color: rgba(255, 255, 255, .82); }

/* ============================================================
   STATS STRIP
   ============================================================ */
.stats-strip {
    background:
        linear-gradient(135deg, var(--af-primary-dark) 0%, var(--af-primary-deep) 100%);
    padding: 0;
    color: #fff;
    position: relative;
    margin-top: -1px;
}
.stats-strip::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(
            -45deg,
            rgba(255, 255, 255, .03) 0,
            rgba(255, 255, 255, .03) 2px,
            transparent 2px,
            transparent 14px
        );
    pointer-events: none;
}
.stats-strip__row {
    position: relative;
}
.stats-strip__item {
    text-align: center;
    padding: 36px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-right: 1px solid rgba(255, 255, 255, .08);
    position: relative;
}
.stats-strip__item:last-child { border-right: 0; }
.stats-strip__item::after {
    content: '';
    position: absolute;
    bottom: 22%;
    top: 22%;
    right: -1px;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(204, 0, 0, .55), transparent);
}
.stats-strip__item:last-child::after { display: none; }

.stats-strip__value {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    color: #fff;
    letter-spacing: -.5px;
    line-height: 1;
    margin-bottom: 8px;
}
.stats-strip__label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, .7);
    font-weight: 500;
}

@media (max-width: 575.98px) {
    .stats-strip__item { padding: 26px 12px; }
    .stats-strip__item:nth-child(2)::after { display: none; }
    .stats-strip__item:nth-child(odd) {
        border-right: 1px solid rgba(255, 255, 255, .08);
    }
    .stats-strip__item:nth-child(even) { border-right: 0; }
    .stats-strip__row > .col-6:nth-child(-n+2) {
        border-bottom: 1px solid rgba(255, 255, 255, .08);
    }
}

/* ============================================================
   ABOUT SUMMARY
   ============================================================ */
.about-summary {
    padding: 110px 0;
    background:
        radial-gradient(ellipse 50% 50% at 0% 100%, rgba(0, 51, 102, .04) 0%, transparent 60%),
        radial-gradient(ellipse 40% 30% at 100% 0%, rgba(204, 0, 0, .04) 0%, transparent 60%),
        #fff;
    position: relative;
    overflow: hidden;
}

/* Watermark "EST. 1990" en el background */
.about-summary__bg-text {
    position: absolute;
    top: 50%;
    right: -2%;
    transform: translateY(-50%);
    font-size: clamp(7rem, 18vw, 16rem);
    font-weight: 900;
    color: rgba(0, 51, 102, .035);
    line-height: .85;
    letter-spacing: -8px;
    pointer-events: none;
    user-select: none;
    z-index: 0;
    white-space: nowrap;
    font-family: 'Roboto', sans-serif;
}
.about-summary > .container {
    position: relative;
    z-index: 1;
}

/* ---- Wrap de imagen + decoraciones ---- */
.about-summary__media-wrap {
    position: relative;
    padding: 28px 28px 0 0;
    isolation: isolate;
}

/* Frame rojo offset (atrás de la imagen) */
.about-summary__frame {
    position: absolute;
    top: 0;
    right: 0;
    width: calc(100% - 28px);
    height: calc(100% - 28px);
    border: 4px solid var(--af-accent);
    z-index: 0;
    pointer-events: none;
    transition: transform .5s cubic-bezier(.4, 0, .2, 1);
}
.about-summary__media-wrap:hover .about-summary__frame {
    transform: translate(6px, 6px);
}

/* Patrón de puntos decorativos (esquina inferior izquierda) */
.about-summary__dots {
    position: absolute;
    bottom: -28px;
    right: 60px;
    width: 100px;
    height: 60px;
    background-image: radial-gradient(circle, var(--af-primary) 1.5px, transparent 1.5px);
    background-size: 12px 12px;
    background-position: 0 0;
    opacity: .35;
    z-index: 0;
    pointer-events: none;
}

/* Imagen */
.about-summary__media {
    position: relative;
    z-index: 1;
    overflow: hidden;
    box-shadow:
        0 24px 60px -16px rgba(0, 0, 0, .35),
        0 0 0 1px rgba(0, 51, 102, .06);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 24px), calc(100% - 24px) 100%, 0 100%);
}
.about-summary__media img {
    width: 100%;
    height: 100%;
    max-height: 500px;
    object-fit: cover;
    display: block;
    transition: transform .9s cubic-bezier(.4, 0, .2, 1);
}
.about-summary__media-wrap:hover .about-summary__media img {
    transform: scale(1.06);
}

/* Sello "Industria Argentina" tipo stamp circular */
.about-summary__stamp {
    position: absolute;
    top: 12px;
    left: -18px;
    z-index: 4;
    width: 108px;
    height: 108px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 30%, #e60000 0%, var(--af-accent) 60%, var(--af-accent-dark) 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 3px solid #fff;
    box-shadow:
        0 12px 28px rgba(204, 0, 0, .4),
        inset 0 0 0 2px rgba(255, 255, 255, .2);
    text-align: center;
    transform: rotate(-14deg);
    text-transform: uppercase;
    transition: transform .4s ease;
}
.about-summary__stamp i {
    font-size: 22px;
    margin-bottom: 4px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .3));
}
.about-summary__stamp span {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
    line-height: 1.2;
}
.about-summary__media-wrap:hover .about-summary__stamp {
    transform: rotate(-8deg) scale(1.05);
}

/* Badge inferior (años de experiencia) */
.about-summary__badge {
    position: absolute;
    bottom: -24px;
    left: 24px;
    z-index: 3;
    background: linear-gradient(135deg, var(--af-primary) 0%, var(--af-primary-dark) 100%);
    color: #fff;
    padding: 20px 26px;
    border-left: 4px solid var(--af-accent);
    box-shadow:
        0 18px 40px rgba(0, 51, 102, .35),
        0 6px 12px rgba(0, 0, 0, .15);
    display: flex;
    flex-direction: column;
    line-height: 1;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 12px 100%);
    padding-left: 30px;
}
.about-summary__badge-num {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: -1px;
}
.about-summary__badge-text {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, .85);
}

/* ---- Lista de features ---- */
.about-summary__features {
    list-style: none;
    padding: 0;
    margin: 28px 0 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.about-summary__features li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
    background: var(--af-light);
    border-left: 3px solid var(--af-primary);
    transition: border-color .25s ease, transform .25s ease, background .25s ease;
}
.about-summary__features li:hover {
    border-left-color: var(--af-accent);
    background: #fff;
    transform: translateX(4px);
    box-shadow: 0 8px 24px -6px rgba(0, 51, 102, .15);
}
.about-summary__features-icon {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--af-primary) 0%, var(--af-primary-dark) 100%);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
    margin-top: 2px;
    box-shadow: 0 4px 10px rgba(0, 51, 102, .25);
    transition: background .25s ease, transform .25s ease;
}
.about-summary__features li:hover .about-summary__features-icon {
    background: linear-gradient(135deg, var(--af-accent) 0%, var(--af-accent-dark) 100%);
    transform: scale(1.1);
}
.about-summary__features strong {
    display: block;
    color: var(--af-primary);
    font-weight: 700;
    margin-bottom: 2px;
    font-size: .95rem;
}
.about-summary__features span {
    color: var(--af-text-muted);
    font-size: .88rem;
    line-height: 1.5;
}

@media (max-width: 991.98px) {
    .about-summary { padding: 80px 0; }
    .about-summary__media-wrap { padding: 24px 24px 0 0; }
    .about-summary__bg-text { font-size: clamp(5rem, 14vw, 9rem); }
}
@media (max-width: 575.98px) {
    .about-summary__stamp {
        width: 84px;
        height: 84px;
        left: -10px;
        top: 8px;
    }
    .about-summary__stamp i { font-size: 18px; }
    .about-summary__stamp span { font-size: 8px; }
    .about-summary__badge { left: 12px; padding: 16px 22px 16px 24px; }
    .about-summary__badge-num { font-size: 1.7rem; }
}

/* ============================================================
   PRODUCT LINES — showroom cards (producto estrella)
   ============================================================ */
.product-lines {
    padding: 110px 0;
    background:
        radial-gradient(ellipse 60% 40% at 50% 0%, rgba(0, 51, 102, .35) 0%, transparent 60%),
        radial-gradient(ellipse 50% 30% at 100% 100%, rgba(204, 0, 0, .12) 0%, transparent 60%),
        linear-gradient(180deg, var(--af-steel-dark) 0%, var(--af-steel-deep) 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.product-lines::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 30%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 30%, transparent 100%);
    pointer-events: none;
}
.product-lines > .container { position: relative; z-index: 1; }

/* ---- Card ---- */
.line-card {
    --af-card-cut: 22px;
    display: block;
    background: #fff;
    overflow: hidden;
    color: var(--af-text);
    height: 100%;
    text-decoration: none;
    position: relative;
    isolation: isolate;
    box-shadow:
        0 20px 50px -16px rgba(0, 0, 0, .55),
        0 0 0 1px rgba(255, 255, 255, .04);
    transition: transform .35s cubic-bezier(.4, 0, .2, 1), box-shadow .35s ease;
    clip-path: polygon(
        0 0,
        100% 0,
        100% calc(100% - var(--af-card-cut)),
        calc(100% - var(--af-card-cut)) 100%,
        0 100%
    );
}
.line-card:hover {
    transform: translateY(-10px);
    box-shadow:
        0 36px 70px -20px rgba(204, 0, 0, .35),
        0 20px 50px -16px rgba(0, 0, 0, .55);
    color: var(--af-text);
    text-decoration: none;
}

/* Borde superior con barra azul→roja en hover */
.line-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    height: 4px;
    width: 100%;
    background: linear-gradient(90deg, var(--af-primary) 0%, var(--af-primary) 50%, var(--af-accent) 50%, var(--af-accent) 100%);
    background-size: 200% 100%;
    background-position: 0 0;
    transition: background-position .5s ease;
    z-index: 5;
}
.line-card:hover::before {
    background-position: 100% 0;
}

/* ---- Media (showroom luminoso premium) ---- */
.line-card__media {
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    background:
        /* halo central muy tenue azul */
        radial-gradient(ellipse 60% 50% at 50% 38%, rgba(0, 51, 102, .07) 0%, transparent 65%),
        /* sombra de piso suave */
        radial-gradient(ellipse 55% 9% at 50% 92%, rgba(15, 22, 32, .22) 0%, transparent 70%),
        /* grid blueprint claro */
        linear-gradient(rgba(0, 51, 102, .04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 51, 102, .04) 1px, transparent 1px),
        /* base blanco premium */
        linear-gradient(180deg, #ffffff 0%, #eef1f6 100%);
    background-size: 100% 100%, 100% 100%, 38px 38px, 38px 38px, 100% 100%;
}

/* Vignette claro suave */
.line-card__media::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 95% 70% at 50% 50%, transparent 55%, rgba(15, 22, 32, .14) 100%);
    pointer-events: none;
    z-index: 1;
}

/* Shine glint sutil en hover */
.line-card__media::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -120%;
    width: 70%;
    height: 200%;
    background: linear-gradient(
        110deg,
        transparent 35%,
        rgba(0, 51, 102, .08) 48%,
        rgba(255, 255, 255, .9) 50%,
        rgba(0, 51, 102, .08) 52%,
        transparent 65%
    );
    transform: rotate(18deg);
    transition: left 1.1s cubic-bezier(.4, 0, .2, 1);
    pointer-events: none;
    z-index: 3;
    mix-blend-mode: overlay;
}
.line-card:hover .line-card__media::after { left: 130%; }

/* Imagen del producto (mix-blend-mode: multiply borra el fondo blanco) */
.line-card__media img {
    max-width: 82%;
    max-height: 88%;
    object-fit: contain;
    filter:
        drop-shadow(0 22px 18px rgba(15, 22, 32, .22))
        drop-shadow(0 8px 6px rgba(15, 22, 32, .14));
    transition: transform .55s cubic-bezier(.4, 0, .2, 1), filter .35s ease;
    position: relative;
    z-index: 2;
    will-change: transform;
    mix-blend-mode: multiply;
}
.line-card:hover .line-card__media img {
    transform: scale(1.08) translateY(-6px);
    filter:
        drop-shadow(0 34px 28px rgba(15, 22, 32, .35))
        drop-shadow(0 14px 10px rgba(15, 22, 32, .2))
        drop-shadow(0 6px 12px rgba(204, 0, 0, .18));
}

/* Tag de cantidad de modelos (azul oscuro sobre fondo claro) */
.line-card__tag {
    position: absolute;
    top: 16px;
    left: 16px;
    background: linear-gradient(135deg, rgba(0, 51, 102, .94) 0%, rgba(15, 22, 32, .94) 100%);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 8px 14px 8px 12px;
    z-index: 4;
    border-left: 3px solid var(--af-accent);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow:
        0 8px 22px rgba(0, 51, 102, .25),
        0 2px 4px rgba(0, 0, 0, .15);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.line-card__tag i { color: var(--af-accent); font-size: 9px; }

/* ---- Body ---- */
.line-card__body {
    padding: 28px 28px 32px;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: #fff;
    position: relative;
}
.line-card__body::before {
    content: '';
    position: absolute;
    top: 0; left: 28px; right: 28px;
    height: 1px;
    background: linear-gradient(90deg, var(--af-accent) 0%, var(--af-accent) 40px, var(--af-border) 40px, var(--af-border) 100%);
}
.line-card__title {
    font-size: 1.5rem;
    color: var(--af-primary);
    font-weight: 700;
    margin: 0;
    line-height: 1.15;
    letter-spacing: -.3px;
}
.line-card__cta {
    color: var(--af-accent);
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    transition: color .2s ease;
}
.line-card__cta i {
    margin-left: 8px;
    transition: transform .3s ease;
}
.line-card:hover .line-card__cta { color: var(--af-primary); }
.line-card:hover .line-card__cta i { transform: translateX(6px); }

@media (max-width: 575.98px) {
    .line-card__media { aspect-ratio: 16/12; }
    .line-card__body {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 22px 22px 26px;
    }
    .line-card__body::before { left: 22px; right: 22px; }
}

/* ============================================================
   WHY ALPHA
   ============================================================ */
.why-alpha {
    padding: 96px 0;
    background: var(--af-light);
    position: relative;
}
.why-card {
    background: #fff;
    padding: 36px 28px;
    height: 100%;
    text-align: left;
    border: 1px solid var(--af-border);
    border-top: 3px solid var(--af-primary);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    position: relative;
}
.why-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0;
    height: 3px;
    background: var(--af-accent);
    transition: width .3s ease;
}
.why-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--af-shadow-md);
    border-top-color: var(--af-accent);
}
.why-card:hover::after { width: 100%; }
.why-card__icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--af-primary) 0%, var(--af-primary-dark) 100%);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    border-radius: 2px;
    margin-bottom: 20px;
    box-shadow: 0 8px 18px rgba(0, 51, 102, .25);
}
.why-card__title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--af-primary);
    margin: 0 0 10px;
    line-height: 1.3;
}
.why-card__text {
    color: var(--af-text-muted);
    font-size: .95rem;
    line-height: 1.65;
    margin: 0;
}

/* ============================================================
   FEATURED PRODUCTS
   ============================================================ */
.featured-products {
    padding: 96px 0;
    background: #fff;
}
.product-card {
    display: block;
    background: #fff;
    border: 1px solid var(--af-border);
    border-radius: 4px;
    overflow: hidden;
    color: var(--af-text);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    height: 100%;
    text-decoration: none;
    position: relative;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--af-shadow-md);
    border-color: var(--af-primary);
    color: var(--af-text);
    text-decoration: none;
}
.product-card__media {
    aspect-ratio: 1/1;
    background:
        radial-gradient(ellipse 60% 45% at 50% 38%, rgba(0, 51, 102, .05) 0%, transparent 65%),
        radial-gradient(ellipse 50% 8% at 50% 92%, rgba(15, 22, 32, .14) 0%, transparent 70%),
        linear-gradient(180deg, #ffffff 0%, #f4f6fa 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    position: relative;
    overflow: hidden;
}
.product-card__media::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 90% 70% at 50% 50%, transparent 55%, rgba(15, 22, 32, .1) 100%);
    pointer-events: none;
    z-index: 1;
}
.product-card__media img {
    max-width: 88%;
    max-height: 88%;
    object-fit: contain;
    transition: transform .35s cubic-bezier(.4, 0, .2, 1), filter .3s ease;
    position: relative;
    z-index: 2;
    mix-blend-mode: multiply;
    filter: drop-shadow(0 12px 10px rgba(15, 22, 32, .15));
}
.product-card:hover .product-card__media img {
    transform: scale(1.06) translateY(-2px);
    filter: drop-shadow(0 18px 14px rgba(15, 22, 32, .22));
}
.product-card__hover {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--af-primary);
    color: #fff;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    text-align: center;
    padding: 10px;
    transform: translateY(100%);
    transition: transform .3s ease;
}
.product-card:hover .product-card__hover { transform: translateY(0); }

.product-card__body {
    padding: 16px 18px 18px;
    border-top: 1px solid var(--af-border);
}
.product-card__cat {
    color: var(--af-accent);
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 700;
}
.product-card__title {
    font-size: 15px;
    color: var(--af-primary);
    font-weight: 700;
    margin: 6px 0 6px;
    line-height: 1.3;
}
.product-card__sku {
    color: var(--af-text-muted);
    font-family: 'Roboto Mono', monospace, ui-monospace;
    font-size: 12px;
}

.featured-nav { display: inline-flex; }

/* ============================================================
   QUALITY BANNER
   ============================================================ */
.quality-banner {
    padding: 96px 0;
    background: var(--af-light);
    position: relative;
}
.quality-banner__media {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--af-shadow-lg);
}
.quality-banner__media::before {
    content: '';
    position: absolute;
    bottom: -18px;
    right: -18px;
    width: 80px;
    height: 80px;
    border-bottom: 4px solid var(--af-accent);
    border-right: 4px solid var(--af-accent);
    z-index: 2;
}
.quality-banner__media img {
    width: 100%;
    height: 100%;
    max-height: 460px;
    object-fit: cover;
    display: block;
}

.quality-badges {
    list-style: none;
    padding: 0;
    margin: 24px 0 28px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 24px;
}
.quality-badges li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--af-primary);
    font-size: .95rem;
}
.quality-badges i {
    color: var(--af-accent);
    font-size: 18px;
}

@media (max-width: 575.98px) {
    .quality-badges { grid-template-columns: 1fr; }
}

/* ============================================================
   LOGOS CARROUSEL
   ============================================================ */
.logos-carousel {
    padding: 72px 0;
    background: #fff;
    border-top: 1px solid var(--af-border);
    border-bottom: 1px solid var(--af-border);
}
.logos-carousel__title {
    color: #111827;
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    font-weight: 600;
    margin: 8px 0 0;
    max-width: 760px;
    margin-inline: auto;
}
.logos-carousel .swiper-slide img {
    max-height: 64px;
    max-width: 160px;
    object-fit: contain;
    filter: grayscale(1);
    opacity: .6;
    transition: filter .25s, opacity .25s, transform .25s;
}
.logos-carousel .swiper-slide:hover img {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.05);
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
    position: relative;
    padding: 88px 0;
    background:
        linear-gradient(135deg, var(--af-primary) 0%, var(--af-primary-deep) 100%);
    color: #fff;
    overflow: hidden;
}
.cta-banner__pattern {
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(
            -45deg,
            rgba(255, 255, 255, .04) 0,
            rgba(255, 255, 255, .04) 2px,
            transparent 2px,
            transparent 18px
        ),
        radial-gradient(ellipse at 20% 0%, rgba(204, 0, 0, .25) 0%, transparent 55%);
    pointer-events: none;
}
.cta-banner > .container { z-index: 1; }
.cta-banner__title {
    font-weight: 700;
    color: #fff;
    margin: 8px 0 12px;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    letter-spacing: -.3px;
}
.cta-banner__lead {
    color: rgba(255, 255, 255, .85);
    margin: 0 auto 28px;
    font-size: 1.05rem;
    max-width: 620px;
    line-height: 1.6;
}
.cta-banner__buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991.98px) {
    .about-summary,
    .product-lines,
    .featured-products,
    .quality-banner,
    .why-alpha {
        padding: 72px 0;
    }
}
@media (max-width: 767.98px) {
    .about-summary,
    .product-lines,
    .featured-products,
    .quality-banner,
    .why-alpha {
        padding: 56px 0;
    }
    .logos-carousel { padding: 48px 0; }
    .cta-banner { padding: 56px 0; }
    .line-card__body {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* ============================================================
   QUICK ACCESS (otras vistas)
   ============================================================ */
.quick-card {
    border: 1px solid transparent;
    border-radius: 4px;
    transition: all .2s;
}
.quick-card:hover {
    border-color: var(--af-primary);
    background: var(--af-light);
}
.quick-card i { color: var(--af-primary); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--af-primary-deep);
    color: #fff;
    position: relative;
}
.site-footer::before {
    content: '';
    display: block;
    height: 4px;
    background:
        linear-gradient(90deg, var(--af-accent) 0%, var(--af-accent) 30%, var(--af-primary) 30%, var(--af-primary) 100%);
}
.site-footer h5 {
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
    font-weight: 700;
    margin-bottom: 16px;
}
.site-footer a {
    color: #cfd8e3;
    text-decoration: none;
    transition: color .2s;
}
.site-footer a:hover { color: var(--af-accent); }
.site-footer .footer-bottom {
    background: rgba(0, 0, 0, .35);
    color: #cfd8e3;
}
.site-footer .social-icons a {
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 2px;
    transition: all .2s;
}
.site-footer .social-icons a:hover {
    background: var(--af-accent);
    border-color: var(--af-accent);
    color: #fff;
}

/* ============================================================
   BOTONES FLOTANTES
   ============================================================ */
.btn-whatsapp-fixed {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: #25d366;
    color: #fff !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
    z-index: 1000;
    font-size: 26px;
    transition: transform .2s;
    text-decoration: none;
}
.btn-whatsapp-fixed:hover {
    transform: scale(1.08);
    color: #fff !important;
}
.btn-go-up {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 44px;
    height: 44px;
    border: none;
    background: var(--af-primary);
    color: #fff;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform .2s, opacity .2s;
}
.btn-go-up.visible { display: flex; }
.btn-go-up:hover { transform: scale(1.08); }

/* ============================================================
   PÁGINAS INTERNAS
   ============================================================ */
.page-header {
    background: var(--af-light);
    border-bottom: 1px solid var(--af-border);
}
.page-header h1 {
    color: var(--af-primary);
    font-weight: 700;
}
.content-body img {
    max-width: 100%;
    height: auto;
}

/* ============================================================
   SECTION HERO (header de páginas internas)
   ============================================================ */
.section-hero {
    position: relative;
    min-height: 460px;
    height: 52vh;
    max-height: 580px;
    overflow: hidden;
    background: var(--af-steel-deep);
    color: #fff;
    display: flex;
    align-items: center;
}
.section-hero--solid {
    background:
        radial-gradient(ellipse 60% 60% at 25% 30%, rgba(0, 51, 102, .55) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 90% 100%, rgba(204, 0, 0, .25) 0%, transparent 60%),
        linear-gradient(135deg, var(--af-steel-dark) 0%, var(--af-steel-deep) 100%);
}
.section-hero__media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}
.section-hero__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(110deg, rgba(0, 26, 51, .82) 0%, rgba(0, 26, 51, .5) 50%, rgba(15, 22, 32, .65) 100%),
        linear-gradient(to bottom, rgba(0, 0, 0, .15) 0%, rgba(0, 0, 0, .55) 100%);
    z-index: 2;
}
.section-hero__pattern {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px),
        repeating-linear-gradient(-45deg, transparent 0, transparent 16px, rgba(204, 0, 0, .08) 16px, rgba(204, 0, 0, .08) 17px);
    background-size: 48px 48px, 48px 48px, 100% 100%;
    mask-image: radial-gradient(ellipse 90% 100% at 50% 50%, #000 30%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 90% 100% at 50% 50%, #000 30%, transparent 100%);
    z-index: 3;
    pointer-events: none;
}
.section-hero__content {
    position: relative;
    z-index: 4;
    padding: 28px 0;
}
.section-hero__crumbs {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, .7);
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.section-hero__crumbs a {
    color: rgba(255, 255, 255, .7);
    text-decoration: none;
    transition: color .2s;
}
.section-hero__crumbs a:hover { color: #fff; }
.section-hero__crumbs .sep { color: var(--af-accent); font-weight: 700; }

.section-hero__eyebrow {
    display: inline-block;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    background: var(--af-accent);
    padding: 7px 14px;
    margin-bottom: 18px;
    box-shadow: 0 6px 18px rgba(204, 0, 0, .35);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 8px 100%);
    padding-left: 18px;
}
.section-hero__title {
    font-size: clamp(2.4rem, 6vw, 4.4rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -1.2px;
    margin: 0 0 18px;
    text-transform: uppercase;
    text-shadow: 0 2px 18px rgba(0, 0, 0, .5);
    position: relative;
    padding-bottom: 18px;
}
.section-hero__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 5px;
    background: var(--af-accent);
    box-shadow: 0 6px 18px rgba(204, 0, 0, .5);
}
.section-hero__lead {
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    color: rgba(255, 255, 255, .9);
    line-height: 1.6;
    max-width: 640px;
    margin: 0 0 20px;
    text-shadow: 0 1px 8px rgba(0, 0, 0, .35);
}
.section-hero__meta {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
    background: rgba(15, 22, 32, .55);
    border-left: 3px solid var(--af-accent);
    padding: 10px 16px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.section-hero__meta i { color: var(--af-accent); font-size: 9px; }

@media (max-width: 767.98px) {
    .section-hero { min-height: 380px; height: 56vh; }
    .section-hero__title::after { width: 60px; height: 4px; }
}

/* ============================================================
   PRODUCT GRID (cards en página interna)
   ============================================================ */
.product-grid {
    padding: 96px 0;
    background:
        radial-gradient(ellipse 70% 40% at 50% 0%, rgba(0, 51, 102, .08) 0%, transparent 50%),
        #f5f7fa;
    position: relative;
}
.product-grid::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 51, 102, .04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 51, 102, .04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 40%, transparent 100%);
    pointer-events: none;
}
.product-grid > .container { position: relative; z-index: 1; }

/* ---- Card de grilla ---- */
.pgrid-card {
    --af-pgrid-cut: 16px;
    position: relative;
    height: 100%;
    background: #fff;
    overflow: hidden;
    isolation: isolate;
    box-shadow:
        0 14px 36px -14px rgba(0, 0, 0, .25),
        0 0 0 1px rgba(0, 51, 102, .04);
    transition: transform .3s cubic-bezier(.4, 0, .2, 1), box-shadow .3s ease;
    clip-path: polygon(
        0 0,
        100% 0,
        100% calc(100% - var(--af-pgrid-cut)),
        calc(100% - var(--af-pgrid-cut)) 100%,
        0 100%
    );
}
.pgrid-card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 28px 56px -16px rgba(204, 0, 0, .28),
        0 14px 36px -14px rgba(0, 0, 0, .35);
}
.pgrid-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    height: 3px;
    width: 0;
    background: var(--af-accent);
    transition: width .4s cubic-bezier(.4, 0, .2, 1);
    z-index: 5;
}
.pgrid-card:hover::before { width: 100%; }

/* ---- Media (showroom luminoso premium) ---- */
.pgrid-card__media {
    aspect-ratio: 1/1;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        /* halo central tenue azul */
        radial-gradient(ellipse 55% 45% at 50% 38%, rgba(0, 51, 102, .06) 0%, transparent 65%),
        /* sombra de piso suave (showroom) */
        radial-gradient(ellipse 50% 8% at 50% 92%, rgba(15, 22, 32, .18) 0%, transparent 70%),
        /* grid blueprint clarísimo */
        linear-gradient(rgba(0, 51, 102, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 51, 102, .035) 1px, transparent 1px),
        /* base blanco premium */
        linear-gradient(180deg, #ffffff 0%, #f4f6fa 100%);
    background-size: 100% 100%, 100% 100%, 32px 32px, 32px 32px, 100% 100%;
}
/* Vignette claro suave en bordes */
.pgrid-card__media::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 90% 70% at 50% 50%, transparent 55%, rgba(15, 22, 32, .12) 100%);
    pointer-events: none;
    z-index: 1;
}
/* Shine glint diagonal al hover */
.pgrid-card__media::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -120%;
    width: 65%;
    height: 200%;
    background: linear-gradient(
        110deg,
        transparent 35%,
        rgba(0, 51, 102, .08) 48%,
        rgba(255, 255, 255, .85) 50%,
        rgba(0, 51, 102, .08) 52%,
        transparent 65%
    );
    transform: rotate(18deg);
    transition: left 1s cubic-bezier(.4, 0, .2, 1);
    pointer-events: none;
    z-index: 3;
    mix-blend-mode: overlay;
}
.pgrid-card:hover .pgrid-card__media::after { left: 130%; }

/* Imagen del producto */
.pgrid-card__media img {
    max-width: 82%;
    max-height: 85%;
    object-fit: contain;
    filter:
        drop-shadow(0 18px 14px rgba(15, 22, 32, .18))
        drop-shadow(0 6px 4px rgba(15, 22, 32, .12));
    transition: transform .5s cubic-bezier(.4, 0, .2, 1), filter .35s ease;
    position: relative;
    z-index: 2;
    mix-blend-mode: multiply;
}
.pgrid-card:hover .pgrid-card__media img {
    transform: scale(1.06) translateY(-4px);
    filter:
        drop-shadow(0 26px 22px rgba(15, 22, 32, .28))
        drop-shadow(0 10px 8px rgba(15, 22, 32, .18))
        drop-shadow(0 4px 8px rgba(204, 0, 0, .14));
}

.pgrid-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(0, 51, 102, .12);
    font-size: 64px;
    z-index: 2;
}

/* Badge top-left ahora con fondo azul oscuro (contrasta sobre claro) */
.pgrid-card__badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: linear-gradient(135deg, rgba(0, 51, 102, .92) 0%, rgba(15, 22, 32, .92) 100%);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 7px 13px;
    border-left: 3px solid var(--af-accent);
    z-index: 4;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow:
        0 6px 18px rgba(0, 51, 102, .25),
        0 2px 4px rgba(0, 0, 0, .15);
}
.pgrid-card__badge i { color: var(--af-accent); font-size: 8px; }

/* ---- Body ---- */
.pgrid-card__body {
    padding: 22px 22px 24px;
    background: #fff;
    position: relative;
    border-top: 1px solid var(--af-border);
}
.pgrid-card__title {
    font-size: 1.15rem;
    color: var(--af-primary);
    font-weight: 700;
    margin: 0 0 8px;
    line-height: 1.25;
    letter-spacing: -.2px;
}
.pgrid-card__desc {
    font-size: .9rem;
    color: var(--af-text-muted);
    line-height: 1.55;
    margin: 0 0 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.pgrid-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px dashed var(--af-border);
    padding-top: 14px;
    position: relative;
}
.pgrid-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--af-primary);
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-decoration: none;
    transition: color .2s ease, gap .2s ease;
}
.pgrid-card__cta i {
    width: 28px;
    height: 28px;
    background: var(--af-light);
    color: var(--af-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: background .2s ease, color .2s ease;
}
.pgrid-card:hover .pgrid-card__cta { color: var(--af-accent); gap: 12px; }
.pgrid-card:hover .pgrid-card__cta i {
    background: var(--af-accent);
    color: #fff;
}
.pgrid-card__corner {
    position: absolute;
    bottom: -24px;
    right: -22px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 18px 18px;
    border-color: transparent transparent var(--af-accent) transparent;
    opacity: 0;
    transition: opacity .25s ease;
}
.pgrid-card:hover .pgrid-card__corner { opacity: 1; }

/* ---- Empty state ---- */
.empty-state {
    text-align: center;
    padding: 80px 24px;
    background: #fff;
    border: 2px dashed var(--af-border);
    color: var(--af-text-muted);
}
.empty-state i {
    font-size: 56px;
    color: var(--af-border);
    margin-bottom: 16px;
}
.empty-state h3 {
    color: var(--af-primary);
    font-weight: 700;
    margin: 0 0 8px;
}
.empty-state p { margin: 0 auto; max-width: 460px; }

@media (max-width: 575.98px) {
    .product-grid { padding: 56px 0; }
    .pgrid-card__media { aspect-ratio: 4/3; }
}

/* ============================================================
   PAGE CONTENT (calidad, quienes-somos)
   ============================================================ */
.page-content {
    padding: 64px 0 72px;
    background:
        radial-gradient(ellipse 50% 40% at 0% 100%, rgba(0, 51, 102, .04) 0%, transparent 60%),
        radial-gradient(ellipse 40% 30% at 100% 0%, rgba(204, 0, 0, .04) 0%, transparent 60%),
        #fff;
    position: relative;
    overflow: hidden;
}
.page-content__bg-text {
    position: absolute;
    top: 30px;
    right: -3%;
    font-size: clamp(5rem, 12vw, 10rem);
    font-weight: 900;
    color: rgba(0, 51, 102, .03);
    line-height: .85;
    letter-spacing: -6px;
    pointer-events: none;
    user-select: none;
    z-index: 0;
    white-space: nowrap;
}
.page-content > .container { position: relative; z-index: 1; }

/* Strip de badges de calidad */
.quality-badges-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
    padding: 22px 26px;
    background: linear-gradient(135deg, var(--af-primary) 0%, var(--af-primary-dark) 100%);
    color: #fff;
    border-left: 4px solid var(--af-accent);
    box-shadow: 0 18px 40px -10px rgba(0, 51, 102, .35);
    position: relative;
    z-index: 2;
}
.quality-badges-strip::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(-45deg, rgba(255, 255, 255, .04) 0, rgba(255, 255, 255, .04) 2px, transparent 2px, transparent 16px);
    pointer-events: none;
}
.quality-badge-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px 8px 14px;
    background: rgba(255, 255, 255, .08);
    border-left: 2px solid var(--af-accent);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: background .2s ease, transform .2s ease;
    position: relative;
    z-index: 1;
}
.quality-badge-item:hover {
    background: rgba(255, 255, 255, .15);
    transform: translateY(-2px);
}
.quality-badge-item i { color: var(--af-accent); font-size: 14px; }

/* ---- Article block (editorial) ---- */
.article-block {
    display: block;
    margin-bottom: 56px;
    position: relative;
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
}
.article-block:not(:last-child) {
    padding-bottom: 56px;
    border-bottom: 1px solid var(--af-border);
}
.article-block:last-child { margin-bottom: 0; }

.article-block__media {
    position: relative;
    padding: 16px 16px 0 0;
    isolation: isolate;
    width: 58%;
    max-width: 560px;
    margin: 0 0 40px;
}
@media (max-width: 767.98px) {
    .article-block__media { width: 100%; padding: 12px 12px 0 0; }
}

.article-block__frame {
    position: absolute;
    top: 0;
    right: 0;
    width: calc(100% - 18px);
    height: calc(100% - 18px);
    border: 3px solid var(--af-accent);
    z-index: 0;
    pointer-events: none;
    transition: transform .5s cubic-bezier(.4, 0, .2, 1);
}
.article-block--reverse .article-block__frame { left: 0; right: auto; }
.article-block__media:hover .article-block__frame { transform: translate(5px, 5px); }
.article-block--reverse .article-block__media:hover .article-block__frame { transform: translate(-5px, 5px); }

.article-block__num {
    position: absolute;
    top: -14px;
    left: -8px;
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--af-primary);
    opacity: .08;
    line-height: 1;
    z-index: 4;
    pointer-events: none;
    letter-spacing: -3px;
}

.article-block__img {
    position: relative;
    z-index: 1;
    overflow: hidden;
    box-shadow:
        0 24px 60px -16px rgba(0, 0, 0, .3),
        0 0 0 1px rgba(0, 51, 102, .06);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%);
}
.article-block__img img {
    width: 100%;
    height: 100%;
    max-height: 380px;
    object-fit: cover;
    display: block;
    transition: transform .9s cubic-bezier(.4, 0, .2, 1);
}
.article-block__media:hover .article-block__img img { transform: scale(1.05); }

.article-block__body {
    padding: 0;
    width: 100%;
}
.article-block__body--full {
    max-width: 880px;
    margin: 0 auto;
    text-align: left;
}
.article-block__title {
    font-size: clamp(1.75rem, 2.6vw, 2.4rem);
    font-weight: 700;
    color: var(--af-primary);
    margin: 0 0 14px;
    line-height: 1.18;
    letter-spacing: -.4px;
}
.article-block__lead {
    font-size: 1.1rem;
    color: var(--af-text);
    line-height: 1.7;
    margin: 0 0 18px;
    font-weight: 500;
}
.article-block__text {
    color: var(--af-text-muted);
    font-size: 1rem;
    line-height: 1.75;
}
.article-block__text p { margin: 0 0 14px; }
.article-block__text p:last-child { margin-bottom: 0; }
/* Limpiar basura del WYSIWYG: párrafos/divs vacíos y <br> de relleno */
.article-block__text p:empty,
.article-block__text div:empty { display: none; }
.article-block__text p:has(> br:only-child) { display: none; }
.article-block__text > br { display: none; }
.article-block__text h2,
.article-block__text h3,
.article-block__text h4 {
    color: var(--af-primary);
    font-weight: 700;
    margin: 28px 0 14px;
    line-height: 1.3;
}
.article-block__text h2 { font-size: 1.5rem; }
.article-block__text h3 { font-size: 1.25rem; }
.article-block__text h4 { font-size: 1.1rem; }
.article-block__text ul,
.article-block__text ol {
    padding-left: 24px;
    margin-bottom: 18px;
}
.article-block__text ul li {
    margin-bottom: 8px;
    position: relative;
    list-style: none;
    padding-left: 24px;
}
.article-block__text ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 12px;
    height: 2px;
    background: var(--af-accent);
}
.article-block__text ol li { margin-bottom: 8px; }
.article-block__text strong { color: var(--af-primary); font-weight: 700; }
.article-block__text a {
    color: var(--af-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color .2s;
}
.article-block__text a:hover { color: var(--af-accent-dark); }
.article-block__text blockquote {
    border-left: 4px solid var(--af-accent);
    padding: 14px 24px;
    margin: 24px 0;
    font-style: italic;
    color: var(--af-text);
    background: var(--af-light);
}
.article-block__text img {
    max-width: 100%;
    height: auto;
    margin: 0;
    box-shadow: var(--af-shadow-md);
    display: block;
}
.article-block__text figure {
    margin: 0;
    overflow: hidden;
    background: #f5f7fa;
    box-shadow: var(--af-shadow-md);
    transition: transform .35s ease, box-shadow .35s ease;
}
.article-block__text figure:hover {
    transform: translateY(-4px);
    box-shadow: var(--af-shadow-lg);
}
.article-block__text figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    box-shadow: none;
    transition: transform .5s ease;
}
.article-block__text figure:hover img { transform: scale(1.04); }

/* Compatibilidad con clases del editor viejo (FCKEditor / BS3) */
.article-block__text .fck_template,
.article-block__text .row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin: 32px 0;
}

/* "two_img_templates" → galería horizontal de iguales (ej: 3 certificados) */
.article-block__text .two_img_templates {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin: 24px 0;
}
@media (min-width: 600px) {
    .article-block__text .two_img_templates {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 900px) {
    /* Si hay 3 hijos, 3 columnas. Si hay 2, mantiene 2. */
    .article-block__text .two_img_templates:has(> :nth-child(3)) {
        grid-template-columns: repeat(3, 1fr);
    }
    .article-block__text .two_img_templates:has(> :nth-child(4)) {
        grid-template-columns: repeat(4, 1fr);
    }
}
.article-block__text .two_img_templates > * {
    width: 100%;
    margin: 0;
}

/* fck_template con .col / .col-sm-* (Bootstrap 3 viejo) */
@media (min-width: 768px) {
    .article-block__text .fck_template {
        grid-template-columns: repeat(12, 1fr);
    }
    /* Una sola columna .col → ocupa todo el ancho */
    .article-block__text .fck_template > .col { grid-column: span 12; }
    /* Cuando hay dos .col en .row → 50/50 */
    .article-block__text .fck_template > .col-xs-12.col-sm-6,
    .article-block__text .fck_template > .col.col-xs-12.col-sm-6 { grid-column: span 6; }
    .article-block__text .fck_template > .col-xs-12.col-sm-4 { grid-column: span 4; }
    .article-block__text .fck_template > .col-xs-12.col-sm-8 { grid-column: span 8; }
    .article-block__text .fck_template > .two_img_templates { grid-column: span 12; }
}

/* Imagenes responsivas dentro de las grillas */
.article-block__text .img-responsive {
    width: 100%;
    height: auto;
    display: block;
}
/* Figuras dentro de fck_template / two_img_templates */
.article-block__text figure {
    margin: 0;
    width: 100%;
}

.article-block__text .img-responsive {
    width: 100%;
    height: auto;
    display: block;
}

/* Bloques de cita / tagline al final del body de calidad */
.article-block__text p:last-child:has(strong) {
    margin-top: 28px;
    padding: 22px 26px;
    background: linear-gradient(135deg, var(--af-light) 0%, #fff 100%);
    border-left: 4px solid var(--af-accent);
    font-size: 1.05rem;
    color: var(--af-text);
    text-align: center;
    line-height: 1.7;
}

@media (max-width: 991.98px) {
    .article-block { margin-bottom: 48px; }
    .article-block:not(:last-child) { padding-bottom: 48px; }
}
@media (max-width: 575.98px) {
    .page-content { padding: 56px 0; }
    .quality-badges-strip { padding: 18px 20px; gap: 10px; margin-bottom: 40px; }
    .article-block__num { font-size: 3.5rem; top: -12px; }
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-page {
    padding: 96px 0;
    background:
        radial-gradient(ellipse 60% 40% at 100% 0%, rgba(0, 51, 102, .05) 0%, transparent 60%),
        radial-gradient(ellipse 50% 30% at 0% 100%, rgba(204, 0, 0, .04) 0%, transparent 60%),
        var(--af-light);
    position: relative;
}
.contact-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 51, 102, .03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 51, 102, .03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 40%, transparent 100%);
    pointer-events: none;
}
.contact-page > .container { position: relative; z-index: 1; }

/* ---- Datos de contacto (sidebar) ---- */
.contact-info {
    padding: 8px 0 0;
}
.contact-info__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.contact-info__list li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 20px;
    background: #fff;
    border-left: 3px solid var(--af-primary);
    box-shadow: 0 8px 20px -10px rgba(0, 51, 102, .15);
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.contact-info__list li:hover {
    transform: translateX(4px);
    border-left-color: var(--af-accent);
    box-shadow: 0 12px 28px -10px rgba(204, 0, 0, .2);
}
.contact-info__icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--af-primary) 0%, var(--af-primary-dark) 100%);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    box-shadow: 0 6px 14px rgba(0, 51, 102, .25);
}
.contact-info__icon--wa {
    background: linear-gradient(135deg, #2ee477 0%, #1ebe5a 100%);
    box-shadow: 0 6px 14px rgba(37, 211, 102, .35);
}
.contact-info__list li > div { flex: 1; min-width: 0; }
.contact-info__list small {
    display: block;
    color: var(--af-text-muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 4px;
    font-weight: 600;
}
.contact-info__list a {
    color: var(--af-primary);
    font-weight: 600;
    text-decoration: none;
    word-break: break-word;
    transition: color .2s;
}
.contact-info__list a:hover { color: var(--af-accent); }
.contact-info__addr {
    color: var(--af-text);
    font-weight: 500;
}

.contact-info__social {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px dashed var(--af-border);
}
.contact-info__social small {
    display: block;
    color: var(--af-text-muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
    font-weight: 600;
}
.contact-info__social div { display: flex; gap: 10px; }
.contact-info__social a {
    width: 40px;
    height: 40px;
    background: #fff;
    color: var(--af-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--af-border);
    transition: all .2s ease;
}
.contact-info__social a:hover {
    background: var(--af-primary);
    color: #fff;
    border-color: var(--af-primary);
    transform: translateY(-2px);
}

/* ---- Form ---- */
.contact-form {
    background: #fff;
    padding: 40px 36px;
    box-shadow:
        0 24px 60px -20px rgba(0, 51, 102, .2),
        0 0 0 1px rgba(0, 51, 102, .05);
    position: relative;
    border-top: 4px solid var(--af-accent);
}
.contact-form__corner {
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, transparent 50%, var(--af-accent) 50%);
    pointer-events: none;
}
.contact-form__head {
    margin-bottom: 28px;
}

/* Campos custom */
.af-field {
    position: relative;
    width: 100%;
}
.af-field__label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--af-text-muted);
    margin-bottom: 6px;
}
.af-field__label span { color: var(--af-accent); }
.af-field__input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--af-border);
    background: var(--af-light);
    color: var(--af-text);
    font-size: 15px;
    font-family: inherit;
    transition: border-color .2s, background .2s, box-shadow .2s;
    outline: none;
}
.af-field__input:focus {
    border-color: var(--af-primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 51, 102, .12);
}
.af-field__input:invalid:not(:placeholder-shown) {
    border-color: var(--af-accent);
}
textarea.af-field__input {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

/* Alerts */
.alert-af-success,
.alert-af-error {
    padding: 16px 20px;
    margin-bottom: 28px;
    border-left: 4px solid;
    font-weight: 500;
    display: flex;
    align-items: center;
}
.alert-af-success {
    background: #e8f5ec;
    color: #1e7c3a;
    border-left-color: #2dab57;
}
.alert-af-error {
    background: #fde8e8;
    color: #a30000;
    border-left-color: var(--af-accent);
}

@media (max-width: 575.98px) {
    .contact-page { padding: 56px 0; }
    .contact-form { padding: 28px 22px; }
}

/* ============================================================
   MOBILE FIXES
   ============================================================ */
@media (max-width: 767.98px) {
    .site-header .logo img { max-height: 44px; }
    .hero-slider .carousel-item img { max-height: 360px; }
    .btn-whatsapp-fixed { width: 48px; height: 48px; font-size: 22px; }
}
