/* =====================================================
   RESET GLOBAL
===================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #ebebeb;
    color: #080a46;
}

/* =====================================================
   NAVBAR
===================================================== */
.navbar {
    position: sticky;
    top: 0;
    width: 100%;
    background: rgba(255,255,255,0.65);
    backdrop-filter: blur(4px);
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

/* ---- CONTROL ABSOLUTO DE LOGOS ---- */
/* DESKTOP (estado base) */
.logo-desktop {
    display: block;
    height: 40px;
}

.logo-mobile {
    display: none;
    height: 40px;
}

/* Menú */
.nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-menu li {
    display: inline-block;
}

.nav-menu a {
    text-decoration: none;
    color: #000;
    font-size: 15px;
    font-weight: 500;
}

.btn-whatsapp {
    background: #25D366;
    color: #fff !important;
    padding: 8px 14px;
    border-radius: 4px;
    font-size: 14px;
}

/* =====================================================
   HERO / CARRUSEL (FADE IN / FADE OUT)
===================================================== */
.carousel {
    position: relative;
    height: 60vh;
    overflow: hidden;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    animation: fade 28s infinite;
}

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

/* 7 SLIDES */
.slide:nth-child(1) { animation-delay: 0s; }
.slide:nth-child(2) { animation-delay: 4s; }
.slide:nth-child(3) { animation-delay: 8s; }
.slide:nth-child(4) { animation-delay: 12s; }
.slide:nth-child(5) { animation-delay: 16s; }
.slide:nth-child(6) { animation-delay: 20s; }
.slide:nth-child(7) { animation-delay: 24s; }

@keyframes fade {
    0% { opacity: 0; }
    5% { opacity: 1; }
    25% { opacity: 1; }
    30% { opacity: 0; }
    100% { opacity: 0; }
}

/* =====================================================
   SECCIONES GENERALES
===================================================== */
.section {
    padding: 10px 10px;
    text-align: center;
}

/* =====================================================
   QUIÉNES SOMOS (80 / 20)
===================================================== */
.quienes-grid {
    max-width: 1200px;
    margin: auto;
    display: flex;
    gap: 40px;
    align-items: center;
}

.quienes-text {
    width: 80%;
    text-align: left;
}

.quienes-img {
    width: 20%;

}

.quienes-img img {
    border-radius: 16px;
    width: 100%;
    height: auto;
}

/* =====================================================
   VALOR PROPUESTO (20 / 80)
===================================================== */
.valor {
    max-width: 1200px;
    margin: auto;
    display: flex;
    gap: 40px;
    align-items: center;
    padding: 60px 20px;
}

.valor-img {
    width: 20%;
}

.valor-img img {
    width: 100%;
}

.valor-text {
    width: 80%;
    text-align: left;
}
/* =====================================================
   PRODUCTOS – TAMAÑO REDUCIDO + MÁS SEPARACIÓN
===================================================== */

.productos-grid {
    background: #8dc73f;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1px; /* +20% respecto a 15px */
    margin: 0px 0px 0px;
}

.productos-grid img {
    
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 24px;
    object-fit: cover;

    /* ↓ reducción real del 30% */
    transform: scale(0.65);

    transition: transform 0.3s ease;
}

/* Hover conservado y corregido */
.productos-grid img:hover {
    transform: scale(0.85); /* 0.7 + efecto hover */
}


/* =====================================================
   MARQUESINA – LOOP INFINITO REAL + PAUSA HOVER
===================================================== */
.marquee {
    width: 100%;
    overflow: hidden;
    margin-top: 40px;
}

.marquee-track {
    display: flex;
    align-items: center;
    gap: 40px;
    width: max-content;

    animation: marquee 30s linear infinite;
}

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

.marquee a {
    display: flex;
    align-items: center;
}

.marquee img {
    height: 60px;
    width: auto;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.marquee a:hover img {
    filter: grayscale(0%);
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* =====================================================
   SERVICIOS (CARTAS GIRATORIAS)
===================================================== */
.services-cards {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.card {
    width: 220px;
    perspective: 1000px;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 220px;
    transform-style: preserve-3d;
    transition: transform 0.6s;
}

.card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
}

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

.card-back {
    background: #061B49;
    color: #fff;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    text-align: center;
}

/* =====================================================
   FOOTER – REDES DERECHA + COPYRIGHT CENTRADO
===================================================== */
footer {
    background: #061B49;
    position: relative;
    padding: 30px 20px 20px;
    text-align: center;
}

/* Redes sociales */
.footer-social {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);

    display: flex;
    gap: 20px;
}

.footer-social img {
    width: 28px;
    height: auto;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.footer-social a:hover img {
    transform: scale(1.15);
    opacity: 0.8;
}

/* Copyright siempre centrado */
footer .copyright {
    font-size: 14px;
    opacity: 0.7;
}
/* =====================================================
   FOOTER – TEXTO EN BLANCO
===================================================== */
footer,
footer p,
footer span,
footer small,
footer a {
    color: #ffffff;
}


/* =====================================================
   AJUSTE ESPACIADO QUIÉNES SOMOS / VALOR PROPUESTO
===================================================== */
#quienes {
    padding-bottom: 5px;
}

#valor {
    padding-top: 5px;
}


/* =====================================================
   TÍTULOS PRODUCTOS Y SERVICIOS
===================================================== */
#productos h2,
#servicios h2 {
    text-align: left;
    font-size: calc(2em + 2px);
}
/* =====================================================
   AJUSTE TIPOGRAFÍA – QUIÉNES SOMOS / VALOR PROPUESTO
===================================================== */

#quienes p {
    font-size: 18px;
}
#valor p {
    font-size: 18px;
}


/* ================= MOBILE ================= */
@media (max-width: 768px) {

    .footer-social {
        position: static;
        transform: none;
        justify-content: center;
        margin-bottom: 15px;
    }
}

/* =====================================================
   OFFSET SCROLL LOGO NAVBAR (SOLO DESKTOP)
===================================================== */
@media (min-width: 769px) {
    #inicio {
        scroll-margin-top: 80px;
    }
}


/* =====================================================
   MOBILE – AJUSTES EXCLUSIVOS (NO AFECTA DESKTOP)
===================================================== */
@media (max-width: 768px) {

    /* ================= BASE ================= */
    body {
        background: #232323;
        color: #fff;
        text-align: center;
    }

    p,
    h1, h2, h3, h4, h5, h6 {
        text-align: center;
    }

    /* ================= NAVBAR ================= */
    .navbar {
        background: rgba(10,48,102,0.65);
    }

    .nav-container {
        padding: 12px 16px;
    }

    /* Logo */
    .logo-desktop {
        display: none !important;
    }

    .logo-mobile {
        display: block !important;
        height: 34px;
    }

    /* Ocultar menú */
    .nav-menu {
        display: none !important;
    }

    /* Botón WhatsApp visible */
    .btn-whatsapp {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        background: #25D366;
        color: #fff !important;
        padding: 8px 12px;
        border-radius: 4px;
        font-size: 13px;
        min-width: 90px;
        white-space: nowrap;
    }

    /* ================= HERO ================= */
    .carousel {
        height: 42vh;
    }

    /* ================= QUIÉNES SOMOS ================= */
    .quienes-grid {
        flex-direction: column;
    }

    .quienes-text {
        width: 100%;
        text-align: center;
    }

    .quienes-img {
        display: none;
    }

    /* ================= VALOR PROPUESTO ================= */
    .valor {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .valor-text {
        width: 100%;
        text-align: center;
    }

    .valor-img {
        width: 100%;
    }

    .valor-img img {
        max-width: 200px;
        margin: auto;
    }

    /* ================= PRODUCTOS ================= */
    #productos h2 {
        text-align: center;
    }

    .productos-grid {
        grid-template-columns: 1fr !important;
        gap: 10px;
        margin: 20px 0;
        justify-items: center;
    }

    .productos-grid img {
        width: 70%;
        max-width: 260px;
        transform: scale(0.7);
    }

    /* ================= MARQUESINA ================= */
    .marquee img {
        
        border-radius: 4px;
        height: 50px;
            }

    /* ================= SERVICIOS ================= */
    #servicios h2 {
        text-align: center;
    }

    .services-cards {
        gap: 10px;
        justify-content: center;
    }

    .card {
        width: 100%;
        max-width: 320px;
    }

    .card-inner {
        height: 240px;
    }

    .card-back {
        padding: 15px;
        text-align: center;
    }

    /* ================= FOOTER ================= */
    footer {
        background: #061B49;
        color: #fff;
        text-align: center;
    }

    .footer-social {
        position: static;
        transform: none;
        justify-content: center;
        margin-bottom: 15px;
    }

    footer * {
        color: #fff;
    }
}
