/* =========================================================================
   🌐 CONFIGURACIÓN GLOBAL Y EFECTO DE DESPLAZAMIENTO SUAVE
   ========================================================================= */
html {
    scroll-behavior: smooth; /* Hace que la página se deslice suavemente */
    scroll-padding-top: 90px; /* Corrige el salto para que el menú fijo no tape los títulos */
}

/* Variables de Diseño y Paleta */
:root {
    --primary-color: #0d9488;    /* Verde azulado médico */
    --primary-dark: #0f766e;
    --secondary-color: #1e293b;  /* Pizarra oscuro elegante */
    --accent-color: #2563eb;    /* Azul confianza */
    --whatsapp-color: #25d366;
    --background-color: #f8fafc;  /* Fondo off-white limpio */
    --card-background: #ffffff;
    --text-main: #334155;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--text-main);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Encabezado Fijo */
.main-header {
    background-color: var(--card-background);
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Identidad del Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 54px; 
    width: auto;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center; 
    gap: 5px; 
}

.logo-text h1 {
    font-size: 24px;
    color: var(--secondary-color);
    font-weight: 800;
    line-height: 1; 
    letter-spacing: -0.5px;
}

.logo-text small {
    color: var(--primary-color); 
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4.4px; 
    line-height: 1; 
    margin-left: 1px; 
}

.main-nav {
    display: flex;
    align-items: center;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-main);
    margin-left: 20px;
    font-weight: 500;
    transition: color 0.2s;
}

.main-nav a:hover {
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--secondary-color);
    cursor: pointer;
    padding: 5px;
    outline: none;
}

.menu-toggle .material-icons-round {
    font-size: 30px;
}

/* Botones Base */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    font-size: 14px;
    transition: transform 0.1s, background-color 0.2s;
}

.btn:active { transform: scale(0.98); }
.btn-primary { background-color: var(--primary-color); color: white; }
.btn-primary:hover { background-color: var(--primary-dark); }
.btn-secondary { background-color: var(--secondary-color); color: white; }
.btn-secondary:hover { background-color: #0f172a; }
.btn-whatsapp { background-color: var(--whatsapp-color); color: white; }
.btn-whatsapp:hover { background-color: #128c7e; }

.btn-share {
    background-color: #e0f2fe;
    color: #0369a1;
    padding: 8px 16px;
    font-size: 13px;
    border-radius: 6px;
}
.btn-share:hover { background-color: #bae6fd; }
.btn-share .material-icons-round { font-size: 18px; }

.btn-item-wa {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px; 
}
.btn-item-wa:hover {
    text-decoration: underline;
}

/* Hero Section */
.hero-section {
    padding: 30px 0 55px 0;
    background: linear-gradient(135deg, #f0fdfa 0%, #e0f2fe 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.hero-content h2 {
    font-size: 36px;
    color: var(--secondary-color);
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 16px;
    color: #475569;
    margin-bottom: 30px;
}

.hero-actions { display: flex; gap: 15px; flex-wrap: wrap; }
.hero-badge-card { display: flex; flex-direction: column; gap: 20px; }

.stat-card {
    background-color: var(--card-background);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    border-left: 5px solid var(--primary-color);
}

.text-accent { color: var(--primary-color); font-size: 28px; }
.stat-card h3 { font-size: 16px; margin: 5px 0; }
.stat-card p { font-size: 13px; color: var(--text-muted); }

/* Ocultar Sección Promociones */
.promo-section {
    display: none; /* <--- Ocultado a petición sin borrar código */
    padding: 60px 0;
    background-color: #fffbeb; 
    border-bottom: 1px solid var(--border-color);
    overflow: hidden; 
}

.promo-viewport {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-top: 35px;
    padding: 20px 0; 
    cursor: grab;
    user-select: none;
}

.promos-grid {
    display: flex;
    position: relative;
    width: max-content; 
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1); 
}

.promo-card {
    width: 320px; 
    background-color: var(--card-background);
    padding: 24px;
    border-radius: 12px;
    border: 2px dashed var(--primary-color); 
    position: relative;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: 0 15px; 
    opacity: 0.3; 
    transform: scale(0.85);
    transition: transform 0.6s ease, opacity 0.6s ease;
}

.promo-card.active {
    opacity: 1;
    transform: scale(1.05); 
    box-shadow: 0 20px 30px -5px rgba(13, 148, 136, 0.15); 
}

.promo-action-area {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.promo-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: white;
    color: var(--secondary-color);
    border: 1px solid var(--border-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: all 0.2s;
}
.promo-nav-btn:hover { background-color: var(--primary-color); color: white; border-color: var(--primary-color); }
.promo-nav-btn.prev { left: 10px; }
.promo-nav-btn.next { right: 10px; }

.promo-tag { position: absolute; top: 14px; right: 14px; background-color: #f43f5e; color: white; padding: 4px 10px; font-size: 11px; font-weight: 800; border-radius: 6px; text-transform: uppercase; }
.promo-card h3 { font-size: 17px; color: var(--secondary-color); margin: 15px 0 6px 0; text-transform: uppercase; }
.promo-card p { font-size: 14px; color: var(--text-muted); margin-bottom: 15px; flex-grow: 1; }
.promo-price { font-size: 22px; color: #e11d48; font-weight: 800; }

/* Buscador de Medicamentos */
.catalog-section { padding: 60px 0; background-color: var(--card-background); }
.section-title { text-align: center; margin-bottom: 30px; }
.section-title h2 { font-size: 28px; color: var(--secondary-color); }
.section-title p { color: var(--text-muted); }

.search-wrapper { max-width: 650px; margin: 0 auto 40px auto; }
.search-box { display: flex; align-items: center; background-color: var(--background-color); border: 2px solid var(--border-color); border-radius: 12px; padding: 5px 15px; }
.search-box:focus-within { border-color: var(--primary-color); }
.search-icon { color: var(--text-muted); margin-right: 10px; }
.search-box input { width: 100%; border: none; background: transparent; padding: 12px 0; font-size: 16px; outline: none; color: var(--text-main); }
.clear-btn { background: none; border: none; color: var(--text-muted); cursor: pointer; display: none; }

.results-container { max-width: 750px; margin: 0 auto; min-height: 150px; }
.initial-message, .no-results { text-align: center; padding: 40px; color: var(--text-muted); }
.initial-message span, .no-results span { font-size: 48px; color: #cbd5e1; margin-bottom: 10px; }

.product-item {
    background-color: var(--background-color);
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--border-color);
    gap: 20px; 
}

.product-info { flex-grow: 1; min-width: 0; }
.product-info h4 { font-size: 14px; color: var(--secondary-color); text-transform: uppercase; }

.product-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0; 
}

.product-actions .action-list-btn,
.product-actions .btn-item-wa {
    width: 160px; 
    min-width: 160px;
    justify-content: center;
    text-align: center;
    white-space: normal; 
    line-height: 1.25; 
}

.action-list-btn {
    background: none;
    border: none;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 6px;
    transition: background-color 0.2s;
}
.btn-add-list { color: var(--accent-color); }
.btn-add-list:hover { background-color: #eff6ff; }
.btn-remove-list { color: #ef4444; }
.btn-remove-list:hover { background-color: #fef2f2; }

.btn-text-content {
    display: block;
    font-size: 12px;
    text-align: center;
}

/* Botón Flotante */
.floating-cart { position: fixed; bottom: 90px; right: 25px; z-index: 999; transform: translateY(100px); opacity: 0; transition: all 0.3s; pointer-events: none; }
.floating-cart.visible { transform: translateY(0); opacity: 1; pointer-events: auto; }
.cart-fab { display: flex; align-items: center; gap: 12px; background-color: var(--whatsapp-color); color: white; text-decoration: none; padding: 12px 22px; border-radius: 50px; font-weight: 700; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); }
.cart-badge { position: absolute; top: -6px; right: -8px; background-color: #ef4444; color: white; border-radius: 50%; min-width: 18px; height: 18px; font-size: 10px; display: flex; align-items: center; justify-content: center; border: 2px solid var(--whatsapp-color); }

/* Sección Informativa */
.info-section { padding: 60px 0; background-color: var(--background-color); border-top: 1px solid var(--border-color); }
.info-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; }
.info-text h2 { margin-bottom: 15px; color: var(--secondary-color); }
.info-features { margin-top: 25px; display: flex; flex-direction: column; gap: 20px; }
.feature-item { display: flex; gap: 12px; }

.check-icon { color: #16a34a !important; font-size: 24px; }
.feature-item h4 { font-size: 16px; color: var(--secondary-color); }
.feature-item p { font-size: 14px; color: var(--text-muted); }

.callout-box { background-color: #eff6ff; border: 1px solid #bfdbfe; padding: 30px; border-radius: 12px; }
.callout-box h3 { color: var(--accent-color); margin-bottom: 20px; display: inline-flex; align-items: center; gap: 8px; }
.callout-subtitle { margin-bottom: 24px; }
.service-list { list-style: none; }
.service-list li { position: relative; padding-left: 30px; font-size: 14px; }
.service-list li:not(:last-child) { margin-bottom: 28px; }
.service-list li span { position: absolute; left: 0; top: 2px; font-size: 20px; color: var(--accent-color); }

/* ==========================================
   🎨 ESTILOS DE LA SECCIÓN: NOSOTROS
   ========================================== */
.about-section {
    padding: 60px 0;
    background-color: var(--card-background);
    border-top: 1px solid var(--border-color);
}

.about-main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
    align-items: stretch;
}

.about-card, .meaning-box, .mv-card {
    background: linear-gradient(135deg, #f0fdfa 0%, #e0f2fe 100%);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(13, 148, 136, 0.15);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6), 0 4px 6px -1px rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center; 
}

.about-card h2, .meaning-box h3, .mv-card h3 {
    font-size: 24px;
    color: var(--secondary-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center; 
    gap: 8px;
}

.mv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 50px;
}

.values-title {
    text-align: center;
    margin-bottom: 30px;
}

.values-title h2 {
    font-size: 26px;
    color: var(--secondary-color);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.value-card {
    background-color: var(--background-color);
    padding: 24px 20px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform 0.2s, box-shadow 0.2s;
}

.value-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.value-card .material-icons-round {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.value-card h4 {
    font-size: 16px;
    color: var(--secondary-color);
    margin-bottom: 8px;
}

.value-card p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Ubicación y Footer */
.contact-section { padding: 60px 0; background-color: var(--card-background); border-top: 1px solid var(--border-color); }
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; }
.contact-details { display: flex; flex-direction: column; gap: 15px; margin-bottom: 20px; }
.detail-row { display: flex; align-items: center; gap: 12px; }
.detail-row .material-icons-round { color: var(--accent-color); font-size: 24px; }

.main-footer { background-color: var(--secondary-color); color: white; padding: 15px 0; font-size: 13px; }
.footer-flex { display: flex; justify-content: space-between; align-items: center; }

/* ==========================================
   📱 MEDIA QUERIES RESPONSIVAS CELULARES
   ========================================== */
@media (max-width: 768px) {
    .menu-toggle { display: block; position: relative; z-index: 110; }
    
    .main-nav { 
        display: flex; 
        flex-direction: column; 
        position: fixed; 
        top: 0; 
        right: -290px; 
        width: 280px; 
        height: 100vh; 
        background-color: var(--card-background); 
        box-shadow: -10px 0 30px rgba(0,0,0,0.12); 
        padding: 40px 20px; 
        justify-content: center; 
        gap: 15px; 
        z-index: 105; 
        transition: right 0.3s; 
    }
    .main-nav.active { right: 0; }
    .main-nav a { margin-left: 0; padding: 14px 0; border-radius: 8px; text-align: center; }

    .promo-nav-btn { display: none; }
    .promo-card { width: 290px; margin: 0 8px; opacity: 0.35; }
    
    .promo-action-area .btn-item-wa { margin-left: auto; padding-right: 4px; }
    
    .hero-grid, .info-grid, .contact-grid, .about-main-grid, .mv-grid, .values-grid { 
        grid-template-columns: 1fr; 
        text-align: center; 
    }

    .hero-content h2 { font-size: 24px; line-height: 1.3; margin: 0 auto 20px auto; max-width: 290px; text-align: center; }
    .hero-content p { text-align: center; }
    .hero-actions { justify-content: center; gap: 12px; }

    /* Corrección Sección Genéricos */
    .feature-item {
        display: flex;
        flex-direction: row; 
        align-items: flex-start;
        text-align: left;
        margin-bottom: 25px;
    }

    .feature-item .check-icon {
        font-size: 24px;
        margin-right: 10px;
        margin-top: 2px;
        flex-shrink: 0;
    }

    .feature-item h4 {
        margin: 0 0 10px 0;
        font-size: 16px;
        display: block;
    }

    .feature-item p {
        margin: 0;
        width: 100%;
        font-size: 14px;
    }

    .about-card, .meaning-box, .mv-card { text-align: center; }
    .about-card h2, .meaning-box h3, .mv-card h3 { justify-content: center; }

    .product-item { flex-direction: column; gap: 12px; text-align: center; padding: 16px; }
    .product-actions { flex-direction: column; width: 100%; gap: 10px; border-top: 1px dashed var(--border-color); padding-top: 12px; }
    .product-actions .action-list-btn,
    .product-actions .btn-item-wa { width: 100% !important; min-width: 0 !important; justify-content: center; padding: 11px; border: 1px solid var(--border-color); border-radius: 8px; font-size: 13px; }
    
    .product-actions .action-list-btn { background-color: #f1f5f9; }
    .product-actions .btn-item-wa { background-color: #e8f5e9; color: #1b5e20; border-color: #c8e6c9; }

    .callout-box h3 { margin-bottom: 15px; }
    .callout-subtitle { margin-bottom: 15px; }
    .service-list li:not(:last-child) { margin-bottom: 15px; }

    .floating-cart { bottom: 25px; right: 20px; }
    .cart-text { display: none; } 
    .cart-fab { padding: 0; border-radius: 50%; width: 56px; height: 56px; justify-content: center; }
    .cart-badge { top: -4px; right: -6px; }

    .footer-flex { display: flex; flex-direction: column !important; text-align: center; gap: 16px; }
    .footer-flex .btn-share { order: 1 !important; width: max-content; margin: 0 auto; }
    .footer-flex p { order: 2 !important; margin: 0; }
}