/**
 * Estilos para la tienda en línea
 * 
 * Desarrollado por SomeFriends.com.mx
 * Autor: Isaac Cerrillo
 * © 2024
 */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #ffffff;
    color: #333;
    line-height: 1.6;
}

/* Header */
.tienda-header {
    background: #ffffff;
    border-bottom: 2px solid #e0e0e0;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    width: 100%;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 20px; /* sin padding izquierdo, el logo flota completamente */
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative;
}

/* Primera fila: Logo (flotante) + Buscador + Acciones */
.header-top-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
    flex-wrap: wrap;
    min-height: 140px;
    position: relative;
}

.logo-section {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    display: flex;
    align-items: center;
    min-width: 650px;
    pointer-events: auto;
}

.search-section {
    flex: 1;
    min-width: 400px;
    max-width: 700px;
}

.search-below-menu {
    margin-top: 15px;
    margin-bottom: 10px;
    width: 100%;
    max-width: 100%;
}

.header-actions-group {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
    margin-left: auto;
}

.search-form {
    display: flex;
    gap: 10px;
    width: 100%;
}

.search-input {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

.search-input:focus {
    border-color: #1976d2;
}

.search-button {
    padding: 10px 20px;
    background: #1976d2;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    transition: background 0.3s;
}

.search-button:hover {
    background: #1565c0;
}


.header-action-link {
    text-decoration: none;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.header-action-link:hover {
    background-color: #f5f5f5;
    color: #1976d2;
}

.cart-link {
    position: relative;
}

.cart-count {
    background: #f44336;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 5px;
}

.logo-imagen {
    width: auto;
    height: auto;
    max-width: 650px;
    max-height: 260px;
    object-fit: contain;
    display: block;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 28px;
    font-weight: bold;
    color: #1976d2;
}

.logo-icon {
    font-size: 32px;
}

.logo-subtitle {
    font-size: 11px;
    color: #666;
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Títulos de sección con Rubik Doodle Shadow */
.section-title {
    text-align: center;
    margin-bottom: 40px;
    color: #1976d2;
    font-size: 32px;
    font-weight: 600;
    font-family: 'Rubik Doodle Shadow', cursive;
}

/* Tercera fila: Menú de navegación */
.main-nav {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: nowrap;
    justify-content: center;
    padding: 12px 0;
    border-top: 1px solid #e0e0e0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    min-height: 50px;
    position: relative;
    z-index: 10;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    border: 1px solid transparent;
    flex-shrink: 0;
    position: relative;
    z-index: 10;
    pointer-events: auto;
    cursor: pointer;
}

.nav-link:hover {
    background-color: #f5f5f5;
    color: #1976d2;
}

.dropdown-arrow {
    font-size: 10px;
    color: #999;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
    position: relative;
    z-index: 1001;
}

.mobile-menu-btn {
    display: none;
    font-size: 26px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 10px;
    line-height: 1;
    position: relative;
    z-index: 1002;
    color: #333;
    pointer-events: auto;
    touch-action: manipulation;
    visibility: hidden;
    opacity: 0;
}

.social-icon {
    font-size: 24px;
    text-decoration: none;
    transition: transform 0.3s;
}

.social-icon:hover {
    transform: scale(1.2);
}


.cart-icon {
    font-size: 24px;
    text-decoration: none;
    color: #333;
    position: relative;
    padding: 8px;
    z-index: 1002;
    display: inline-block;
    cursor: pointer;
    pointer-events: auto;
    touch-action: manipulation;
}

.cart-count {
    position: absolute;
    top: 0;
    right: 0;
    background: #d32f2f;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* Hero Banner */
.hero-banner {
    position: relative;
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
    background-size: cover;
    background-position: center;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    margin-bottom: 40px;
}

/* Banner Carrusel */
.hero-banner-carousel {
    position: relative;
    min-height: 600px;
    margin-bottom: 40px;
    overflow: hidden;
}

.banner-carousel {
    position: relative;
    width: 100%;
    height: 600px;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.banner-slide.active {
    opacity: 1;
    z-index: 1;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(25, 118, 210, 0.85);
    opacity: 0.3;
    z-index: 0;
}

.banner-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
}

.banner-title {
    font-size: 72px;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.banner-tagline {
    background: white;
    color: #1976d2;
    padding: 15px 30px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    font-size: 20px;
    font-weight: 600;
}

.banner-tagline .arrow {
    font-size: 24px;
}

/* Controles del carrusel */
.banner-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 10;
    pointer-events: none;
}

.banner-prev,
.banner-next {
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 32px;
    color: #1976d2;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    pointer-events: all;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.banner-prev:hover,
.banner-next:hover {
    background: white;
    transform: scale(1.1);
}

.banner-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.banner-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.banner-dot.active {
    background: white;
    transform: scale(1.2);
}

.mobile-banner {
    display: none;
}

@media (max-width: 900px) {
    .desktop-banner {
        display: none;
    }
    .mobile-banner {
        display: block;
    }
    .banner-carousel {
        height: 460px;
    }
}

@media (max-width: 768px) {
    .hero-banner-carousel { min-height: 460px; }
    .banner-carousel { height: 460px; }
}

/* Sección Promocional */
.promotional-section {
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
    padding: 30px 40px;
    margin: 40px 20px;
    border-radius: 12px;
    color: white;
}

.promo-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    gap: 30px;
    flex-wrap: wrap;
}

.promo-text {
    font-size: 24px;
    font-weight: 600;
    flex: 1;
    margin: 0;
}

.promo-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.promo-btn {
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s;
    border: 2px solid white;
    display: inline-block;
    text-align: center;
}

.promo-btn-dentista {
    background: white;
    color: #1976d2;
}

.promo-btn-dentista:hover {
    background: #f5f5f5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.promo-btn-deposito {
    background: transparent;
    color: white;
    border-color: white;
}

.promo-btn-deposito:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
    .promo-content {
        flex-direction: column;
        text-align: center;
    }
    
    .promo-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .promo-btn {
        flex: 1;
        min-width: 150px;
    }
}

/* Productos */
.products-section {
    max-width: 1400px;
    margin: 60px auto;
    padding: 0 20px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 30px;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #f5f5f5;
}

.product-image-placeholder {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    background: #f5f5f5;
}

.product-label {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.product-info {
    padding: 15px;
}

.product-name {
    font-size: 14px;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

.product-price {
    font-size: 18px;
    color: #1976d2;
    font-weight: bold;
}

/* Características */
.features-section {
    max-width: 1400px;
    margin: 60px auto;
    padding: 0 20px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 18px;
    color: #1976d2;
    font-weight: 600;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 999;
    text-decoration: none;
    transition: transform 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.whatsapp-icon {
    font-size: 32px;
}

/* Admin Login Link - Botón flotante circular */
.admin-login-link {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.admin-login-link a {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 28px;
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.4);
    transition: all 0.3s;
}

.admin-login-link a:hover {
    background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%);
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(25, 118, 210, 0.5);
}

/* Menú móvil */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -280px;
    width: 260px;
    height: 100vh;
    background: #fff;
    box-shadow: 4px 0 18px rgba(0,0,0,0.12);
    z-index: 1500;
    transition: left 0.3s ease;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-menu.open {
    left: 0;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 4px;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

.mobile-menu-links .nav-link {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 15px;
}

/* Buscador en menú móvil */
.mobile-menu-search {
    padding: 16px;
    border-bottom: 1px solid #e0e0e0;
    background: #f9f9f9;
}

.mobile-menu-search .search-form {
    display: flex;
    gap: 8px;
}

.mobile-menu-search .search-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
}

.mobile-menu-search .search-button {
    padding: 10px 16px;
    background: #1976d2;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}


.mobile-menu-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1400;
    display: none;
}

.mobile-menu-backdrop.show {
    display: block;
}

/* Footer */
.site-footer {
    margin-top: 60px;
    padding: 50px 20px 60px;
    background: #fff;
    border-top: 1px solid #e5e5e5;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    align-items: flex-start;
    text-align: left;
}

.footer-col h4 {
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 700;
    color: #222;
}

.footer-col p,
.footer-col a {
    display: block;
    margin: 6px 0;
    color: #444;
    font-size: 14px;
    text-decoration: none;
}

.footer-col a:hover {
    color: #1976d2;
}

.footer-contact {
    font-weight: 600;
}

.footer-contact a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-contact a:hover {
    color: #1976d2;
    text-decoration: underline;
}

/* Sección AQUA - Bloques Promocionales */
.aqua-section {
    padding: 60px 20px;
    background: #f5f5f5;
}

.aqua-grid-custom {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    grid-template-rows: 280px 380px;
    gap: 20px;
}

.aqua-bloque {
    border-radius: 12px;
    padding: 40px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.aqua-bloque-top-left {
    grid-area: 1 / 1 / 2 / 2;
    min-height: 280px;
}

.aqua-bloque-top-right {
    grid-area: 1 / 2 / 2 / 3;
    min-height: 280px;
}

.aqua-bloque-bottom-left {
    grid-area: 2 / 1 / 3 / 2;
    min-height: 380px;
}

.aqua-bloque-bottom-right {
    grid-area: 2 / 2 / 3 / 3;
    min-height: 380px;
}

.aqua-bloque:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.aqua-btn-ver-mas {
    display: inline-block;
    background: white;
    padding: 12px 30px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.aqua-btn-ver-mas:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
    .aqua-grid-custom {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    
    .aqua-bloque {
        min-height: 300px !important;
        padding: 30px;
        grid-area: auto !important;
    }
}

/* Modal Métodos de Pago */
.modal-pago-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.modal-pago-content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    max-width: 720px;
    width: 100%;
    box-shadow: 0 12px 40px rgba(0,0,0,0.35);
    overflow: hidden;
}

.modal-pago-img {
    width: 100%;
    height: auto;
    display: block;
}

.modal-pago-text {
    padding: 18px 20px 22px;
    font-size: 15px;
    color: #1f1f1f;
    text-align: center;
    line-height: 1.5;
    background: #f8f8f8;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.modal-close:hover {
    background: rgba(0,0,0,0.75);
}

/* Responsive */
@media (max-width: 968px) {
    .header-container {
        padding: 10px 16px;
        flex-direction: column;
        gap: 15px;
        position: relative;
    }
    
    .header-top-row {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: auto;
        padding: 0;
        position: relative;
        gap: 15px;
    }
    
    .main-nav {
        display: none !important;
    }
    
    .main-nav.desktop-nav {
        display: none !important;
    }

    .desktop-nav {
        display: none !important;
    }
    
    .search-section {
        display: none !important;
    }
    
    .search-below-menu {
        display: none !important;
    }
    
    .logo-section {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        width: auto;
        min-width: auto;
        margin: 0 auto;
        flex-shrink: 1;
        order: 1;
        z-index: 1;
        text-align: center;
    }
    
    .logo-imagen {
        max-width: 250px;
        max-height: 120px;
        width: auto;
        height: auto;
    }
    
    .header-actions-group {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 8px;
        order: 2;
        flex-shrink: 0;
        z-index: 1001;
        position: relative;
        margin: 0 auto;
        width: 100%;
    }
    
    .header-action-link {
        font-size: 12px;
        padding: 6px 8px;
    }

    .mobile-menu-btn {
        display: inline-block !important;
        visibility: visible !important;
        opacity: 1 !important;
        z-index: 1002;
        position: relative;
        order: 0;
        margin-right: 8px;
        font-size: 28px;
        padding: 8px 12px;
        background: #f5f5f5;
        border-radius: 4px;
    }
    
    /* Asegurar que el menú móvil esté disponible */
    .mobile-menu {
        display: flex !important;
    }
    
    .cart-link {
        z-index: 1002;
        position: relative;
    }
    
    .logo-section {
        z-index: 1;
    }
    
    .banner-title {
        font-size: 42px;
    }
    
    .banner-tagline {
        font-size: 16px;
        padding: 12px 20px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 20px;
    }
    
    .promo-content {
        flex-direction: column;
        text-align: center;
    }
    
    .promo-arrow {
        margin-left: 0;
        margin-top: 10px;
    }
}

