/* =====================================================
   COMERCIAL UNO - CSS GENERAL
   VERSION LIMPIA Y ORGANIZADA
===================================================== */

:root {
    --navy: #041629;
    --navy2: #082b52;
    --blue: #0868bd;
    --sky: #49b9f2;
    --gold: #d9ad45;
    --gold2: #f1d77b;
    --paper: #f7f9fc;
    --white: #ffffff;
    --ink: #0c2239;
    --muted: #67798c;
    --shadow: 0 18px 50px rgba(4, 22, 41, .12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    overflow-x: hidden;
}

h1,
h2,
h3 {
    margin: 0;
    line-height: 1.15;
}

p {
    line-height: 1.7;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

button,
input,
select,
textarea {
    font: inherit;
}

[hidden] {
    display: none !important;
}

/* =====================================================
   HEADER Y LOGO PEQUEÑO
===================================================== */

/* ==========================================
   HEADER COMERCIAL UNO
========================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;

    height: 82px;
    padding: 0 clamp(20px, 5vw, 80px);

    display: flex;
    justify-content: space-between;
    align-items: center;

    color: white;
    background: rgba(4, 22, 41, .88);
    backdrop-filter: blur(12px);

    transition: background .3s, height .3s;
}

.site-header.scrolled,
.site-header.inner {
    height: 70px;
    background: rgba(4, 22, 41, .97);
    box-shadow: 0 8px 30px rgba(0, 0, 0, .18);
}

/* LOGO PEQUEÑO A LA IZQUIERDA */

/* ==========================================
   LOGO ELEGANTE DEL ENCABEZADO
========================================== */


.brand.brand-logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 190px;
    height: 65px;
    min-width: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}

.brand.brand-logo .header-logo-img {
    display: block;
    width: 100%;
    height: 55px;
    max-width: 100%;
    object-fit: contain;
    object-position: left center;
    border-radius: 0;
}

@media (max-width: 600px) {
    .brand.brand-logo {
        width: 145px;
        height: 55px;
    }

    .brand.brand-logo .header-logo-img {
        height: 43px;
    }
}


/* CELULARES */

@media (max-width: 600px) {

    .brand.brand-logo {
        width: 52px;
        height: 52px;
        min-width: 52px;
        padding: 4px;
    }

}

/* NAVEGACIÓN */

.nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav a {
    font-size: .94rem;
    font-weight: 700;
    opacity: .85;
    transition: .25s;
}

.nav a:hover,
.nav a.active {
    opacity: 1;
    color: var(--gold2);
}

.nav-cta {
    padding: 10px 17px;
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 99px;
}

/* BOTÓN DEL MENÚ MÓVIL */

.menu-btn {
    display: none;
    border: 0;
    background: transparent;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
}

@media (max-width: 600px) {

    .brand,
    .brand-logo {
        width: 52px;
        min-width: 52px;
        height: 52px;
    }

    .header-logo-img {
        width: 48px;
        height: 48px;
    }
}

/* =====================================================
   HERO PRINCIPAL
===================================================== */

body[data-page="inicio"] .hero.hero-comercial {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 680px;
    height: auto;

    padding: 135px 24px 95px;

    color: white;
    background:
        radial-gradient(
            circle at 25% 45%,
            rgba(8, 104, 189, .36),
            transparent 42%
        ),
        linear-gradient(
            135deg,
            #031120,
            #082b52 58%,
            #041629
        );

    overflow: hidden;
}

.hero-comercial::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;

    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(217, 173, 69, .12),
            transparent 30%
        );
}

.hero-comercial-container {
    position: relative;
    z-index: 2;

    width: min(1200px, 100%);
    margin: 0 auto;

    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    align-items: center;
    gap: clamp(35px, 6vw, 90px);
}

/* =====================================================
   CIRCULO FLOTANTE DEL HERO
===================================================== */

.hero-comercial-logo {
    position: relative;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-width: 0;
    isolation: isolate;
}

.hero-logo-orbit {
    position: relative;

    width: min(100%, 390px);
    aspect-ratio: 1;

    display: grid;
    place-items: center;

    animation: logoFlotante 5s ease-in-out infinite;
}

.hero-logo-orbit::before {
    content: "";
    position: absolute;
    inset: 0;

    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(241, 215, 123, .28),
        rgba(217, 173, 69, .08) 55%,
        transparent 73%
    );

    filter: blur(15px);
    animation: brilloLogo 4s ease-in-out infinite;
}

.hero-logo-circle {
    position: relative;
    z-index: 2;

    width: 84%;
    aspect-ratio: 1;

    display: grid;
    place-items: center;

    overflow: hidden;
    border-radius: 50%;

    border: 3px solid rgba(241, 215, 123, .8);

    background: #ffffff;

    box-shadow:
        0 0 30px rgba(217, 173, 69, .3),
        0 25px 50px rgba(0, 0, 0, .3);
}

.hero-logo-circle img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.hero-logo-name {
    position: relative;
    z-index: 3;

    margin-top: 10px;

    color: #ffffff;
    font-size: clamp(1.5rem, 3vw, 2.4rem);
    font-weight: 900;
    letter-spacing: .1em;
    text-align: center;
    line-height: 1.2;

    text-shadow: 0 4px 15px rgba(0, 0, 0, .4);
}

.hero-logo-name span {
    color: var(--gold2);
}

/* DESTELLOS */

.hero-spark {
    position: absolute;
    z-index: 3;

    width: 9px;
    height: 9px;

    border-radius: 50%;
    background: #fff6cc;

    box-shadow:
        0 0 12px #ffe18b,
        0 0 24px rgba(255, 225, 139, .7);

    animation: destello 2.5s ease-in-out infinite;
}

.hero-spark-1 {
    top: 14%;
    right: 18%;
}

.hero-spark-2 {
    bottom: 22%;
    left: 9%;
    animation-delay: .8s;
}

.hero-spark-3 {
    top: 42%;
    right: 5%;
    animation-delay: 1.5s;
}

@keyframes logoFlotante {
    0%,
    100% {
        transform: translateY(0) rotate(-2deg);
    }

    50% {
        transform: translateY(-13px) rotate(2deg);
    }
}

@keyframes brilloLogo {
    0%,
    100% {
        opacity: .45;
        transform: scale(.96);
    }

    50% {
        opacity: 1;
        transform: scale(1.08);
    }
}

@keyframes destello {
    0%,
    100% {
        opacity: .2;
        transform: scale(.5);
    }

    50% {
        opacity: 1;
        transform: scale(1.4);
    }
}

/* =====================================================
   TEXTO DEL HERO
===================================================== */

.hero-comercial-content {
    position: relative;
    z-index: 2;
    min-width: 0;
}

.eyebrow,
.kicker {
    text-transform: uppercase;
    letter-spacing: .16em;
    font-size: .73rem;
    font-weight: 800;
}

.eyebrow {
    color: var(--gold2);
}

.kicker {
    color: var(--blue);
}

.gold {
    color: var(--gold2);
}

.hero-comercial-content h1 {
    margin: 18px 0;
    font-size: clamp(2.8rem, 5.4vw, 5.5rem);
    line-height: 1.08;
}

.hero-comercial-content h1 em {
    color: var(--gold2);
    font-style: normal;
}

.hero-comercial-content p {
    max-width: 560px;
    color: #dce8f3;
    font-size: clamp(1rem, 1.7vw, 1.2rem);
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 15px 25px;

    border: 0;
    border-radius: 9px;

    font-size: .95rem;
    font-weight: 800;
    text-align: center;

    cursor: pointer;
    transition: transform .25s, background .25s;
}

.btn:hover {
    transform: translateY(-3px);
}

.btn-gold {
    color: #10233a;
    background: linear-gradient(135deg, var(--gold2), var(--gold));
    box-shadow: 0 9px 25px rgba(217, 173, 69, .3);
}

.btn-glass {
    color: white;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .45);
    backdrop-filter: blur(10px);
}

.scroll-cue {
    position: absolute;
    z-index: 3;
    left: 50%;
    bottom: 22px;

    color: white;
    font-size: 2rem;

    transform: translateX(-50%);
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%,
    100% {
        transform: translate(-50%, 0);
    }

    50% {
        transform: translate(-50%, 8px);
    }
}

/* ==========================================
   BENEFICIOS COMERCIAL UNO
========================================== */

.trust-strip {
    position: relative;
    z-index: 2;

    width: min(90%, 1050px);
    margin: 18px auto 35px;
    padding: 12px 20px;

    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;

    background: white;
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.trust-strip > div {
    min-width: 0;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;

    padding: 12px 15px;

    text-align: center;
    border-right: 1px solid #e5e9ee;
}

.trust-strip > div:last-child {
    border-right: 0;
}

.trust-icon {
    font-size: 1.4rem;
}

.trust-strip b {
    color: var(--navy2);
    font-size: .90rem;
}

.trust-strip small {
    color: var(--muted);
    font-size: .78rem;
}

/* ADAPTACIÓN A CELULARES */

@media (max-width: 600px) {

    .trust-strip {
        width: 94%;
        margin: 14px auto 25px;
        padding: 10px 6px;
        border-radius: 14px;
    }

    .trust-strip > div {
        padding: 8px 5px;
        gap: 5px;
    }

    .trust-icon {
        font-size: 1.2rem;
    }

    .trust-strip b {
        font-size: .68rem;
        line-height: 1.3;
    }

    .trust-strip small {
        font-size: .62rem;
        line-height: 1.3;
    }
}

/* =====================================================
   SECCIONES GENERALES
===================================================== */

.section {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 24px;
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 36px;
}

.section-head h2,
.contact-copy h2 {
    margin-top: 9px;
    font-size: clamp(2rem, 4vw, 3.4rem);
}

.text-link {
    color: var(--blue);
    font-weight: 700;
}

/* =====================================================
   PRODUCTOS DESTACADOS
===================================================== */

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.product-card {
    position: relative;
    overflow: hidden;

    background: white;
    border-radius: 14px;
    box-shadow: 0 5px 25px rgba(4, 22, 41, .07);

    transition: .3s;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.product-img {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #eef3f8;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 22px;
}

.product-info h3 {
    margin: 8px 0;
    font-size: 1.25rem;
}

.category {
    color: var(--blue);
    font-size: .73rem;
    font-weight: 800;
    text-transform: uppercase;
}

.features {
    color: var(--muted);
    font-size: .88rem;
}

.price {
    margin: 14px 0;
    font-size: 1.45rem;
    font-weight: 800;
}

.visual-product-action {
    padding: 15px;
}

.visual-consult-btn {
    width: 100%;
    background: var(--navy);
    color: white;
}

/* =====================================================
   PORTADA DEL CATALOGO EN INICIO
===================================================== */

.catalog-promo-section {
    width: min(1180px, 92%);
    margin: 0 auto;
    padding: 70px 0;
}

.catalog-promo-heading {
    margin-bottom: 28px;
}

.catalog-promo-kicker {
    display: block;
    margin-bottom: 8px;

    color: var(--gold);
    font-size: .75rem;
    font-weight: 900;
    letter-spacing: .18em;
}

.catalog-promo-heading h2 {
    color: var(--navy);
    font-size: clamp(2rem, 4vw, 3.5rem);
}

.catalog-promo-heading p {
    margin: 12px 0 0;
    color: var(--muted);
}

.catalog-promo {
    position: relative;
    display: block;

    width: 100%;
    max-width: 1000px;
    margin: 0 auto;

    overflow: hidden;
    border-radius: 28px;

    background: var(--navy);
    box-shadow: var(--shadow);
    isolation: isolate;
}

.catalog-promo-image img {
    width: 100%;
    height: auto;
    transition: transform .8s;
}

.catalog-promo:hover .catalog-promo-image img {
    transform: scale(1.025);
}

.catalog-promo-overlay {
    position: absolute;
    z-index: 1;
    inset: 0;

    background: linear-gradient(
        to top,
        rgba(2, 18, 34, .88),
        rgba(2, 18, 34, .25) 35%,
        transparent 60%
    );

    pointer-events: none;
}

.catalog-promo-action {
    position: absolute;
    z-index: 3;

    left: 30px;
    right: 30px;
    bottom: 28px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    color: white;
}

.catalog-promo-action strong {
    display: inline-flex;
    align-items: center;
    gap: 12px;

    padding: 14px 20px;

    border-radius: 99px;
    background: var(--gold2);
    color: var(--navy);

    font-size: .9rem;
    font-weight: 900;
}

.catalog-arrow {
    font-size: 1.2rem;
}

.catalog-promo-shine {
    position: absolute;
    z-index: 2;

    top: -50%;
    left: -30%;

    width: 15%;
    height: 200%;

    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, .6),
        transparent
    );

    transform: rotate(20deg) translateX(-500%);
    animation: catalogShine 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes catalogShine {
    0%,
    65% {
        transform: rotate(20deg) translateX(-500%);
    }

    100% {
        transform: rotate(20deg) translateX(1000%);
    }
}

/* =====================================================
   SUPER OFERTAS - UN SOLO CARRUSEL
===================================================== */

.offers-section {
    position: relative;
    padding-top: 75px;
    padding-bottom: 80px;
}

.offers-heading {
    margin-bottom: 32px;
}

.offers-kicker {
    display: inline-block;
    margin-bottom: 10px;

    color: var(--blue);
    font-size: .75rem;
    font-weight: 900;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.offers-title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
}

.offers-title-row h2 {
    display: flex;
    align-items: center;
    gap: 10px;

    color: var(--navy);
    font-size: clamp(2.4rem, 5vw, 4.3rem);
}

.offers-fire {
    font-size: .75em;
}

.offers-limited {
    display: inline-flex;
    align-items: center;

    padding: 8px 15px;

    border-radius: 99px;
    background: #fff0e8;
    color: #bd451e;

    font-size: .8rem;
    font-weight: 800;
}

.offers-intro {
    max-width: 620px;
    color: var(--muted);
}

.offers-swipe-hint {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;

    margin-bottom: 12px;

    color: var(--muted);
    font-size: .8rem;
    font-weight: 700;
}

.offers-swipe-arrow {
    display: grid;
    place-items: center;

    width: 28px;
    height: 28px;

    border-radius: 50%;
    background: var(--gold2);
    color: var(--navy);
}

/* Todas las ofertas quedan en el carrusel */

#offersGrid {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;

    width: 100%;
    min-width: 0;
    max-width: 100%;

    gap: 22px;
    margin: 0;
    padding: 12px 5px 26px;

    overflow-x: auto;
    overflow-y: hidden;

    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--gold) #e7edf3;
    -webkit-overflow-scrolling: touch;
}

#offersGrid .offer-card {
    position: relative;

    flex: 0 0 calc((100% - 44px) / 3);
    min-width: 0;

    display: flex;
    flex-direction: column;

    overflow: hidden;

    border-radius: 20px;
    border: 1px solid rgba(4, 22, 41, .06);

    background: white;
    box-shadow: 0 10px 30px rgba(4, 22, 41, .1);

    scroll-snap-align: start;
    transition: transform .3s, box-shadow .3s;
}

#offersGrid .offer-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(4, 22, 41, .15);
}

#offersGrid .offer-image {
    position: relative;

    width: 100%;
    height: 250px;
    padding: 10px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
    background: white;
}

#offersGrid .offer-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

#offersGrid .offer-badge {
    position: absolute;
    z-index: 3;

    top: 12px;
    left: 12px;

    padding: 8px 12px;

    border-radius: 8px;
    background: linear-gradient(135deg, var(--gold2), var(--gold));
    color: var(--navy);

    font-size: .68rem;
    font-weight: 900;
}

#offersGrid .offer-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;

    width: 100%;
    padding: 20px;
}

#offersGrid .offer-category {
    margin-bottom: 9px;

    color: var(--blue);
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

#offersGrid .offer-content h3 {
    width: 100%;
    margin: 0 0 12px;

    color: var(--navy);
    font-size: 1.35rem;
    line-height: 1.25;
}

#offersGrid .offer-content p {
    width: 100%;
    margin: 0 0 18px;

    color: var(--muted);
    font-size: .92rem;
}

#offersGrid .offer-whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 48px;

    margin-top: auto;
    padding: 12px 15px;

    border-radius: 10px;
    background: var(--navy);
    color: white;

    font-size: .9rem;
    font-weight: 800;
    text-align: center;
}

#offersGrid .offer-whatsapp-btn:hover {
    background: var(--navy2);
}

.offers-empty {
    flex: 1 0 100%;
    padding: 40px 20px;

    border-radius: 16px;
    background: white;
    color: var(--muted);

    text-align: center;
}

.offers-benefits {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));

    margin-top: 40px;

    overflow: hidden;
    border-radius: 16px;
    background: var(--navy);
}

.offers-benefits div {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    min-height: 75px;
    padding: 15px;

    border-right: 1px solid rgba(255, 255, 255, .12);

    color: white;
    font-size: .85rem;
    font-weight: 700;
    text-align: center;
}

.offers-benefits div:last-child {
    border-right: 0;
}

.offers-benefits span {
    display: grid;
    place-items: center;
    flex: 0 0 25px;

    width: 25px;
    height: 25px;

    border-radius: 50%;
    background: var(--gold2);
    color: var(--navy);
}

/* =====================================================
   CARRUSEL DE ENTREGAS
===================================================== */

.deliveries-film-section {
    width: 100%;
    padding: 85px 0;

    overflow: hidden;
    background: var(--navy);
    color: white;
}

.deliveries-film-header {
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 0 24px;
}

.deliveries-film-header h2 {
    margin-top: 10px;
    font-size: clamp(2.2rem, 5vw, 4rem);
}

.deliveries-film-header .kicker {
    color: var(--gold2);
}

.delivery-film {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.delivery-film::before,
.delivery-film::after {
    content: "";
    position: absolute;
    z-index: 5;

    top: 0;
    bottom: 0;

    width: 50px;
    pointer-events: none;
}

.delivery-film::before {
    left: 0;
    background: linear-gradient(90deg, var(--navy), transparent);
}

.delivery-film::after {
    right: 0;
    background: linear-gradient(-90deg, var(--navy), transparent);
}

.delivery-film-track {
    display: flex;
    align-items: stretch;

    width: max-content;
    gap: 22px;
    padding: 15px 0;

    animation: deliveryFilm 45s linear infinite;
    will-change: transform;
}

.delivery-film:hover .delivery-film-track {
    animation-play-state: paused;
}

.film-photo {
    position: relative;
    flex: 0 0 320px;

    width: 320px;
    height: 400px;

    overflow: hidden;
    border-radius: 16px;
    background: #0a2845;

    box-shadow: 0 15px 40px rgba(0, 0, 0, .25);
}

.film-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #0a2845;
}

.film-photo span {
    position: absolute;

    left: 15px;
    right: 15px;
    bottom: 15px;

    padding: 12px;

    border-radius: 8px;
    background: rgba(4, 22, 41, .82);
    color: white;

    font-weight: 700;
}

@keyframes deliveryFilm {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.film-testimonial {
    max-width: 850px;
    margin: 50px auto 0;
    padding: 0 25px;
    text-align: center;
}

.stars {
    color: var(--gold2);
    letter-spacing: .15em;
}

.film-testimonial blockquote {
    margin: 20px 0;
    font-size: clamp(1.3rem, 3vw, 2rem);
    font-weight: 600;
    line-height: 1.5;
}

.film-testimonial p {
    color: #9eb2c6;
}

/* =====================================================
   CONTACTO FINAL
===================================================== */

.cta-section {
    padding: 100px 20px;

    color: white;
    text-align: center;

    background:
        linear-gradient(
            rgba(4, 22, 41, .9),
            rgba(4, 22, 41, .9)
        ),
        url("https://images.unsplash.com/photo-1556912167-f556f1f39fdf?auto=format&fit=crop&w=1800&q=80")
        center / cover;
}

.cta-section span {
    color: var(--gold2);
    text-transform: uppercase;
    letter-spacing: .16em;
}

.cta-section h2 {
    margin: 20px auto 35px;
    font-size: clamp(2rem, 5vw, 4rem);
}

/* =====================================================
   HERO DE PAGINAS INTERNAS
===================================================== */

.page-hero {
    padding: 155px 24px 80px;

    color: white;
    text-align: center;

    background:
        radial-gradient(
            circle at 80% 20%,
            #1268a9,
            transparent 35%
        ),
        var(--navy);
}

.page-hero h1 {
    margin: 15px 0;
    font-size: clamp(3rem, 7vw, 5.5rem);
}

.page-hero p {
    color: #c8d7e5;
}

/* =====================================================
   CATALOGO - CATEGORIAS
===================================================== */

.catalog-section {
    padding-top: 55px;
}

.catalog-section .section-head > p {
    max-width: 430px;
    margin: 0;
    color: var(--muted);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
}

.category-card {
    position: relative;
    overflow: hidden;

    border-radius: 22px;
    background: white;
    box-shadow: 0 12px 35px rgba(4, 22, 41, .1);

    transition: .3s;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.category-image {
    position: relative;
    width: 100%;
    height: 380px;
    overflow: hidden;
    background: #eef3f8;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s;
}

.category-card:hover .category-image img {
    transform: scale(1.04);
}

.category-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    padding: 25px;
}

.category-info h3 {
    color: var(--navy);
    font-size: clamp(1.3rem, 2vw, 1.8rem);
}

.category-info .btn {
    flex-shrink: 0;
}

/* =====================================================
   CATALOGO - PRODUCTOS POR CATEGORIA
===================================================== */

.category-products-section {
    padding-top: 35px;
}

.category-products-section[hidden] {
    display: none;
}

.category-products-header {
    margin-bottom: 35px;
}

.category-products-header .kicker {
    display: block;
    margin-top: 25px;
}

.category-products-header h2 {
    margin-top: 10px;
    color: var(--navy);
    font-size: clamp(2.3rem, 5vw, 4rem);
}

.category-products-header p {
    max-width: 600px;
    color: var(--muted);
}

.back-categories {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 0;

    border: 0;
    background: transparent;
    color: var(--blue);

    font-size: .95rem;
    font-weight: 800;
    cursor: pointer;
}

.catalog-photo-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

.catalog-photo-card {
    overflow: hidden;
    border-radius: 18px;
    background: white;
    box-shadow: 0 10px 30px rgba(4, 22, 41, .09);
}

.catalog-photo {
    width: 100%;
    height: 370px;
    overflow: hidden;
    background: #f0f3f6;
}

.catalog-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.catalog-consult-btn {
    width: calc(100% - 28px);
    min-height: 52px;
    margin: 14px;

    border-radius: 10px;
    background: var(--navy);
    color: white;
}

.catalog-consult-btn:hover {
    background: var(--navy2);
}

.category-empty {
    padding: 60px 20px;

    border-radius: 18px;
    background: white;
    box-shadow: var(--shadow);

    text-align: center;
}

.category-empty p {
    color: var(--muted);
}

/* =====================================================
   BUSCADOR Y FILTROS
===================================================== */

.catalog-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 35px;
}

.search-box {
    padding: 12px 18px;

    border-radius: 8px;
    background: white;
    box-shadow: 0 4px 15px rgba(4, 22, 41, .06);
}

.search-box input {
    margin-left: 8px;
    border: 0;
    outline: 0;
    background: transparent;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filters button {
    padding: 10px 16px;

    border: 1px solid #dce4ec;
    border-radius: 99px;

    background: white;
    cursor: pointer;
}

.filters button.active {
    background: var(--navy);
    color: white;
}

.empty {
    display: none;
    text-align: center;
}

/* =====================================================
   HISTORIAS Y TESTIMONIOS
===================================================== */

.stories {
    display: flex;
    flex-direction: column;
    gap: 45px;
}

.story,
.story.reverse {
    display: flex;
    flex-direction: column;

    overflow: hidden;

    border-radius: 16px;
    background: white;
    box-shadow: var(--shadow);
}

.story img,
.story.reverse img {
    width: 100%;
    height: auto;
    max-height: 650px;
    object-fit: contain;
}

.story div {
    padding: 35px 45px;
}

.story time {
    color: var(--blue);
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.story h2 {
    margin: 12px 0;
    font-size: 2.2rem;
}

.story p {
    color: var(--muted);
}

.testimonial {
    padding: 42px;

    border-radius: 14px;
    background: var(--navy);
    color: white;
}

.testimonial blockquote {
    margin: 25px 0;
    font-size: 1.45rem;
    line-height: 1.5;
}

.testimonial p {
    color: #9eb2c6;
}

.testimonial.wide {
    width: 100%;
    padding: 60px 40px;
    text-align: center;
}

/* =====================================================
   PAGINA DE CONTACTO
===================================================== */

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
}

.contact-copy > p {
    color: var(--muted);
    font-size: 1.05rem;
}

.contact-items {
    display: grid;
    gap: 18px;
    margin-top: 35px;
}

.contact-items div {
    display: flex;
    flex-direction: column;

    padding-left: 16px;
    border-left: 3px solid var(--gold);
}

.contact-items span {
    color: var(--muted);
    font-size: .9rem;
}

.contact-form {
    display: grid;
    gap: 20px;

    padding: 35px;

    border-radius: 14px;
    background: white;
    box-shadow: var(--shadow);
}

.contact-form label {
    display: grid;
    gap: 8px;
    font-weight: 700;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 14px;

    border: 1px solid #dce4ec;
    border-radius: 7px;
}

.contact-form small {
    color: var(--muted);
    text-align: center;
}

/* =====================================================
   PANEL DE ADMINISTRACION
===================================================== */

.admin-body {
    min-height: 100vh;

    background:
        radial-gradient(
            circle at top right,
            #0b4d83,
            transparent 35%
        ),
        var(--navy);
}

.admin-login {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 25px;
}

.admin-login-card {
    width: 100%;
    max-width: 460px;

    padding: 45px;

    border-radius: 20px;
    background: white;
    box-shadow: 0 25px 70px rgba(0, 0, 0, .25);
}

.admin-login-card h1 {
    margin: 10px 0 15px;
    font-size: 2.3rem;
}

.admin-login-card p {
    margin-bottom: 30px;
    color: var(--muted);
}

.admin-login-card form,
.admin-upload-form {
    display: grid;
    gap: 20px;
}

.admin-login-card label,
.admin-upload-form label {
    display: grid;
    gap: 8px;
    font-weight: 700;
}

.admin-login-card input,
.admin-upload-form input {
    width: 100%;
    padding: 13px;

    border: 1px solid #dce4ec;
    border-radius: 8px;
}

.admin-login-card .btn {
    width: 100%;
}

.admin-login-card small {
    display: block;
    margin-top: 25px;
    color: var(--muted);
    text-align: center;
}

.admin-error {
    margin-bottom: 20px;
    padding: 12px 15px;

    border-radius: 8px;
    background: #ffe7e7;
    color: #a51d1d;
}

.admin-success {
    margin-bottom: 25px;
    padding: 15px 18px;

    border-radius: 8px;
    background: #dcf7e5;
    color: #176b38;
    font-weight: 700;
}

.admin-header {
    min-height: 75px;
    padding: 15px 5%;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    background: white;
    box-shadow: 0 5px 25px rgba(0, 0, 0, .12);
}

.admin-header div {
    display: flex;
    flex-direction: column;
}

.admin-header strong {
    color: var(--navy);
}

.admin-header span {
    color: var(--muted);
    font-size: .8rem;
}

.admin-header a {
    color: var(--blue);
    font-weight: 700;
}

.admin-panel {
    width: 100%;
    max-width: 1200px;
    margin: auto;
    padding: 70px 24px;
}

.admin-welcome {
    margin-bottom: 40px;
    color: white;
}

.admin-welcome .kicker {
    color: var(--gold2);
}

.admin-welcome h1 {
    margin: 10px 0;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
}

.admin-welcome p {
    color: #b8c9d9;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
}

.admin-card {
    min-height: 260px;
    padding: 35px;

    border-radius: 18px;
    background: white;
    box-shadow: 0 15px 40px rgba(0, 0, 0, .15);

    transition: transform .3s;
}

.admin-card:hover {
    transform: translateY(-6px);
}

.admin-card > span {
    display: block;
    margin-bottom: 30px;
    font-size: 2.5rem;
}

.admin-card h2 {
    margin-bottom: 12px;
    color: var(--navy);
}

.admin-card p {
    color: var(--muted);
}

.admin-support {
    display: flex;
    justify-content: space-between;

    margin-top: 50px;
    padding-top: 25px;

    border-top: 1px solid rgba(255, 255, 255, .15);
    color: #9eb2c6;
}

.admin-support strong {
    color: var(--gold2);
}

.admin-content-grid {
    display: grid;
    grid-template-columns: 380px minmax(0, 1fr);
    gap: 35px;
    align-items: start;
}

.admin-upload-form,
.admin-deliveries-list {
    padding: 30px;

    border-radius: 18px;
    background: white;
    box-shadow: 0 15px 40px rgba(0, 0, 0, .15);
}

.admin-upload-form h2,
.admin-deliveries-list h2 {
    margin-bottom: 5px;
    color: var(--navy);
}

.admin-photo-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 25px;
}

.admin-photo-card {
    overflow: hidden;
    border-radius: 12px;
    background: #f4f7fa;
}

.admin-photo-card img {
    width: 100%;
    height: 190px;
    object-fit: cover;
}

.admin-photo-card div {
    padding: 15px;
}

.admin-photo-card strong {
    color: var(--navy);
}

.admin-empty {
    color: var(--muted);
}

.admin-delete-btn {
    width: 100%;
    margin-top: 12px;
    padding: 11px 16px;

    border: 0;
    border-radius: 10px;

    background: #b42318;
    color: white;

    font-weight: 800;
    cursor: pointer;
}

/* =====================================================
   AYUDA DEL CATALOGO
===================================================== */

.catalog-help {
    width: 100%;
    padding: 90px 24px;

    background: linear-gradient(135deg, var(--navy), var(--navy2));
    color: white;
}

.catalog-help-content {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
}

.catalog-help h2 {
    margin: 15px 0;
    font-size: clamp(2rem, 5vw, 3.8rem);
}

.catalog-help p {
    max-width: 700px;
    margin: 0 auto 30px;

    color: #c8d7e5;
}

/* =====================================================
   FOOTER
===================================================== */

#footer {
    background: #031321;
    color: #e5edf5;
}

#footer .site-footer {
    width: 100%;
    padding: 28px 24px 16px;
}

#footer .footer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;

    max-width: 1000px;
    margin: 0 auto;
    padding-bottom: 22px;
}

#footer .footer-grid > div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
}

#footer .footer-grid h3 {
    margin: 0 0 5px;
    color: var(--gold);
    font-size: 17px;
}

#footer .footer-grid a,
#footer .footer-grid span,
#footer .footer-grid p {
    margin: 0;
    color: #e5edf5;
    font-size: 15px;
    line-height: 1.5;
    overflow-wrap: break-word;
}

#footer .copyright {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;

    max-width: 1000px;
    margin: 0 auto;
    padding-top: 15px;

    border-top: 1px solid rgba(255, 255, 255, .15);
}

#footer .copyright span,
#footer .copyright p {
    margin: 0;
    font-size: 13px;
}

#footer .jchdev-link {
    display: inline;
    color: var(--gold);
    font-weight: 800;
}

/* =====================================================
   WHATSAPP FLOTANTE
===================================================== */

.wa-float {
    position: fixed;
    z-index: 60;

    right: 20px;
    bottom: 20px;

    width: 54px;
    height: 54px;

    display: grid;
    place-items: center;

    border-radius: 50%;
    background: #25d366;
    color: white;

    font-size: 1.7rem;
    box-shadow: 0 8px 24px rgba(37, 211, 102, .3);
}

/* =====================================================
   VOLVER ARRIBA
===================================================== */

.back-to-top {
    position: fixed;
    z-index: 59;

    right: 22px;
    bottom: 88px;

    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 50%;

    background: var(--navy);
    color: var(--gold2);

    font-size: 24px;
    cursor: pointer;

    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);

    transition: .25s;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* =====================================================
   ANIMACIONES DE APARICION
===================================================== */

.reveal {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity .7s ease, transform .7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =====================================================
   TABLET
===================================================== */

@media (max-width: 1024px) {

    .hero-comercial-container {
        gap: 35px;
    }

    .hero-logo-orbit {
        max-width: 330px;
    }

    .category-image {
        height: 310px;
    }

    .catalog-photo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-content-grid {
        grid-template-columns: 1fr;
    }

}

/* =====================================================
   TABLET Y MENU MOVIL
===================================================== */

@media (max-width: 850px) {

    .site-header {
        height: 70px;
    }

    .header-logo-img,
    .logo-header img {
        height: 48px;
        max-width: 125px;
    }

    .menu-btn {
        display: block;
    }

    .nav {
        display: none;

        position: absolute;
        top: 70px;
        left: 0;
        right: 0;

        flex-direction: column;
        align-items: stretch;
        gap: 10px;

        padding: 20px;

        background: var(--navy);
        box-shadow: 0 15px 25px rgba(0, 0, 0, .2);
    }

    .nav.open {
        display: flex;
    }

    .nav a {
        padding: 12px;
        text-align: center;
    }

    .hero-comercial-container {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 35px;
    }

    .hero-comercial-logo {
        width: 100%;
    }

    .hero-logo-orbit {
        width: min(75vw, 320px);
    }

    .hero-comercial-content {
        text-align: center;
    }

    .hero-comercial-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-comercial-content .actions {
        justify-content: center;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #offersGrid .offer-card {
        flex-basis: calc((100% - 22px) / 2);
    }

    .offers-benefits {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .category-grid {
        gap: 20px;
    }

    .category-info {
        flex-direction: column;
        align-items: stretch;
    }

    .category-info h3 {
        text-align: center;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .admin-grid {
        grid-template-columns: 1fr;
    }

    .catalog-tools {
        flex-direction: column;
        align-items: stretch;
    }

}

/* =====================================================
   CELULARES
===================================================== */

@media (max-width: 600px) {

    .site-header,
    .site-header.scrolled,
    .site-header.inner {
        height: 68px;
        padding: 0 16px;
    }

    .header-logo-img,
    .logo-header img {
        height: 44px;
        max-width: 110px;
    }

    .nav {
        top: 68px;
    }

    body[data-page="inicio"] .hero.hero-comercial {
        min-height: auto;
        padding: 105px 18px 65px;
    }

    .hero-comercial-container {
        gap: 22px;
    }

    .hero-logo-orbit {
        width: min(70vw, 265px);
    }

    .hero-logo-name {
        margin-top: 2px;
        font-size: 1.5rem;
    }

    .hero-comercial-content h1 {
        font-size: clamp(2.2rem, 9vw, 3.3rem);
    }

    .hero-comercial-content p {
        font-size: 1rem;
    }

    .actions {
        flex-direction: column;
    }

    .actions .btn {
        width: 100%;
    }

    .scroll-cue {
        display: none;
    }

    .trust-strip {
        grid-template-columns: 1fr;
        width: 92%;
        margin: 0 auto 35px;
        padding: 12px 20px;
    }

    .trust-strip > div {
        padding: 18px 10px;
        border-right: 0;
        border-bottom: 1px solid #e5e9ee;
    }

    .trust-strip > div:last-child {
        border-bottom: 0;
    }

    .section {
        padding: 60px 18px;
    }

    .section-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .catalog-promo-section {
        padding: 50px 0;
    }

    .catalog-promo {
        border-radius: 20px;
    }

    .catalog-promo-action {
        left: 15px;
        right: 15px;
        bottom: 15px;
        justify-content: center;
    }

    .catalog-promo-action > span {
        display: none;
    }

    .catalog-promo-action strong {
        width: 100%;
        justify-content: center;
        padding: 12px;
        font-size: .82rem;
    }

    .offers-section {
        padding-top: 50px;
        padding-bottom: 60px;
    }

    .offers-title-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .offers-title-row h2 {
        font-size: 2.3rem;
    }

    #offersGrid {
        gap: 14px;
        padding-bottom: 25px;
    }

    #offersGrid .offer-card {
        flex: 0 0 84%;
    }

    #offersGrid .offer-image {
        height: 260px;
    }

    #offersGrid .offer-content {
        padding: 18px;
    }

    #offersGrid .offer-content h3 {
        font-size: 1.2rem;
    }

    .offers-benefits {
        grid-template-columns: 1fr;
        margin-top: 30px;
    }

    .offers-benefits div {
        justify-content: flex-start;
        min-height: 62px;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, .12);
        text-align: left;
    }

    .offers-benefits div:last-child {
        border-bottom: 0;
    }

    .deliveries-film-section {
        padding: 65px 0;
    }

    .deliveries-film-header {
        padding: 0 18px;
    }

    .film-photo {
        flex-basis: 260px;
        width: 260px;
        height: 340px;
    }

    .delivery-film::before,
    .delivery-film::after {
        width: 25px;
    }

    .category-grid,
    .catalog-photo-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .category-image {
        height: 300px;
    }

    .category-info {
        padding: 18px;
    }

    .catalog-photo {
        height: auto;
        aspect-ratio: 4 / 5;
    }

    .stories {
        gap: 28px;
    }

    .story div {
        padding: 25px 20px;
    }

    .story h2 {
        font-size: 1.6rem;
    }

    .contact-form {
        padding: 24px;
    }

    .page-hero {
        padding: 125px 18px 65px;
    }

    .admin-login-card {
        padding: 30px 22px;
    }

    .admin-panel {
        padding: 50px 18px;
    }

    .admin-photo-grid {
        grid-template-columns: 1fr;
    }

    .admin-support {
        flex-direction: column;
        gap: 12px;
    }

    #footer .site-footer {
        padding: 24px 18px 18px;
    }

    #footer .footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    #footer .copyright {
        flex-direction: column;
        align-items: flex-start;
    }

    .wa-float {
        right: 15px;
        bottom: 18px;
        width: 48px;
        height: 48px;
    }

    .back-to-top {
        right: 17px;
        bottom: 78px;
        width: 44px;
        height: 44px;
    }

}

/* =====================================================
   ACCESIBILIDAD
===================================================== */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    .hero-logo-orbit,
    .hero-logo-orbit::before,
    .hero-spark,
    .scroll-cue,
    .catalog-promo-shine,
    .delivery-film-track {
        animation: none;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

}

/* ==========================================
   CARRUSEL DE MARCAS - COMERCIAL UNO
========================================== */

.marcas-section {
    width: 100%;
    height: 60px;
    background: #061a32;
    overflow: hidden;
    display: flex;
    align-items: center;
    position: relative;
}

.marcas-section .marcas-track {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    width: max-content;
    flex: 0 0 auto;
    animation: marcasMovimiento 35s linear infinite;
}

.marcas-section .marcas-grupo {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    flex: 0 0 auto;
    align-items: center;
    gap: 45px;
    padding-right: 45px;
}

.marcas-section .marcas-grupo span {
    display: inline-block;
    flex: 0 0 auto;
    color: #ffffff;
    font-size: 18px;
    font-weight: 800;
    white-space: nowrap;
}

.marcas-section .marcas-grupo span:nth-child(3n) {
    color: #f1d77b;
}

@keyframes marcasMovimiento {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@media (max-width: 600px) {
    .marcas-section {
        height: 50px;
    }

    .marcas-section .marcas-grupo {
        gap: 28px;
        padding-right: 28px;
    }

    .marcas-section .marcas-grupo span {
        font-size: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .marcas-section .marcas-track {
        animation: none;
    }
}