/* --- Estilos Generales --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #0f172a; /* Fondo azul oscuro moderno */
    color: #f8fafc;
    line-height: 1.6;
}

/* --- Barra de Navegación y Menú Hamburguesa --- */
header {
    background-color: #1e293b;
    border-bottom: 1px solid #334155;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    font-size: 1.4rem;
    color: #38bdf8;
}

.logo img {
    height: 40px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: #94a3b8;
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: #38bdf8;
}

/* Botón Hamburguesa (Oculto en pantallas grandes) */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: #f8fafc;
    border-radius: 2px;
    transition: 0.3s;
}

/* --- Sección Hero (Inicio) --- */
.hero {
    text-align: center;
    padding: 3.5rem 2rem; /* Espacio reducido para evitar separación excesiva */
    background: linear-gradient(rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.9)), url('fondo.jpg') no-repeat center center/cover;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #f8fafc;
}

.hero p {
    font-size: 1.2rem;
    color: #94a3b8;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.btn {
    display: inline-block;
    background-color: #2563eb;
    color: white;
    padding: 10px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
}

.btn:hover {
    background-color: #1d4ed8;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid #38bdf8;
    color: #38bdf8;
}

.btn-outline:hover {
    background-color: #38bdf8;
    color: #0f172a;
}

/* --- Sección de Servicios (Estilo Tarjetas) --- */
.servicios-section {
    padding: 1.5rem 2rem 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 2rem;
    color: #f8fafc;
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.servicio-card {
    background-color: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 2.5rem 2rem;
    text-decoration: none;
    color: #f8fafc;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.servicio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    border-color: #38bdf8;
}

.card-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.mobile-icon { color: #a78bfa; }
.console-icon { color: #facc15; }
.pc-icon { color: #38bdf8; }

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.card-content p {
    font-size: 1rem;
    color: #94a3b8;
    margin-bottom: 1rem;
}

.card-tagline {
    font-size: 0.9rem;
    color: #38bdf8;
    font-style: italic;
    margin-top: auto;
}

.servicio-card.disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* --- Sección de Contacto (Para vcard u otras páginas) --- */
.contacto-section {
    max-width: 800px;
    margin: 5rem auto 3rem auto;
    padding: 0 2rem;
    text-align: center;
}

.contacto-section h1 {
    font-size: 2.5rem;
    color: #38bdf8;
    margin-bottom: 0.5rem;
}

.subtit {
    color: #94a3b8;
    margin-bottom: 2rem;
}

.icon-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    max-width: 400px;
    margin: 0 auto 2.5rem auto;
}

.icon-box {
    background-color: #2563eb;
    color: white;
    font-size: 1.8rem;
    padding: 20px;
    border-radius: 12px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, background 0.2s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

.icon-box:hover {
    transform: translateY(-3px);
    background-color: #1d4ed8;
}

.whatsapp { background-color: #16a34a; }
.facebook { background-color: #2563eb; }
.youtube { background-color: #dc2626; }
.location { background-color: #ea580c; }
.hours { background-color: #ca8a04; }
.email { background-color: #7c3aed; }

.local-reference {
    margin: 2rem 0;
}

.local-reference img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    border: 2px solid #334155;
}

.nota-local {
    font-style: italic;
    color: #94a3b8;
    margin-top: 8px;
}

.info-footer {
    background-color: #1e293b;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #334155;
    margin-top: 2rem;
}

.info-footer p {
    margin-bottom: 5px;
    color: #cbd5e1;
}

.icon-grid .icon-box img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* --- ESTILOS RESPONSIVOS PARA MÓVILES (Menú Hamburguesa) --- */
@media screen and (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #1e293b;
        border-bottom: 1px solid #334155;
        padding: 1.5rem 0;
        text-align: center;
        gap: 15px; /* Espaciado cómodo entre cada opción */
        box-shadow: 0 10px 15px rgba(0,0,0,0.3);
    }

    .nav-links.active {
        display: flex;
    }
}

    /* Clase activada por JavaScript */
    .nav-links.active {
        display: flex;
    }

    /* Animación del botón hamburguesa a una "X" */
    .menu-toggle.is-active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .menu-toggle.is-active .bar:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.is-active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }   

 /* --- Control del Logo Responsivo --- */
    .logo-completo {
        display: inline !important;
    }

    .logo-corto {
        display: none !important;
    }

    @media screen and (max-width: 768px) {
        .logo-completo {
            display: none !important;
        }
    
        .logo-corto {
            display: inline !important;
        }
}


/* --- Estilos para la página de Detalles de Servicios --- */
.detalle-container {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.breadcrumb {
    margin-bottom: 1.5rem;
}

.breadcrumb a {
    color: #38bdf8;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #93c5fd;
}

.page-title {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    color: #f8fafc;
    text-align: center;
}

/* Tarjeta principal contenedora */
.service-detail-card {
    background-color: #1e293b;
    border: 1px solid #334155;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    margin-bottom: 3rem;
}

/* Banner superior de la tarjeta (Inspirado en la imagen de referencia) */
.service-banner {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    padding: 3rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #334155;
}

.banner-text h2 {
    font-size: 2.2rem;
    color: #f8fafc;
    margin-bottom: 0.5rem;
}

.banner-text p {
    color: #94a3b8;
    font-size: 1.1rem;
    max-width: 600px;
}

.banner-icon {
    font-size: 5rem;
    color: #38bdf8;
    opacity: 0.8;
}

/* Cuadrícula de opciones de reparación */
.service-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 2.5rem;
}

.option-item {
    background-color: #0f172a;
    border: 1px solid #334155;
    padding: 1.2rem 1.5rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: #e2e8f0;
    font-weight: 500;
    transition: transform 0.2s, border-color 0.2s;
}

.option-item:hover {
    transform: translateY(-3px);
    border-color: #38bdf8;
}

.option-item i {
    font-size: 1.4rem;
    color: #38bdf8;
    min-width: 25px;
    text-align: center;
}

/* Botón inferior de la tarjeta */
.card-footer-action {
    padding: 0 2.5rem 2.5rem 2.5rem;
    text-align: center;
}

.card-footer-action .btn {
    padding: 12px 35px;
    font-size: 1.1rem;
}

/* Ajustes responsivos para móviles */
@media screen and (max-width: 768px) {
    .service-banner {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        padding: 2rem 1.5rem;
    }

    .service-options-grid {
        padding: 1.5rem;
        grid-template-columns: 1fr;
    }
}

/* --- Botón de Retorno Estilizado --- */
.nav-back-container {
    margin-bottom: 1.5rem;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #1e293b;
    color: #38bdf8;
    border: 1px solid #334155;
    padding: 8px 18px;
    border-radius: 50px; /* Estilo píldora / pastilla moderna */
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-back:hover {
    background-color: #334155;
    color: #f8fafc;
    border-color: #38bdf8;
    transform: translateX(-3px); /* Pequeño movimiento sutil a la izquierda */
}

.btn-back i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.btn-back:hover i {
    transform: translateX(-3px); /* Mueve la flechita al pasar el mouse */
}

/* --- Indicador de Página Activa en el Menú --- */
.nav-links a {
    position: relative;
    padding-bottom: 5px; /* Espacio para la línea inferior */
}

/* Efecto de línea inferior y color para la página actual */
.nav-links a.active {
    color: #38bdf8 !important;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #38bdf8;
    border-radius: 2px;
}

/* --- Estilos para la vCard / Contacto Moderna --- */
.vcard-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 2.5rem;
}

.vcard-item {
    background-color: #0f172a;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 1.2rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: #f8fafc;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.vcard-item:hover {
    transform: translateY(-4px);
    border-color: #38bdf8;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

.vcard-icon {
    font-size: 1.8rem;
    width: 50px;
    height: 50px;
    background-color: rgba(56, 189, 248, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #38bdf8;
    flex-shrink: 0;
}

/* Colores representativos sutiles para cada tarjeta al pasar el cursor o iconos */
.whatsapp-card:hover .vcard-icon { background-color: rgba(22, 163, 74, 0.2); color: #16a34a; }
.facebook-card:hover .vcard-icon { background-color: rgba(37, 99, 235, 0.2); color: #2563eb; }
.youtube-card:hover .vcard-icon { background-color: rgba(220, 38, 38, 0.2); color: #dc2626; }
.location-card:hover .vcard-icon { background-color: rgba(234, 88, 12, 0.2); color: #ea580c; }
.hours-card:hover .vcard-icon { background-color: rgba(202, 138, 4, 0.2); color: #ca8a04; }
.email-card:hover .vcard-icon { background-color: rgba(124, 58, 237, 0.2); color: #7c3aed; }

.vcard-text h3 {
    font-size: 1.1rem;
    margin-bottom: 2px;
    color: #f8fafc;
}

.vcard-text p {
    font-size: 0.85rem;
    color: #94a3b8;
}

/* Pie de información y foto del local dentro de la vcard */
.vcard-footer-info {
    padding: 0 2.5rem 2.5rem 2.5rem;
    border-top: 1px solid #334155;
    margin-top: 1rem;
}

.info-box-text {
    background-color: #0f172a;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
    color: #cbd5e1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.info-box-text p {
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-box-text i {
    color: #38bdf8;
}

.local-reference {
    text-align: center;
}

.nota-local {
    font-style: normal;
    font-weight: 600;
    color: #38bdf8;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.local-reference img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    border: 2px solid #334155;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* Ajustes responsivos para móviles en la vCard */
@media screen and (max-width: 768px) {
    .vcard-links-grid, .vcard-footer-info {
        padding: 1.5rem;
    }
}

/* --- Estilos para la Página de Horarios --- */
.horarios-content-grid {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.horario-box {
    background-color: #0f172a;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 1.8rem;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.horario-icon {
    font-size: 2rem;
    color: #38bdf8;
    background-color: rgba(56, 189, 248, 0.1);
    padding: 15px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.weekend-icon {
    color: #eab308;
    background-color: rgba(234, 179, 8, 0.1);
}

.horario-info h3 {
    font-size: 1.3rem;
    color: #f8fafc;
    margin-bottom: 5px;
}

.main-time {
    font-size: 1.1rem;
    color: #cbd5e1;
    font-weight: 600;
    margin-bottom: 8px;
}

.sub-note {
    font-size: 0.9rem;
    font-style: italic;
}

.lunch-break {
    color: #f97316; /* Naranja cálido */
}

.weekend-note {
    color: #ef4444; /* Rojo suave de aviso */
}

/* Ajustes responsivos para pantallas pequeñas */
@media screen and (max-width: 768px) {
    .horarios-content-grid {
        padding: 1.5rem;
    }
    
    .horario-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* --- Estilos para la Página de Reseñas --- */
.reseñas-grid {
    padding: 2.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.resena-item {
    background-color: #0f172a;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.resena-item:hover {
    transform: translateY(-3px);
    border-color: #38bdf8;
}

.resena-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.resena-dispositivo {
    background-color: rgba(56, 189, 248, 0.1);
    color: #38bdf8;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

.resena-comentario {
    color: #e2e8f0;
    font-size: 0.95rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.resena-footer-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #94a3b8;
    border-top: 1px solid #1e293b;
    padding-top: 10px;
}

/* Ajustes responsivos móviles para Reseñas */
@media screen and (max-width: 768px) {
    .reseñas-grid {
        padding: 1.5rem;
        grid-template-columns: 1fr;
    }
}

/* --- Botón de Reseñas Estilo Outline Naranja Eléctrico --- */
.btn-naranja {
    background-color: transparent;
    color: #f97316; /* Naranja eléctrico en el texto */
    border: 2px solid #f97316; /* Contorno naranja */
    transition: all 0.3s ease;
}

.btn-naranja:hover {
    background-color: #f97316; /* Se rellena de naranja al pasar el cursor */
    color: #ffffff; /* El texto pasa a blanco para contrastar */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
}

/* --- Indicador de Estatus en Vivo (Parpadeante) --- */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(15, 23, 42, 0.8);
    border: 1px solid #334155;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

/* Estado Abierto (Verde parpadeante) */
.status-abierto .status-dot {
    background-color: #22c55e;
    box-shadow: 0 0 0 rgba(34, 197, 94, 0.4);
    animation: pulse-verde 1.5s infinite;
}
.status-abierto {
    color: #4ade80;
}

/* Estado Cerrado (Gris / Naranja tenue) */
.status-cerrado .status-dot {
    background-color: #f59e0b;
}
.status-cerrado {
    color: #fbbf24;
}

@keyframes pulse-verde {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}


/* --- Sección: ¿Por qué elegirnos? --- */
.why-us-section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    margin-top: 2rem;
}

.why-card {
    background-color: #0f172a;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.why-card:hover {
    transform: translateY(-5px);
    border-color: #38bdf8;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.why-icon {
    font-size: 2.2rem;
    color: #38bdf8;
    background-color: rgba(56, 189, 248, 0.1);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem auto;
}

.why-card h3 {
    font-size: 1.2rem;
    color: #f8fafc;
    margin-bottom: 10px;
}

.why-card p {
    font-size: 0.9rem;
    color: #94a3b8;
    line-height: 1.5;
}

/* Ajustes responsivos móviles */
@media screen and (max-width: 768px) {
    .why-us-section {
        padding: 2.5rem 1rem;
    }
}

/* --- Ajustes para las Tarjetas de Servicios y Footer Unificado --- */
.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.servicio-card-wrapper {
    display: flex;
    flex-direction: column;
    background-color: #0f172a;
    border: 1px solid #334155;
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.servicio-card-wrapper:hover {
    transform: translateY(-4px);
    border-color: #38bdf8;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.servicio-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    color: inherit;
    flex-grow: 1;
}

.card-body-content {
    padding: 1.8rem 1.5rem 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
}

/* Footer unificado dentro de la tarjeta con línea divisoria y semitransparencia */
.card-footer-tag {
    background-color: rgba(30, 41, 59, 0.5);
    border-top: 1px solid #334155;
    padding: 12px 15px;
    text-align: center;
    font-size: 0.85rem;
    color: #38bdf8;
    font-weight: 500;
}

/* Botón directo de Cotización por WhatsApp debajo de cada servicio */
.btn-whatsapp-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #16a34a;
    color: #ffffff;
    text-decoration: none;
    padding: 10px 15px;
    font-size: 0.9rem;
    font-weight: 600;
    border-top: 1px solid #15803d;
    transition: background-color 0.2s ease;
}

.btn-whatsapp-card:hover {
    background-color: #15803d;
}

.disabled-wa {
    background-color: #334155;
    color: #94a3b8;
    pointer-events: none;
    border-top: 1px solid #1e293b;
}

/* Ajustes de orden móvil */
@media screen and (max-width: 768px) {
    .servicios-grid {
        padding: 0 1rem;
    }
}

/* --- Estilos para la Página de Tienda (Store) --- */
.store-grid {
    padding: 2.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.store-card {
    background-color: #0f172a;
    border: 1px solid #334155;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.store-card:hover {
    transform: translateY(-4px);
    border-color: #38bdf8;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.store-img-container {
    width: 100%;
    height: 180px;
    background-color: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-bottom: 1px solid #334155;
    overflow: hidden;
}

.store-img-container img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

.store-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: rgba(22, 163, 74, 0.9);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
}

.store-card-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.store-card-body h3 {
    font-size: 1.2rem;
    color: #f8fafc;
}

.store-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #38bdf8;
}

.store-desc {
    font-size: 0.9rem;
    color: #94a3b8;
    line-height: 1.5;
}

.store-card-footer {
    padding: 1rem 1.5rem;
    background-color: rgba(30, 41, 59, 0.5);
    border-top: 1px solid #334155;
}

.btn-whatsapp-store {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #16a34a;
    color: #ffffff;
    text-decoration: none;
    padding: 10px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.btn-whatsapp-store:hover {
    background-color: #15803d;
}

/* Ajustes responsivos para móviles */
@media screen and (max-width: 768px) {
    .store-grid {
        padding: 1.5rem;
        grid-template-columns: 1fr;
    }
}

/* --- Cuadrícula de Tienda ampliada a 3 columnas --- */
.store-grid {
    padding: 2.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- Estilo para el contenedor sin imagen (Placeholder con Icono) --- */
.no-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #1e293b;
    color: #64748b;
}

.no-img-placeholder i {
    font-size: 2.2rem;
    color: #475569;
}

.no-img-placeholder span {
    font-size: 0.8rem;
    font-style: italic;
    color: #94a3b8;
}

/* --- Estilos para la Galería de Múltiples Imágenes en la Tienda --- */
.store-main-img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: opacity 0.2s ease;
}

.store-thumbnails {
    display: flex;
    gap: 8px;
    padding: 8px 12px;
    background-color: #1e293b;
    border-top: 1px solid #334155;
    overflow-x: auto;
}

.store-thumb {
    width: 45px;
    height: 45px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid #334155;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.2s ease;
}

.store-thumb:hover {
    opacity: 1;
    border-color: #38bdf8;
}

.active-thumb {
    opacity: 1;
    border-color: #38bdf8;
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.4);
}

/* --- Estilos para el Visor Modal (Zoom de Imagen) --- */
.store-img-container {
    cursor: pointer;
    position: relative;
}

.zoom-hint {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(15, 23, 42, 0.85);
    color: #38bdf8;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    border: 1px solid #334155;
}

.store-img-container:hover .zoom-hint {
    opacity: 1;
}

/* Pantalla Modal Oscura */
.store-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(3, 7, 18, 0.9);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 20px;
}

.modal-content {
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    border: 1px solid #334155;
    animation: zoomIn 0.25s ease;
}

#modal-caption {
    color: #f8fafc;
    font-size: 1.1rem;
    margin-top: 15px;
    font-weight: 500;
    text-align: center;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #f8fafc;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: #38bdf8;
}

@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* --- Estilos para los Botones de Navegación del Modal --- */
.modal-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(15, 23, 42, 0.8);
    color: #f8fafc;
    border: 1px solid #334155;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 1010;
}

.modal-nav-btn:hover {
    background-color: #38bdf8;
    color: #0f172a;
    border-color: #38bdf8;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.5);
}

.modal-prev {
    left: 30px;
}

.modal-next {
    right: 30px;
}

/* Ajustes responsivos para pantallas móviles en el modal */
@media screen and (max-width: 768px) {
    .modal-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    .modal-prev {
        left: 10px;
    }
    .modal-next {
        right: 10px;
    }
}

/* --- Barra de Herramientas de la Tienda (Buscador y Selector) --- */
.store-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 2rem 2.5rem 0 2.5rem;
    flex-wrap: wrap;
}

.store-search-box {
    position: relative;
    flex-grow: 1;
    max-width: 450px;
}

.store-search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
}

.store-search-box input {
    width: 100%;
    background-color: #0f172a;
    border: 1px solid #334155;
    border-radius: 10px;
    padding: 12px 15px 12px 45px;
    color: #f8fafc;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.store-search-box input:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}

.store-per-page-box {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #94a3b8;
    font-size: 0.9rem;
}

.store-per-page-box select {
    background-color: #0f172a;
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 10px 14px;
    color: #f8fafc;
    font-size: 0.9rem;
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.store-per-page-box select:focus {
    border-color: #38bdf8;
}

/* --- Distintivo de cantidad de fotos en miniatura --- */
.store-photos-count {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background-color: rgba(15, 23, 42, 0.85);
    color: #38bdf8;
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid #334155;
    pointer-events: none;
}

/* --- Controles de Paginación --- */
.store-pagination-container {
    padding: 1rem 2.5rem 2.5rem 2.5rem;
    display: flex;
    justify-content: center;
}

.pagination-controls {
    display: flex;
    gap: 8px;
    align-items: center;
}

.page-btn {
    background-color: #0f172a;
    color: #f8fafc;
    border: 1px solid #334155;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-btn:hover:not(.disabled) {
    background-color: #1e293b;
    border-color: #38bdf8;
    color: #38bdf8;
}

.page-btn.active {
    background-color: #38bdf8;
    color: #0f172a;
    border-color: #38bdf8;
}

.page-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Ajustes responsivos móviles */
@media screen and (max-width: 768px) {
    .store-toolbar {
        padding: 1.5rem 1rem 0 1rem;
        flex-direction: column;
        align-items: stretch;
    }
    .store-search-box {
        max-width: 100%;
    }
    .store-pagination-container {
        padding: 1rem;
    }
}

/* --- Estilos para las Pestañas de Categorías --- */
.store-categories-container {
    display: flex;
    gap: 10px;
    padding: 1.5rem 2.5rem 0 2.5rem;
    flex-wrap: wrap;
}

.cat-btn {
    background-color: #0f172a;
    color: #94a3b8;
    border: 1px solid #334155;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cat-btn:hover {
    background-color: #1e293b;
    color: #38bdf8;
    border-color: #38bdf8;
}

.cat-btn.active {
    background-color: #38bdf8;
    color: #0f172a;
    border-color: #38bdf8;
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.3);
}

/* --- Distintivo Elegante de Stock / Inventario en la Tarjeta --- */
.store-stock-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background-color: rgba(15, 23, 42, 0.85);
    color: #f8fafc;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid #334155;
    display: flex;
    align-items: center;
    gap: 5px;
    pointer-events: none;
}

.store-stock-badge i {
    color: #38bdf8;
}

/* Ajustes responsivos para móviles en categorías */
@media screen and (max-width: 768px) {
    .store-categories-container {
        padding: 1rem 1rem 0 1rem;
        overflow-x: auto;
        flex-wrap: nowrap;
        white-space: nowrap;
        padding-bottom: 10px;
    }
    .cat-btn {
        flex-shrink: 0;
    }
}