/* Design System */
:root {
    --primary-color: #E94761;
    --secondary-color: #003B71;
    --bg-light: #F9F9F9;
    --text-dark: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --font-main: 'Outfit', sans-serif;
    --font-secondary: 'Inter', sans-serif;
    --spacing-xs: 10px;
    --spacing-sm: 20px;
    --spacing-md: 40px;
    --spacing-lg: 60px;
    --border-radius: 20px;
    --shadow: 0 10px 30px rgba(0,0,0,0.05);
}

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

body {
    font-family: var(--font-main);
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
}

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

ul {
    list-style: none;
}

/* Section Spacing */
.section {
    padding: var(--spacing-lg) 0;
}

/* Top Bar */
.top-bar {
    background-color: #3573B9; /* Azul más similar a la imagen */
    color: var(--white);
    text-align: center;
    padding: 12px 0; /* Más gruesa */
    font-size: 13px; /* Letras más grandes */
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.top-bar i {
    margin: 0 5px;
}

/* Navbar */
.navbar {
    padding: 10px 0;
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 8px solid var(--primary-color);
}

.nav-content {
    display: flex;
    justify-content: flex-start; /* Alinear a la izquierda para pegar nav links al logo */
    align-items: center;
}

.nav-left {
    display: flex;
    align-items: center;
}

.nav-center {
    display: flex;
    align-items: center;
    margin-left: 30px; /* Espacio entre logo y nav links */
}

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

.nav-link {
    color: var(--text-dark);
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: capitalize;
    transition: opacity 0.3s;
}

.nav-link:hover {
    opacity: 0.7;
}

.nav-btn-active {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 6px 14px;
    border-radius: 6px;
    font-weight: 600;
}

.nav-btn-active:hover {
    color: var(--white);
    opacity: 0.9;
}

.nav-right {
    display: flex;
    align-items: center;
    margin-left: auto; /* Empujar estos íconos al borde derecho */
    gap: 15px;
}

/* Responsive Hide/Show classes */
@media (max-width: 768px) {
    .desktop-menu {
        display: none;
    }
    
    .nav-content {
        position: relative;
        min-height: 55px; /* Altura mínima para que el logo quepa */
    }
    
    .logo {
        position: absolute;
        left: 50%;
        top: calc(50% + 3px); /* Bajado ligeramente para que se vea perfectamente centrado */
        transform: translate(-50%, -50%);
    }
    
    .logo img {
        height: 45px; /* Ligeramente más pequeño en móvil para que no choque */
    }
}
@media (min-width: 769px) {
    .mobile-only {
        display: none;
    }
    .top-bar {
        font-size: 16px; /* Letras un poco más grandes en PC */
    }
}

.logo img {
    height: 75px; /* Logo MÁS grande en PC */
}

.nav-icon-btn {
    background: none;
    border: none;
    font-size: 18px;
    color: var(--text-dark);
    cursor: pointer;
    padding: 5px;
}

/* Hero & Video */
.hero {
    position: relative;
    width: 100%;
}

#video-container-custom {
    position: relative;
    width: 100%;
    padding-top: 38.77%; /* Aspect ratio 2704:1048 */
    background-color: var(--primary-color);
}

#video-container-custom video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wave-container {
    background-color: var(--white);
    margin-top: -5px; /* Prevent gaps */
    position: relative;
    z-index: 2;
}

.wave-container svg {
    display: block;
    width: 100%;
    height: auto;
}

/* SVG Banner */
.svg-banner {
    background-color: #ffffff !important;
    padding: 0; /* Remove padding to span full width */
    line-height: 0;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
    overflow: hidden; /* Ensure no scrollbars */
}

.full-banner {
    width: 100%;
    max-width: 100%; /* Spans full width on desktop */
    height: auto;
    display: block;
    margin: 0;
}

/* Typing Effect Bar */
.cta-bar {
    background-color: var(--secondary-color);
    padding: 25px 0;
    text-align: center;
    color: var(--white);
}

.typing-text {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.3;
    text-align: center;
    font-family: var(--font-main);
}

#changing-word {
    margin-left: 6px;
}

.cursor {
    display: inline-block;
    width: 3px;
    height: 1.2em; /* Ensure height matches text */
    background-color: var(--white);
    margin-left: 4px;
    vertical-align: middle;
    animation: blink 0.8s infinite;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}

@media (max-width: 768px) {
    .typing-text {
        font-size: 1.2rem;
    }
}

/* Social Proof Section */
.social-proof {
    background-color: #ffffff;
    padding: 30px 0;
    border-bottom: 1px solid #eaeaea;
}

.social-proof-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.sp-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    flex: 1;
    min-width: 130px;
}

.sp-logo {
    height: 28px;
    object-fit: contain;
    margin-bottom: 4px;
}

.sp-logo-composite {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 28px;
    margin-bottom: 4px;
    font-size: 1.15rem;
    font-weight: 800;
    color: #1a1c29;
    font-family: 'Inter', sans-serif;
}

.sp-logo-composite svg {
    height: 24px;
    width: auto;
}

.sp-rating {
    font-size: 0.8rem;
    color: #444;
}

.sp-stars {
    color: #FFA41C;
    font-size: 0.9rem;
    margin-top: 2px;
}

@media (max-width: 768px) {
    .social-proof-grid {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 15px;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }
    .social-proof-grid::-webkit-scrollbar {
        display: none;
    }
    .sp-item {
        flex: 0 0 auto;
        scroll-snap-align: center;
        min-width: 140px;
    }
}

/* Categories */
.categories {
    background-color: #F8F8F8;
    padding: 25px 0;
}

.category-grid {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    gap: 15px;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE/Edge */
}

.category-grid::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto; /* Permite que mantengan su tamaño original en slider */
    min-width: 100px; /* Tamaño mínimo para forzar el slider en móviles */
}

.category-circle {
    width: 95px;
    height: 95px;
    border-radius: 50%;
    overflow: hidden;
}

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

.category-item p {
    font-weight: 800;
    font-size: 0.85rem;
    color: #1a1a1a;
    text-align: center;
    line-height: 1.2;
    text-transform: capitalize;
}



/* Product Section */
.products {
    background-color: var(--white);
    padding: 20px 0;
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    padding: 15px;
}

.product-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 900;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(233, 71, 97, 0.3);
}

.product-image {
    aspect-ratio: 1/1;
    overflow: hidden;
}

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

.product-info {
    padding: 12px 5px;
    text-align: center;
}

.product-info h3 {
    font-size: 0.95rem;
    font-weight: 800;
    margin-bottom: 4px;
    color: #000;
}

.product-info .price {
    color: var(--primary-color);
    font-weight: 900;
    font-size: 1.1rem;
    margin: 5px 0;
}

.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.8rem;
    font-weight: 400;
    margin-left: 5px;
}

.buy-btn {
    width: 100%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 4px;
    font-weight: 900;
    font-size: 0.85rem;
    margin-top: 10px;
    cursor: pointer;
}

/* Trust Section */
.trust {
    background-color: #ffffff;
    padding: 60px 0;
    margin: 0;
    border-top: 1px solid #eee;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.trust-icon {
    margin-bottom: 25px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.trust-icon img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.trust-item h3 {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: #000;
    line-height: 1.3;
}

.trust-item p {
    font-size: 1.05rem; /* Párrafos un poco más grandes */
    color: #121212; /* Nuevo color oscuro */
    line-height: 1.6;
    font-weight: 500;
}

.trust-item p strong {
    font-weight: 800;
    color: #121212; /* Ajustado al mismo color */
}

@media (max-width: 900px) {
    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .trust-grid {
        display: flex;
        overflow-x: auto;
        gap: 15px;
        padding-bottom: 10px;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }
    .trust-grid::-webkit-scrollbar {
        display: none;
    }
    .trust-item {
        flex: 0 0 100%; /* Cada tarjeta ocupa el 100% del espacio, sin mostrar la siguiente */
        background-color: #F6F6F6; /* Color de fondo según imagen */
        border-radius: 24px;
        padding: 35px 20px;
        scroll-snap-align: center;
    }
}

/* Brand Showcase */
.brand-showcase {
    padding: 40px 0;
}

.olo-logo {
    width: 140px;
    height: 140px;
    margin: 0 auto;
    border: 5px solid #E94761;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.olo-logo img {
    width: 85%;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 40px 20px 20px;
}

.footer-section h3 {
    font-size: 1.6rem;
    font-weight: 900;
    margin-bottom: 20px;
    text-transform: lowercase;
}

.footer-section p {
    margin-bottom: 15px;
    font-size: 0.95rem;
    font-weight: 500;
}

.footer-section ul li a {
    color: var(--white);
    opacity: 1;
    font-size: 1rem;
    font-weight: 500;
}

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

.newsletter-form input {
    padding: 12px 20px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.3);
    background-color: rgba(255,255,255,0.1);
    color: var(--white);
    width: 100%;
    font-family: inherit;
    font-size: 1rem;
}

.newsletter-form input::placeholder {
    color: rgba(255,255,255,0.8);
}

.newsletter-form button {
    background-color: var(--white);
    color: #000;
    padding: 12px;
    border-radius: 6px;
    border: none;
    font-weight: 900;
    cursor: pointer;
    text-transform: lowercase;
    font-size: 1.1rem;
}

.footer-bottom {
    margin-top: 40px;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
}

.footer-bottom p {
    font-size: 0.75rem;
    opacity: 0.9;
}

.payment-methods {
    font-size: 30px;
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.footer .trust-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
    text-align: left;
}

.footer .trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer .trust-item img {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
}

.footer .trust-item h4 {
    font-size: 0.9rem;
    font-weight: 800;
    margin-bottom: 5px;
}

.footer .trust-item p {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Scroll Top */
#scroll-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white);
    border: 4px solid var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Animations */
.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.fade-in-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .badge-semana-santa {
        font-size: 1.2rem;
        padding: 8px 30px;
    }
    
    .category-circle {
        width: 80px;
        height: 80px;
    }
    
    .category-item span {
        font-size: 1rem;
    }
}
