:root {
    --rojo: #e81713;
    --rojo-oscuro: #c5100d;
    --rojo-suave: #fff1f0;
    --azul: #06419d;
    --azul-oscuro: #032d70;
    --azul-profundo: #021f4f;
    --azul-suave: #edf4ff;
    --blanco: #fcfffb;
    --blanco-puro: #ffffff;
    --gris-claro: #f4f6f8;
    --gris: #e5e9ee;
    --gris-texto: #59636e;
    --negro: #17202a;
    --sombra: 0 15px 40px rgba(3, 45, 112, 0.10);
    --sombra-fuerte: 0 20px 50px rgba(3, 45, 112, 0.16);
}

/* RESET */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "DM Sans", sans-serif;
    background: var(--blanco);
    color: var(--negro);
    overflow-x: hidden;
}

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

button {
    font-family: inherit;
}

/* NAVBAR */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(252, 255, 251, 0.94);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(6, 65, 157, 0.08);
    transition: 0.3s ease;
}

.nav-container {
    max-width: 1250px;
    height: 85px;
    margin: auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* LOGO */

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    width: 90px;
    height: auto;
    display: block;
}

/* MENU */

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

.nav-menu a {
    position: relative;
    font-size: 14px;
    font-weight: 600;
    color: var(--azul);
    transition: 0.3s ease;
}

/* Línea debajo de los enlaces */

.nav-menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0;
    height: 2px;
    background: var(--rojo);
    transition: 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--rojo);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

/* BOTÓN NAVBAR */

.nav-button {
    background: var(--rojo);
    color: var(--blanco-puro);
    padding: 13px 24px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(232, 23, 19, 0.20);
    transition: 0.3s ease;
}

.nav-button:hover {
    background: var(--rojo-oscuro);
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(232, 23, 19, 0.28);
}

/* MENÚ MÓVIL */

.menu-button {
    display: none;
    border: none;
    background: none;
    color: var(--azul);
    font-size: 27px;
    cursor: pointer;
}

/* HERO */

.hero {
    min-height: 550px;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 85% 40%,
            rgba(232, 23, 19, 0.35),
            transparent 35%
        ),
        linear-gradient(
            120deg,
            #032d70,
            #06419d 55%,
            #071d4d
        );
}

/* SLIDES */

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.8s ease,
        visibility 0.8s ease;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

/* FONDO */

.hero-background {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.04);
    transition: transform 7s ease;
}

.hero-slide.active .hero-background {
    transform: scale(1);
}

/* TEXTO */

.hero-text {
    position: relative;
    z-index: 2;
    flex: 1 1 480px;
}

.hero-tag {
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 18px;
    display: block;
}

.hero-text h1 {
    max-width: 650px;
    font-family: "Playfair Display", serif;
    font-size: clamp(45px, 5vw, 70px);
    line-height: 1.05;
    color: white;
    margin-bottom: 25px;
}

.hero-text h1 span {
    display: block;
    color: #ffffff;
}

.hero-text p {
    max-width: 520px;
    color: rgba(255,255,255,0.82);
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 35px;
}

/* IMAGEN */

.hero-image {
    position: relative;
    flex: 0 1 460px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    z-index: 2;
}

.hero-image img {
    width: 100%;
    max-width: 520px;
    height: 430px;
    object-fit: cover;
    border-radius: 30px;
    border: 6px solid rgba(255,255,255,0.9);
    box-shadow:
        0 25px 60px rgba(0,0,0,0.30);
    animation: floatingImage 6s ease-in-out infinite;
    transition: transform 0.5s ease;
}


@keyframes floatingImage {

    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.hero-image::before {
    content: "";
    position: absolute;
    width: 430px;
    height: 430px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    z-index: -1;
    animation: imageCircle 8s ease-in-out infinite;
}

.hero-image:hover img {
    transform: scale(1.03);
}

/* CÍRCULO DETRÁS DE LA IMAGEN */

@keyframes imageCircle {

    0%, 100% {
        transform: scale(1);
    }

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

/* HERO 1*/

.hero-bg-1 {
    background:
        linear-gradient(
            120deg,
            rgba(2, 31, 79, 0.97) 0%,
            rgba(3, 33, 82, 0.912) 42%,
            rgba(232, 23, 19, 0.78) 75%,
            rgba(232, 23, 19, 0.80) 100%
        );
    background-size: cover;
    background-position: right;
}

/* HERO 2*/

.hero-bg-2 {
    background:
        linear-gradient(
            120deg,
            rgba(232, 23, 19, 0.94) 0%,
            rgba(232, 23, 19, 0.78) 42%,
            rgba(2, 31, 79, 0.97) 65%,
            rgba(3, 33, 82, 0.912) 100%
        );
    background-size: cover;
    background-position: right;
}

/* HERO 3 */

.hero-bg-3 {
    background:
        linear-gradient(
            100deg,
            rgba(232, 23, 19, 0.786) 0.01%,
            rgba(3, 31, 79, 0.97) 75%,
            rgba(3, 33, 82, 0.97) 70%,
            rgba(3, 14, 67, 0.786) 100%
        );
    background-size: cover;
    background-position: right;
}

/* DECORACIÓN DEL HERO */

.hero::before {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    right: -180px;
    bottom: -250px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.15);
    z-index: 2;
    pointer-events: none;
}

.hero::after {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    right: -80px;
    bottom: -150px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.10);
    z-index: 2;
    pointer-events: none;
}

/* CONTENIDO HERO */

.hero-content {
    position: relative;
    z-index: 5;
    max-width: 1250px;
    height: 100%;
    margin: auto;
    padding: 150px 30px 80px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

/* TAG */

.hero-tag,
.section-tag {
    display: inline-block;
    font-size: 11px;
    letter-spacing: 2px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 18px;
}

/* pequeña línea antes del tag */

.hero-tag::before,
.section-tag::before {
    content: "";
    display: inline-block;
    width: 28px;
    height: 2px;
    margin-right: 10px;
    vertical-align: middle;
    background: var(--rojo);
}

/* TITULO */

.hero h1 {
    max-width: 730px;
    font-family: "Playfair Display", serif;
    font-size: clamp(45px, 6vw, 75px);
    line-height: 1.04;
    color: var(--blanco-puro);
    margin-bottom: 25px;
}

.hero h1 span {
    display: block;
    color: #ffffff;
}

/* TEXTO */

.hero p {
    max-width: 570px;
    color: rgba(255,255,255,0.84);
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 35px;
}

/* BOTONES HERO */

.hero-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* PRINCIPAL */

.btn-primary {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--rojo);
    color: var(--blanco-puro);
    padding: 16px 25px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    transition: 0.3s ease;
}

.btn-primary span {
    font-size: 20px;
    transition: 0.3s ease;
}

.btn-primary:hover {
    background: var(--rojo-oscuro);
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.20);
}

.btn-primary:hover span {
    transform: translateX(5px);
}

/* SECCIONES GENERALES */

section {
    padding: 100px 30px;
}

.section-header {
    max-width: 700px;
    margin: 0 auto 55px;
    text-align: center;
}

.section-header .section-tag {
    color: var(--azul);
}

/* ================= ALMACENES Y HORARIOS ================= */

.branches-section {
    background: var(--gris-claro);
}

.branches-grid {
    max-width: 1250px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
}

.branch-card {
    background: var(--blanco-puro);
    border: 1px solid var(--gris);
    border-radius: 20px;
    padding: 32px;
    box-shadow: var(--sombra);
    transition: 0.3s ease;
}

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

.branch-card h3 {
    font-family: "Playfair Display", serif;
    font-size: 19px;
    line-height: 1.35;
    color: var(--negro);
    margin-bottom: 22px;
}

.branch-info {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
}

.branch-info i {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--rojo-suave);
    color: var(--rojo);
    font-size: 14px;
}

.branch-info p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--gris-texto);
    padding-top: 6px;
}

/* MAPA */

.branch-map {
    position: relative;
    margin-top: 22px;
    height: 220px;
    border-radius: 14px;
    overflow: hidden;
}

.branch-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.map-open-btn {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--blanco-puro);
    color: var(--azul);
    font-size: 12px;
    font-weight: 700;
    padding: 9px 16px;
    border-radius: 50px;
    box-shadow: var(--sombra);
    transition: 0.3s ease;
}

.map-open-btn i {
    font-size: 11px;
}

.map-open-btn:hover {
    background: var(--azul);
    color: white;
}

/* TARJETA PENDIENTE */

.branch-card--pending {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    text-align: left;
    border: 2px dashed var(--gris);
    box-shadow: none;
}

.branch-card--pending:hover {
    transform: none;
    box-shadow: none;
}

.branch-card--pending > i {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--azul-suave);
    color: var(--azul);
    font-size: 20px;
    margin-bottom: 20px;
}

.branch-card--pending p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--gris-texto);
}

/* DECORACIONES */

.about-decoration {
    position: absolute;
    width: 550px;
    height: 550px;
    border: 1px solid rgba(17, 17, 34, 0.497);
    border-radius: 50%;
    right: -130px;
    top: -100px;
    animation: floatingCircle 8s ease-in-out infinite;
}

.about-decoration::after {
    content: "";
    position: absolute;
    width: 330px;
    height: 330px;
    border: 1px solid rgba(17, 17, 19, 0.485);
    border-radius: 50%;
    top: 110px;
    left: 110px;
}

@keyframes floatingCircle {

    0% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(20px) rotate(5deg);
    }

    100% {
        transform: translateY(0) rotate(0deg);
    }
}

/* FOOTER */

.footer {
    background:
        linear-gradient(
            150deg,
            var(--azul-profundo),
            var(--azul-profundo),
            var(--rojo-oscuro)
        );

    color: white;
    padding: 40px 30px 15px;
    position: relative;
    overflow: hidden;
}

/* DECORACIÓN ANIMADA DEL FOOTER */

.footer-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

/* Círculos */

.shape {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.025);
    pointer-events: none;
}

/* Círculo 1 */

.shape-1 {
    width: 420px;
    height: 420px;
    right: -120px;
    top: -180px;
    animation: floatShape1 4s ease-in-out infinite;
}

/* Círculo 2 */

.shape-2 {
    width: 280px;
    height: 280px;
    right: 230px;
    bottom: -170px;
    border-color: rgba(232, 19, 19, 0.15);
    animation: floatShape2 4s ease-in-out infinite;
}

/* Círculo 3 */

.shape-3 {
    width: 180px;
    height: 180px;
    left: 40%;
    top: 40px;
    border-color: rgba(192, 7, 7, 0.16);
    animation: floatShape3 6s ease-in-out infinite;
}

/* Círculo 4 */

.shape-4 {
    width: 100px;
    height: 100px;
    left: 55%;
    bottom: 20px;
    border-color: rgba(232, 23, 19, 0.12);
    animation: floatShape4 5s ease-in-out infinite;
}

/* Círculo 5 */

.shape-5 {
    width: 260px;
    height: 260px;
    left: -100px;
    top: 60px;
    border-color: rgba(16, 0, 245, 0.212);
    animation: floatShape5 4s ease-in-out infinite;
}

/* ANIMACIONES */

@keyframes floatShape1 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(-30px, 25px) rotate(8deg);
    }
}

@keyframes floatShape2 {

    0%,
    100% {
        transform: translate(0, 0);
    }
    
    50% {
        transform: translate(35px, -25px);
    }
}

@keyframes floatShape3 {
    
    0%,
    100% {
        transform: translateY(0);
    }
    
    50% {
        transform: translateY(35px);
    }
}


@keyframes floatShape4 {
    
    0%,
    100% {
        transform: translate(0, 0);
    }

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

@keyframes floatShape5 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(25px, 20px) rotate(-6deg);
    }
}

/* Línea roja decorativa */

.footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: 
        linear-gradient(
            50deg,
            var(--rojo),
            var(--rojo-oscuro),
            var(--azul),
            var(--azul)
        );
}

.footer-container {
    max-width: 1250px;
    margin: auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
    position: relative;
    z-index: 2;
}

/* LOGO */

.footer-brand img {
    width: 150px;
    margin-bottom: 20px;
}

.footer-brand p {
    color: rgba(255,255,255,0.60);
    max-width: 280px;
    line-height: 1.7;
    font-size: 13px;
}

/* COLUMNAS */

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-column h3 {
    color: white;
    font-size: 13px;
    margin-bottom: 10px;
}

.footer-column a {
    color: rgba(255,255,255,0.58);
    font-size: 12px;
    transition: 0.3s ease;
}

.footer-column a:hover {
    color: white;
    padding-left: 4px;
}

/* FOOTER BOTTOM */

.footer-bottom {
    max-width: 1250px;
    margin: 50px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.12);
    position: relative;
    z-index: 2;
}

.footer-bottom p {
    color: rgba(255,255,255,0.40);
    font-size: 11px;
}

.social-links {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    margin-top: 15px;
}

.social-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: white;
    font-size: 20px;
    transition: 
        transform 0.3s ease,
        background 0.3s ease,
        color 0.3s ease,
        box-shadow 0.3s ease;
}

.social-link:hover {
    transform: translateY(-6px);
    background: #e81713;
    color: white;
    box-shadow: 0 10px 20px rgba(232, 23, 19, 0.30);
}

/* WHATSAPP FLOTANTE */

.floating-whatsapp {
    position: fixed;
    right: 25px;
    bottom: 25px;
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #25D366;
    color: white;
    font-size: 25px;
    z-index: 900;
    box-shadow: 0 8px 30px rgba(0,0,0,0.20);
    transition: 0.3s ease;
    animation: whatsappPulse 2.5s infinite;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    animation: none;
}

@keyframes whatsappPulse {

    0% {
        box-shadow:
            0 0 0 0 rgba(37,211,102,0.40);
    }

    70% {
        box-shadow:
            0 0 0 14px rgba(37,211,102,0);
    }

    100% {
        box-shadow:
            0 0 0 0 rgba(37,211,102,0);
    }
}

/* RESPONSIVE - TABLETS*/

@media (max-width: 1000px) {

    .nav-menu {
        gap: 18px;
    }

    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

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

}

/*  RESPONSIVE - CELULARES*/

@media (max-width: 750px) {

    /* NAV */

    .nav-menu,
    .nav-button {
        display: none;
    }

    .nav-menu.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 85px;
        left: 0;
        width: 100%;
        background: var(--blanco-puro);
        padding: 20px 30px;
        gap: 18px;
        box-shadow: var(--sombra);
    }

    .menu-button {
        display: block;
    }

    /* HERO */

    .hero {
        height: 650px;
    }

    .hero h1 {
        font-size: 45px;
    }

    .hero p {
        font-size: 15px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
    }

    .slider-arrow {
        display: none;
    }

    /* SECCIONES */

    section {
        padding: 75px 20px;
    }

    /* CATEGORÍAS */

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

    /* ALMACENES */

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

    /* PRODUCTOS */

    .products-heading {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

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

    /* ENVÍOS */

    .shipping-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .shipping-icon {
        margin: auto;
    }

    .shipping-button {
        justify-self: center;
    }

    /* CONTACTO */

    .contact-container {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    /* FOOTER */

    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    /* HERO - SLIDE (imagen debajo del texto, centrada) */

    .hero {
        min-height: auto;
    }

    .hero-content {
        min-height: 700px;
        padding: 120px 25px 100px;
        gap: 40px;
        text-align: center;
        justify-content: center;
    }

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

    .hero-image {
        justify-content: center;
    }

    .hero-image img {
        max-width: 400px;
        height: 300px;
    }

    .hero-image::before {
        width: 300px;
        height: 300px;
    }

}

/* RESPONSIVE - CELULARES PEQUEÑOS */

@media (max-width: 450px) {

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

    .footer-container {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 39px;
    }

    .hero-content {
        padding-left: 20px;
        padding-right: 20px;
    }

}