/* --- CONFIGURACIÓN Y RESET --- */
html {
    scroll-behavior: smooth;
}

:root {
    --azul-daxer: #036227;
    --verde-agua: #036227;
    --blanco: #ffffff;
    --texto-oscuro: #1c1c1c;
    --texto-gris: #555555;
    --gris-fondo: #f4f7f6;
    --borde-gris: #e1e1e1;
    --shadow: 0 4px 20px rgba(0,0,0,0.05);
    --color-principal: #3ca848; /* Tu verde original */
    --color-fondo: #ffffff;      /* Blanco puro para el inicio */
    --color-texto: #1c2833;
    --azul-logo: #48709D;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body { 
    font-family: 'Poppins', sans-serif; 
    background-color: var(--blanco); 
    color: var(--texto-oscuro); 
    line-height: 1.6;
}

/*COMINEZO DEL NAVBAR*/

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
    padding: 0 8%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: var(--blanco);
    transition: 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    background-color: transparent; 
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    margin-left: 3rem; /* Espacio después del logo */
}

.nav-links { 
    list-style: none; 
    display: flex; 
    gap: 2.5rem; 
}

.nav-links a { 
    text-decoration: none; 
    color: var(--verde-agua); 
    font-weight: 500; 
    font-size: 1.1rem;
    transition: 0.3s;
}

.nav-links a:hover { color: var(--texto-oscuro); }

.nav-links .dropdown a { display: flex; align-items: center; gap: 5px; }

.nav-btns { display: flex; gap: 1rem; align-items: center; }



.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--azul-daxer);
    cursor: pointer;
    z-index: 1001;
}
/* --- BOTONES --- */
/* --- BOTONES UNIFICADOS DAXER --- */
.btn-primario, .btn-secundario {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.8rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    font-family: 'Poppins', sans-serif;
    /* Forzamos que ambos tengan el mismo esquema de caja */
    border: 1px solid transparent; 
    height: 45px; /* Altura fija opcional para asegurar simetría total */
}

.btn-primario {
    background-color: var(--azul-daxer);
    color: var(--blanco);
    border-color: var(--azul-daxer); /* Borde del mismo color que el fondo */
}
.full-width {
    width: 100%;       /* Ocupa todo el ancho disponible */
    display: flex;     /* Activamos Flexbox */
    justify-content: center; /* Centra el texto horizontalmente */
    align-items: center;     /* Centra el texto verticalmente */
}
.btn-secundario {
    background-color: transparent;
    color: var(--azul-daxer);
    border-color: var(--azul-daxer); /* Borde visible */
}

/* Hovers para que mantengan el estilo */
.btn-primario:hover {
    background-color:#013e19;
    
    transform: translateY(-2px);
}

.btn-secundario:hover {
    background-color:#eaeaea;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--azul-daxer);
    padding: 0.7rem 1.8rem;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid var(--borde-gris);
    border-radius: 5px;
    transition: 0.3s;
}
.btn-outline:hover { background-color: rgba(0, 209, 178, 0.05); color: var(--verde-agua); border-color: var(--verde-agua); }

/*--------------*/
/*FIN DEL NAVBAR*/
/*--------------*/


/*--------------*/
/* --- HERO SECTION --- */
/*--------------*/
.hero {
    height: auto; /* Cambiamos de 100vh a auto para que el contenido fluya hacia abajo */
    display: flex;
    flex-direction: column; /* Apila video arriba y texto abajo */
    align-items: center;    /* Centra todo horizontalmente */
    text-align: center;     /* Centra el texto */
    padding: 120px 8% 60px 8%; /* Más espacio arriba por el navbar fijo */
}

.hero-content { flex: 1; padding-right: 5%; }

/* 1. Definimos el barrido (desde transparente y abajo hacia arriba) */
@keyframes barridoGoshop {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 2. Aplicamos a tus clases existentes */
.badget {
    display: inline-block;
    background-color: var(--azul-daxer);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    
    /* Animación: dura 0.6s y empieza de inmediato */
    animation: barridoGoshop 1s ease-out forwards;
}

.hero-content h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: var(--azul-logo);
    
    /* Animación: con un pequeño retraso para que aparezca después del badge */
    animation: barridoGoshop 1.2s ease-out 0.4s forwards;
    opacity: 0; /* Lo mantenemos oculto hasta que inicie la animación */
}



.highlight { color: var(--verde-agua); }

.hero-content p {
    font-size: 1.1rem;
    text-align: center;
    color: var(--texto-gris);
    margin-bottom: 2.5rem;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

.hero-btns { 
    display: flex; 
    gap: 1.5rem; /* Un poquito más de aire entre botones queda mejor */
    align-items: center; 
    
    /* ESTO ES LO QUE FALTA PARA CENTRARLOS */
    justify-content: center; 
    width: 100%; 
    margin-top: 2rem; /* Separación respecto al párrafo */
}
.hero-btns a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 50px;           /* Altura fija para que sean iguales */
    min-width: 180px;       /* Ancho mínimo para consistencia visual */
    padding: 0 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: 0.3s;
}

.hero-visual {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 3rem; /* Espacio entre video y texto */
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 900px; /* Tamaño grande que pediste antes */
    aspect-ratio: 16 / 9; /* Mantiene la proporción de YouTube */
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    background: #000; /* Fondo negro mientras carga */
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-preview { width: 100%; height: 100%; object-fit: cover; }
/*--------------*/
/*FIN DEL HERO*/
/*--------------*/




/*--------------*/
/* --- SECCIÓN PRECIOS --- */
/*--------------*/
.pricing-section {
    padding: 80px 8%;
    background-color: #ffffff;
    text-align: center;
}

.pricing-header h2 { font-size: 2.5rem; color: var(--azul-daxer); margin-bottom: 10px; }
.pricing-header p { color: #666; margin-bottom: 50px; }

.pricing-grid { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; }

.price-card {
    background: #fff;
    border: 1px solid var(--borde-gris);
    
    padding: 40px 30px;
    width: 350px;
    position: relative;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}

.price-card:hover { transform: translateY(-10px); box-shadow: 0 10px 30px rgba(0, 209, 178, 0.1); }

.price-card.featured { border: 2px solid var(--verde-agua); transform: scale(1.05); }

.most-chosen {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--verde-agua);
    color: #fff;
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: bold;
}

.price { font-size: 3rem; font-weight: 700; color: var(--verde-agua); margin-bottom: 30px; }
.price sup { font-size: 1.5rem; }
.price span { font-size: 1rem; color: #999; }

.features { list-style: none; text-align: left; margin-bottom: 40px; }
.features li { margin-bottom: 15px; font-size: 0.9rem; color: #555; display: flex; align-items: center; gap: 10px; }
.features i { color: var(--verde-agua); }

.btn-plan {
    padding: 12px;
    border: 1px solid var(--verde-agua);
    border-radius: 8px;
    text-decoration: none;
    color: var(--azul-daxer);
    font-weight: bold;
    margin-top: auto;
    transition: 0.3s;
    text-align: center;
}

.featured-btn { background: var(--verde-agua); color: #fff; }
/*--------------*/
/* --- SECCIÓN PRECIOS --- */
/*--------------*/





/*--------------*/
/* --- SECCIÓN FAQ --- */
/*--------------*/
.faq-section {
    padding: 100px 8%;
    position: relative;
    overflow: hidden;
    background: linear-gradient(270deg, #fdf6e3, #ffffff, #f4fcfb);
    background-size: 600% 600%;
    animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

.faq-container { flex-direction:column; gap: 50px; align-items: flex-start; position: relative; z-index: 2; }

.faq-text h2 { font-size: 2.8rem; color: var(--azul-daxer); line-height: 1.2; }

.faq-list { flex: 1.5; background: white; padding: 20px; border-radius: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }

.faq-item { border-bottom: 1px solid #eee; padding: 15px 0; }

.faq-question {
    width: 100%; background: none; border: none; display: flex; justify-content: space-between;
    align-items: center; padding: 15px; cursor: pointer; font-size: 1.1rem; font-weight: 600;
    color: var(--azul-daxer); text-align: left; font-family: 'Poppins', sans-serif;
}
.faq-answer { max-height: 0; overflow: hidden; transition: 0.3s ease-out; padding: 0 15px; }
.faq-item.active .faq-answer { max-height: 200px; padding: 10px 15px 20px 15px; }



/* --- MODAL DE REGISTRO --- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 37, 64, 0.85);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    padding: 20px;
}
.registration-container {
    background: #ffffff;
    width: 100%;
    max-width: 500px;
    padding: 40px;
    
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    position: relative;
    animation: modalAppear 0.4s ease;
}
@keyframes modalAppear { from { transform: translateY(-20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 30px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
}
.close-modal:hover { color: var(--azul-daxer); }

/* --- ELEMENTOS DEL FORMULARIO --- */
.steps-indicator { display: flex; justify-content: center; gap: 10px; margin-bottom: 30px; }
.step {
    height: 35px; width: 35px; background-color: #eee; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-weight: bold; color: #aaa;
}
.step.active { background-color: var(--verde-agua); color: white; }
input, select {
    width: 100%; padding: 14px; margin: 10px 0; border: 1px solid var(--borde-gris);
    border-radius: 10px; font-family: 'Poppins', sans-serif; outline: none;
}
input:focus { border-color: var(--verde-agua); }
.slug-preview { background: var(--gris-fondo); padding: 10px; border-radius: 8px; font-size: 0.85rem; margin-bottom: 15px; }
#slugText { font-weight: bold; color: var(--verde-agua); }
.form-navigation { display: flex; justify-content: space-between; margin-top: 30px; gap: 10px; }
#nextBtn { background-color: var(--azul-daxer); color: white; border: none; padding: 12px 25px; border-radius: 8px; cursor: pointer; flex: 1; font-weight: 600; }
#prevBtn { background-color: #eee; color: #666; border: none; padding: 12px 25px; border-radius: 8px; cursor: pointer; flex: 1; font-weight: 600; }
/* --- WHATSAPP FLOAT --- */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: #52d069; /* Verde más vibrante como el de la imagen */
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1000;
    box-shadow: 0 10px 25px rgba(82, 208, 105, 0.3);
    transition: 0.3s;
    font-family: 'Poppins', sans-serif;
}
.whatsapp-float:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(82, 208, 105, 0.4);
}
.wa-icon i {
    font-size: 2rem;
}
.wa-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.wa-title {
    font-weight: 700;
    font-size: 1rem;
}
.wa-sub {
    font-size: 0.75rem;
    opacity: 0.9;
    font-weight: 400;
}
/* El globito azul de "Online" */
.wa-status {
    position: absolute;
    top: -10px;
    right: 0;
    background-color: #4480ff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 4px 10px rgba(68, 128, 255, 0.3);
}
.status-dot {
    width: 8px;
    height: 8px;
    background-color: white;
    border-radius: 50%;
    display: inline-block;
}
/* MODAL PARA INGRESO A CLIENTES */
.texto-modal-login{
    text-align:center;
}
.close-modal-login {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 30px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
}
.login-container {
    max-width: 400px !important;
    text-align: center;
    
}
.input-group-vertical {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 20px 0;
}
.login-footer {
    margin-top: 20px;
    font-size: 0.9rem;
}
.link-secundario {
    color: #666;
    display: block;
    margin-bottom: 10px;
    text-decoration: none;
    text-align: center;
}
.link-verde {
    color: var(--verde-agua);
    font-weight: bold;
    text-decoration: none;
}
.info-text{
    text-align: center;
}
/* Responsive: En celulares muy chicos achicamos un poco el botón */
@media (max-width: 480px) {
    .whatsapp-float {
        bottom: 1rem;
        right: 1rem;
        padding: 10px 20px;
    }
    .wa-sub { display: none; } /* Ocultamos el subtítulo en móviles mini para ahorrar espacio */
}
/* --- RESPONSIVE (Móviles) --- */
@media (max-width: 1350px) {
    .navbar { height: 70px; padding: 0 5%; }
    .menu-toggle { display: block; }
    .nav-container {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        max-height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        padding: 40px 10%; /* Más padding lateral para que no toquen los bordes */
        transition: 0.4s ease-in-out;
        box-shadow: -10px 0 20px rgba(0,0,0,0.1);
        display: flex;
        align-items: center;    /* Centra los bloques horizontalmente */
        justify-content: center; /* Centra el contenido verticalmente si hay espacio */
        gap: 2rem;
        overflow-y: auto;
        border-radius: 0 0 0 20px; /* Un toque de diseño para la esquina */
    }
    .nav-container.active { right: 0; }
    .nav-links {
        list-style: none;
        padding: 0;
        display: flex !important;
        flex-direction: column;
        align-items: center; /* Centra cada <li> */
        gap: 1.5rem;
        width: 100%;
    }
    .nav-links a {
        font-size: 1.1rem;
        color: var(--texto-oscuro);
        text-decoration: none;
        font-weight: 500;
    }
    .nav-btns {
        display: flex !important;
        flex-direction: column;
        width: 100%; /* Ocupa todo el ancho del contenedor blanco */
        gap: 1rem;
    }
    /* --- AQUÍ HACEMOS QUE LOS BOTONES SEAN IDÉNTICOS --- */
    .nav-btns .btn-primario, 
    .nav-btns .btn-secundario {
        width: 100%;        /* Ambos ocupan el mismo ancho total */
        display: flex;
        align-items: center;
        justify-content: center;
        height: 50px;       /* Altura fija para que sean iguales */
        border-radius: 8px;
        font-size: 1rem;
        padding: 0;         /* Quitamos padding para que el height mande */
    }
    .nav-btns a { width: 100%; text-align: center; }
    .hero { flex-direction: column; text-align: center; padding: 120px 5% 50px 5%; height: auto; }  
    .hero-content h1 { font-size: 2.2rem; }
    .hero-btns { flex-direction: column; width: 100%; }  
    .pricing-grid { gap: 20px; }
    .price-card { width: 50%; }
    .faq-container { flex-direction: column; }
}
@media (max-width: 750px) {
    .price-card { width: 100%; }
}
.border-radius-20 {
    border-radius: 20px !important;
    border: none !important;
}
.btn-redondeado {
    border-radius: 50px !important;
    padding: 12px 30px !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}


/*ESTILOS PARA CUANDO NO PUEDE INGRESAR POR FALTA DE PAGO*/
.notificacion-error-daxer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #f8d7da; /* Rojo clarito */
    color: #721c24; /* Texto bordó oscuro */
    padding: 15px;
    text-align: center;
    font-weight: bold;
    z-index: 10000;
    border-bottom: 1px solid #f5c6cb;
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

/*AQUIVAN LOS RUBROS ARIBA DE LOS PRECIOS*/
.rubros-section {
    padding:  1rem;
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--azul-logo);
    margin-bottom: 0.5rem;
}

.section-header p {
    color: #666;
    margin-bottom: 3rem;
}

/* Grilla de 12 rubros */
.rubros-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); /* Se ajusta solo */
    gap: 1.5rem;
}

.rubro-item {
    background: white;
    padding: 1.5rem;
    border-radius: 18px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.rubro-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: var(--color-rubro);
}

.rubro-item span {
    font-size: 0.9rem;
    font-weight: 600;
    color: #444;
}

/* Estilo de los Iconos */
.rubro-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* Colores específicos por Rubro (podés usar tus variables) */
.icon-almacen { background: #e3f2fd; color: #1976d2; }
.icon-comida { background: #fff3e0; color: #f57c00; }
.icon-dietetica { background: #e8f5e9; color: #388e3c; }
.icon-ropa { background: #f3e5f5; color: #7b1fa2; }
.icon-tejidos { background: #efebe9; color: #5d4037; }
.icon-carne { background: #ffebee; color: #d32f2f; }
.icon-verduleria { background: #f1f8e9; color: #689f38; }
.icon-panaderia { background: #fffde7; color: #fbc02d; }
.icon-mascotas { background: #e0f2f1; color: #00796b; }
.icon-vinoteca { background: #fce4ec; color: #c2185b; }
.icon-limpieza { background: #e0f7fa; color: #0097a7; }
.icon-electronica { background: #ede7f6; color: #512da8; }

/*FIN DE LAS TARJETAS*/

/*AQUI PONEMOS LOS ESTILOS DE LOS RUBROS EN EL IDEAL PARA */
/* Estilo base del contenedor del dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

/* Ocultamos la lista por defecto */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 220px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.1);
    z-index: 1000;
    list-style: none;
    padding: 10px 0;
    border-radius: 12px; /* Redondeado estilo DAXER */
    margin-top: 5px;
    border: 1px solid #eee;
}



/* Estilo de los links dentro del desplegable */
.dropdown-content li a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #1c2833; /* El color de texto principal que ya usás */
    text-decoration: none;
    transition: background-color 0.3s;
    
    /* ESTO ES LO NUEVO PARA LOS EMOJIS */
    font-size: 1rem;    /* Tamaño del texto */
    gap: 15px;          /* Separación entre el Emoji y el Texto */
}

/* Color al pasar el mouse por cada rubro */
.dropdown-content li a:hover {
    background-color: #f8f9fa;
    color: #3ca848; /* Tu verde DAXER */
}
/* Para que el emoji sea un poquito más grande que el texto y se luzca */
.dropdown-content li a::first-letter {
    font-size: 1.3rem; 
}


/*ACA VA EL CODIGO PARA ABRIR EL MODAL CELULAR AL PRECIONAR EL RUBRO */
/* El fondo oscuro del modal */
.modal1 {
    display: none; 
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
}

/* Contenedor del contenido */
.modal-content1 {
    position: relative;
    margin: auto;
    top: 50%;
    transform: translateY(-50%);
    width: 300px; /* Ancho de un celular */
}

/* El "marco" del celular */
.iphone-frame1 {
    width: 300px;
    height: 580px;
    background: #222;
    border: 8px solid #333;
    border-radius: 40px;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
    overflow: hidden;
    position: relative;
}

/* La pantalla del celular */
.screen-content {
    width: 100%;
    height: 100%;
    background: white;
    overflow-y: auto; /* Permite hacer scroll dentro de la foto */
}

.screen-content img {
    width: 100%;
    display: block;
}

/* Botón cerrar */
.close-modal1 {
    position: absolute;
    right: -50px; top: 0;
    color: white;
    font-size: 40px;
    cursor: pointer;
}
/*FIN SECCION TOCAR CELULAR ABRE FOTO RUBRO*/

/* Esto controla que en PC se vea como una cajita flotante
y en el celu se despliegue hacia abajo sin romper
el menú hamburguesa: */
.dropdown-content.show-dropdown {
    display: block !important;
    opacity: 1;
    visibility: visible;
}

/* Ajuste para celulares (Responsive) */
@media (max-width: 768px) {
    .dropdown-content {
        position: static; /* Se mete dentro del flujo del menú mobile */
        box-shadow: none;
        width: 100%;
        background-color: #f9f9f9; /* Un tono grisáceo para diferenciarlo */
        padding-left: 20px; /* Sangría para que se note que son sub-opciones */
    }
    
    .dropdown-content li a {
        padding: 10px;
        border-bottom: none;
    }
}

/*TEMAS PARA QUE SE VEAN LAS PAGINAS SEGUN LOS RUBROS */

body.tema-almacen{ 
    --color-rubro: #018208;
    --color-fondo: #dad9d9;
    --color-texto: #ffffff;
    --imagen-patron1: url('/static/img_categorias/patron-almacen.png');
    --imagen-patron2: url('/static/img_categorias/patron-almacen2.png');
    --imagen-patron3: url('/static/img_categorias/patron-almacen3.png');
    --imagen-patron4: url('/static/img_categorias/patron-almacen4.png');
}

body.tema-comida{ 
    --color-rubro: #CD853F; 
    --color-fondo: #F2E8DF; 
    --color-texto: #ffffff;
    --imagen-patron1: url('/static/img_categorias/patron-comida.png');
    --imagen-patron2: url('/static/img_categorias/patron-comida2.png');
    --imagen-patron3: url('/static/img_categorias/patron-comida3.png');
    --imagen-patron4: url('/static/img_categorias/patron-comida4.png');
    
}

body.tema-dietetica{ 
    --color-rubro: #004a10; 
    --color-fondo: #daecde;
    --color-texto: #ffffff;
    --imagen-patron1: url('/static/img_categorias/patron-dietetica.png');
    --imagen-patron2: url('/static/img_categorias/patron-dietetica2.png');
    --imagen-patron3: url('/static/img_categorias/patron-dietetica3.png');
    --imagen-patron4: url('/static/img_categorias/patron-dietetica4.png');
}

body.tema-indumentaria{ 
    --color-rubro: #5210eb; 
    --color-fondo: rgba(197, 116, 251, 0.977);  
    --color-texto: #ffffff;
    --imagen-patron1: url('/static/img_categorias/patron-indumentaria.png');
    --imagen-patron2: url('/static/img_categorias/patron-indumentaria2.png');
    --imagen-patron3: url('/static/img_categorias/patron-indumentaria3.png');
    --imagen-patron4: url('/static/img_categorias/patron-indumentaria4.png');
}

body.tema-tejidos{ 
    --color-rubro: #9340b4; 
    --color-fondo: rgb(249, 238, 255); 
    --color-texto: #ffffff;
    --imagen-patron1: url('/static/img_categorias/patron-tejido.png');
    --imagen-patron2: url('/static/img_categorias/patron-tejido2.png');
    --imagen-patron3: url('/static/img_categorias/patron-tejido3.png');
    --imagen-patron4: url('/static/img_categorias/patron-tejido4.png');
}

body.tema-carniceria{ 
    --color-rubro: #c0392b; 
    --color-fondo: rgb(246, 187, 187); 
    --color-texto: #ffffff; 
    --imagen-patron1: url('/static/img_categorias/patron-carniceria.png');
    --imagen-patron2: url('/static/img_categorias/patron-carniceria2.png');
    --imagen-patron3: url('/static/img_categorias/patron-carniceria3.png');
    --imagen-patron4: url('/static/img_categorias/patron-carniceria4.png');
}

body.tema-verduleria{
    --color-rubro:  rgba(57, 163, 41, 0.966); ; 
    --color-fondo: #ff6606;
    --color-texto: #ffffff; 
    --imagen-patron1: url('/static/img_categorias/patron-verduleria.png');
    --imagen-patron2: url('/static/img_categorias/patron-verduleria2.png');
    --imagen-patron3: url('/static/img_categorias/patron-verduleria3.png');
    --imagen-patron4: url('/static/img_categorias/patron-verduleria4.png');
}

body.tema-panaderia{ 
    --color-rubro: #98644f; 
    --color-fondo: #cfac89;  
    --color-texto: #fef4ee; 
    --imagen-patron1: url('/static/img_categorias/patron-panaderia.png');
    --imagen-patron2: url('/static/img_categorias/patron-panaderia2.png');
    --imagen-patron3: url('/static/img_categorias/patron-panaderia3.png');
    --imagen-patron4: url('/static/img_categorias/patron-panaderia4.png');
}

body.tema-mascotas{ 
    --color-rubro: #16a085; 
    --color-fondo: #eabf95; 
    --color-texto: #ffffff; 
    --imagen-patron1: url('/static/img_categorias/patron-mascota.png');
    --imagen-patron2: url('/static/img_categorias/patron-mascota2.png');
    --imagen-patron3: url('/static/img_categorias/patron-mascota3.png');
    --imagen-patron4: url('/static/img_categorias/patron-mascota4.png');
}
body.tema-vinoteca{ 
    --color-rubro: #581845; 
    --color-fondo: rgb(220, 165, 205);  
    --color-texto: #f6eff3; 
    --imagen-patron1: url('/static/img_categorias/patron-vinoteca.png');
    --imagen-patron2: url('/static/img_categorias/patron-vinoteca2.png');
    --imagen-patron3: url('/static/img_categorias/patron-vinoteca3.png');
    --imagen-patron4: url('/static/img_categorias/patron-vinoteca4.png');
}

body.tema-limpieza{ 
    --color-rubro: rgb(123, 116, 255); 
    --color-fondo: #9adcf7;  
    --color-texto: #ffffff; 
    --imagen-patron1: url('/static/img_categorias/patron-limpieza.png');
    --imagen-patron2: url('/static/img_categorias/patron-limpieza2.png');
    --imagen-patron3: url('/static/img_categorias/patron-limpieza3.png');
    --imagen-patron4: url('/static/img_categorias/patron-limpieza4.png');
}

body.tema-electronica{ 
    --color-rubro: #001aff; 
    --color-fondo: rgb(182, 254, 248);  
    --color-texto: #ffffff; 
    --imagen-patron1: url('/static/img_categorias/patron-electronica.png');
    --imagen-patron2: url('/static/img_categorias/patron-electronica2.png');
    --imagen-patron3: url('/static/img_categorias/patron-electronica3.png');
    --imagen-patron4: url('/static/img_categorias/patron-electronica4.png');
}

/* Aplicamos la transparencia al body de forma general */
body[class*="tema-"] {
    background-color: var(--color-fondo) !important;
}

/* 2. APLICACIÓN SELECTIVA (Solo si el body tiene un tema) */

/* La Navbar también toma el color de fondo del rubro */
/* Si el body tiene cualquier clase de tema, la navbar debe usar el mismo fondo */
body[class*="tema-"] .navbar {
    background-color: var(--color-solido) !important;
    opacity: 1 !important; /* Fuerza a que no haya transparencia */
    backdrop-filter: none !important; /* Quita efectos de desenfoque si los hubiera */
}


body[class*="tema-"] .faq-section {
    background: var(--color-solido) !important; /* Usamos 'background' para pisar el degradado */
    animation: none !important; /* Apagamos la animación para ahorrar recursos */
    opacity: 1 !important;
}

/* Ajuste opcional para que los links no se vean raros sobre el color suave */
body[class*="tema-"] .nav-links a {
    color: var(--texto-oscuro);
}

/* El texto highlight solo cambia si el body tiene alguna clase "tema-" */
body[class*="tema-"] .highlight {
    color: var(--color-rubro);
}

/* Los botones solo cambian si el body tiene alguna clase "tema-" */
body[class*="tema-"] .btn-primario, 
body[class*="tema-"] .btn-plan.featured-btn {
    background-color: var(--color-rubro) !important;
    border-color: var(--color-rubro) !important;
}