/* |-VARIABLES DE COLOR (LIGHT / DARK MODE)-| */
:root {
    --bg-primary: #f4f6f9;
    --bg-card: #ffffff;
    --text-primary: #2d3748;
    --text-secondary: #718096;
    --brand-color: #04549f;
    --brand-hover: #033c73;
    --border-color: #e2e8f0;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* |-TEMA OSCURO (DARK MODE)-| */
body.dark-theme {
    --bg-primary: #0f172a;
    --bg-card: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --brand-color: #38bdf8;
    --brand-hover: #0284c7;
    --border-color: #334155;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* |-GENERALES-| */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: background-color 0.3s ease, color 0.3s ease;
}

html, body {
    width: 100%;
    overflow-x: hidden;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* |-BANNER CASHEA-| */
.cashea-banner-container {
    display: flex;                
    align-items: center;         
    justify-content: center;      
    gap: 20px;                    
    width: 100%;
    background-color: rgba(253, 250, 61, 1);  
    padding: 2px 18px;
    box-sizing: border-box;
    overflow: hidden;
}

.cashea-banner-container img {
    max-height: 35px;             
    width: auto;
    display: block;
}

.banner-cashea-custom {
    background-color: transparent; 
    color: #000000;               
    font-family: Arial, sans-serif;
    font-weight: bold;
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
}

/* |-HEADER Y NAVBAR-| */
.header {
    background: #04549f;
    color: white;
    padding: 15px 15px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    width: 100%;
}

.nav-container {
    max-width: 1250px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.logo img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: white;
}

/* |-BUSCADOR-| */
.busqueda-container {
    display: flex;
    align-items: center;
    gap: 5px;
    width: 100%;
    max-width: 320px;
}

.busqueda-input {
    padding: 8px 14px;
    border: none;
    border-radius: 20px;
    width: 100%;
    outline: none;
    font-size: 14px;
}

.boton-busqueda {
    padding: 8px 16px;
    background-color: #002e5b;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.boton-busqueda:hover {
    background-color: #001f3d;
}

/* |-MENÚ DE NAVEGACIÓN Y BOTÓN DARK MODE-| */
.menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 6px;
    flex-wrap: wrap;
}

.menu-btn {
    background: transparent;
    color: white;
    border: none;
    padding: 7px 12px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
}

.menu-btn:hover, .menu-btn.active {
    background-color: rgba(255, 255, 255, 0.2);
    font-weight: 600;
}

.btn-theme-toggle {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 8px 10px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-theme-toggle:hover {
    background: rgba(255, 255, 255, 0.35);
}

/* |-MAIN Y SECCIONES-| */

.contenido {
    max-width: 1250px;
    width: 100%;
    margin: 20px auto;
    padding: 0 15px;
    flex: 1;
    box-sizing: border-box;
}

.seccion {
    display: none;
    width: 100%;
    animation: fadeIn 0.4s ease-in-out;
}

.seccion.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* |-HERO INICIO-| */
/* |- ESTILOS MODERNO -| */

.copy-hero {
    background: linear-gradient(135deg, #04549f 0%, #012241 100%);
    border-radius: 20px;
    padding: 40px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    box-shadow: var(--shadow);
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 600px;
    z-index: 2;
}

.badge-nuevo {
    background: rgba(255, 255, 255, 0.15);
    color: #38bdf8;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 12px;
}

.copy-hero h1 {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 15px;
}

.copy-hero p {
    font-size: 14px;
    color: #cbd5e1;
    margin-bottom: 25px;
    line-height: 1.5;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-hero-primary {
    background-color: #ffffff;
    color: #04549f;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s;
}

.btn-hero-primary:hover {
    background-color: #f1f5f9;
}

.btn-hero-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s;
}

.btn-hero-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.hero-image-box {
    width: 220px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    border: 2px dashed rgba(255, 255, 255, 0.2);
    z-index: 2;
}

.hero-image-box img {
    max-width: 120px;
    border-radius: 20px;
    height: auto;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.3));
}

/* Ficha de Características / Beneficios */
.features-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    background: var(--bg-card);
    padding: 20px;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.feature-item i {
    font-size: 28px;
    color: var(--brand-color);
    background: rgba(4, 84, 159, 0.1);
    padding: 10px;
    border-radius: 10px;
}

.feature-item h4 {
    font-size: 13px;
    font-weight: bold;
    color: var(--text-primary);
    margin: 0;
}

.feature-item p {
    font-size: 11px;
    color: var(--text-secondary);
    margin: 0;
}

/* Títulos de sección modernos */
.section-title-modern {
    margin: 25px 0 15px 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.section-title-modern h3 {
    font-size: 18px;
    font-weight: bold;
    color: var(--text-primary);
    margin: 0;
}

.section-title-modern span {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Categorías Visuales Tipo Banner */
.grid-categorias-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
}

.card-cat-modern {
    position: relative;
    height: 140px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-cat-modern img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    transition: transform 0.4s ease;
}

.card-cat-modern:hover img {
    transform: scale(1.08);
}

.cat-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.2));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 15px;
    color: white;
}

.cat-overlay h4 {
    font-size: 15px;
    font-weight: bold;
    margin: 0 0 2px 0;
}

.cat-overlay span {
    font-size: 11px;
    color: #38bdf8;
    font-weight: 600;
}

/* Ajustes Responsive */
@media (max-width: 768px) {
    .copy-hero {
        flex-direction: column;
        text-align: center;
        padding: 25px;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-image-box {
        display: none; /* Se oculta para moviles */
    }
}

/* |-PRODUCTOS Y BARRA LATERAL CATEGORÍAS-| */
.productos-header {
    margin-bottom: 15px;
}

.productos-layout {
    display: flex;
    gap: 20px;
    width: 100%;
}

.categorias-sidebar {
    width: 240px;
    background: var(--bg-card);
    padding: 15px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    height: fit-content;
}

.categorias-sidebar h3 {
    margin-bottom: 12px;
    font-size: 16px;
    color: var(--brand-color);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 6px;
}

.lista-categorias {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.btn-cat {
     width: 100%;
    text-align: left;
    padding: 8px 10px;
    border: none;
    background: transparent;
    color: var(--text-primary);
    cursor: pointer;
    border-radius: 6px;
    font-size: 13px;
    letter-spacing: 0.4px; 
}

.btn-cat:hover, .btn-cat.active {
    background-color: rgba(4, 84, 159, 0.12);
    color: var(--brand-color);
    font-weight: 600;
}

/* |-LOGO DE CASHEA IZQ ABAJO-| */
.tarjeta-producto {
    position: relative;
    z-index: 1;
}

.badge-card{
    position: relative;
    z-index: 50;
}

.img-container {
    position: relative;
    z-index: 2;         
    overflow: hidden;
}

.img-hover {
    position: absolute;
    bottom: 10px;         
    left: 10px;           
    width: 30px;        
    height: auto;
    z-index: 10;        
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: scale(0.8);
    pointer-events: none;
}

/* //Efecto al pasar el mouse// */
.tarjeta-producto:hover .img-hover {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

/* |-TARJETAS DE PRODUCTO-| */
.grid-productos {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    width: 100%;
    align-items: stretch; 
}

.tarjeta-producto {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 15px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%; 
    position: relative;
}

.tarjeta-producto h4 {
    font-size: 15px;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 38px; 
}

.descripcion-corta {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Clase que se agrega al pulsar "Ver más" */
.descripcion-corta.expandida {
    -webkit-line-clamp: unset;
    display: block;
}

.btn-ver-mas {
    background: transparent;
    border: none;
    color: var(--brand-color);
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    text-align: left;
    padding: 0;
    margin-bottom: 10px;
    width: fit-content;
}

.btn-ver-mas:hover {
    text-decoration: underline;
}

.tarjeta-producto .precio {
    font-size: 16px;
    font-weight: bold;
    color: var(--brand-color);
    margin-top: auto; /* Empuja el precio y botón hacia el fondo de la tarjeta */
    margin-bottom: 10px;
}

.badge-card {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #04549f;
    color: white;
    font-size: 10px;
    padding: 3px 6px;
    border-radius: 10px;
    font-weight: bold;
}

.img-container {
    width: 100%;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;

}

.img-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 6px;
}

.tarjeta-producto h4 {
    font-size: 15px;
    margin-bottom: 5px;
}

.descripcion-corta {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 10px;
    flex: 1;
}

.tarjeta-producto .precio {
    font-size: 16px;
    font-weight: bold;
    color: var(--brand-color);
    margin-bottom: 10px;
}

.btn-comprar {
    padding: 8px;
    background-color: #25d366;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    text-align: center;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.no-resultados {
    grid-column: 1 / -1;
    text-align: center;
    padding: 30px;
    color: var(--text-secondary);
}

/* |-SERVICIOS-| */
.grid-servicios {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 15px;
    width: 100%;
}

.tarjeta-servicio {
    background: var(--bg-card);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.icono-servicio {
    font-size: 40px;
    color: var(--brand-color);
    margin-bottom: 12px;
}

/* |-UBICACIÓN Y CONTACTO */
.info-ubicacion, .contacto-box {
    background: var(--bg-card);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    width: 100%;
}

.mapa-container {
    margin-top: 15px;
    width: 100%;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 10px 18px;
    background-color: #25d366;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 14px;
}

/* |-FOOTER-| */
.footer {
    background: #04549f;
    color: white;
    padding: 30px 20px 15px;
    margin-top: auto;
    width: 100%;
}

/* Faja Superior  */
.footer-top-strip {
    max-width: 1250px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 30px;
    padding-bottom: 25px;
}

.strip-block {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.strip-block h3 {
    font-size: 15px;
    font-weight: bold;
    color: #ffffff;
    margin: 0;
}

.strip-items {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    color: #e2e8f0;
    font-size: 13px;
    font-weight: 500;
}

.pay-item {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
}

.pay-item i {
    font-size: 16px;
    color: #ffe600;
}

.shipping-logo {
    font-weight: 900;
    letter-spacing: 1px;
    background: rgba(255, 255, 255, 0.15);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
}

/* Redes Sociales */
.redes-sociales {
    display: flex;
    gap: 10px;
}

.redes-sociales a {
    color: white;
    font-size: 18px;
    background: rgba(255, 255, 255, 0.15);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.3s ease;
}

.redes-sociales a:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Línea separadora tenue */
.footer-divider {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    max-width: 1250px;
    margin: 0 auto 25px auto;
}

/* Sección Inferior */
.footer-container {
    max-width: 1250px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 25px;
    width: 100%;
}

.footer-profile {
    max-width: 350px;
    width: 100%;
}

.footer-profile .logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-profile .logo img {
    height: 30px;
}

.footer-profile .logo span {
    font-size: 18px;
    font-weight: bold;
}

.footer-profile p {
    color: #e2e8f0;
    font-size: 13px;
    margin-top: 8px;
    line-height: 1.4;
}

.footer-links {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.columna-link h3 {
    font-size: 15px;
    margin-bottom: 10px;
}

.columna-link ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0;
    margin: 0;
}

.columna-link a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 13px;
}

.columna-link a:hover {
    color: #ffffff;
}

/* |-BARRA INFERIOR DEL FOOTER-| */
.footer-copy {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin-top: 20px;
    padding: 12px 20px;
    font-size: 12px;
    color: #cbd5e1;
    width: 100%;
}

.footer-copy-content {
    max-width: 1250px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* Crédito UPTA fijo en la izquierda */
.upta-credito-min {
    font-weight: 600;
    color: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 11px;
    letter-spacing: 0.3px;
    width: 300px; 
    text-align: left;
}

/* Texto de Copy Service en el centro */
.footer-copy-content p {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    text-align: center;
}

.footer-copy-content::after {
    content: "";
    width: 300px;
}

/* Ajuste para celulares (en pantallas pequeñas se apilan de forma ordenada) */
@media (max-width: 768px) {
    .footer-copy-content {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .upta-credito-min {
        width: 100%;
        text-align: center;
    }

    .footer-copy-content p {
        position: static;
        transform: none;
    }

    .footer-copy-content::after {
        display: none;
    }
}

/* |-RESPONSIVE-| */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        align-items: stretch;
    }
    .busqueda-container {
        max-width: 100%;
    }
    .menu {
        justify-content: center;
    }
    .productos-layout {
        flex-direction: column;
    }
    .categorias-sidebar {
        width: 100%;
    }
    .footer-links {
        gap: 20px;
        width: 100%;
    }
}