.elementor-18601 .elementor-element.elementor-element-0f11b46{--display:flex;--flex-direction:column;--container-widget-width:100%;--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;}.elementor-18601 .elementor-element.elementor-element-e8c84a2{--display:flex;}/* Start custom CSS for html, class: .elementor-element-783c018 *//* VARIABLES Y RESET BÁSICO */
:root {
    --color-primary: 
#083a6f; /* Azul Lumbreras */
    --color-secondary: #00796B; /* Verde de acento para CTA */
    --color-text: #333;
    --color-light: #f9f9f9;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    background-color: #fff;
}

.container {
    width: 90%;
    max-width: 1200px; /* Ancho máximo para PC */
    margin: 0 auto;
}

h1, h2 {
    color: var(--color-primary);
    margin-bottom: 20px;
}

a {
    text-decoration: none;
    color: var(--color-text);
}



/* 2. BANNER PRINCIPAL */
.hero-banner {
    background-color: #0d326f; /* Color de fondo oscuro si la imagen no carga (azul marino) */
    color: white;
    padding: 60px 0; 
    position: relative;
    overflow: hidden;
    height: 310px; /* Altura fija para el banner */
    display: flex; /* Usamos flexbox para centrar el contenido verticalmente */
    align-items: center; /* Centra el contenido verticalme  nte */

    /* Agregamos la imagen como fondo CSS */
    background-image: url('https://www.elumbreras.com.pe/wp-content/uploads/2025/10/BANNER-SAN-MARCOS-26-I_Mesa-de-trabajo-1.png'); /* <-- RECUERDA REEMPLAZAR CON LA RUTA CORRECTA DE TU IMAGEN */
    background-size: contain; /* La imagen cubre todo el área del banner */
    background-position: center; /* Centra la imagen */
    background-repeat: no-repeat; /* Evita que la imagen se repita */
}

/* Oscurecer la imagen para que el texto resalte (Overlay) */
.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Capa semi-transparente negra (40% opacidad) */
    z-index: 1; /* Asegura que el overlay esté debajo del contenido pero sobre el texto */
}


.hero-banner .container {
    position: relative; /* Asegura que el contenido esté sobre el overlay */
    z-index: 2; /* Mayor que el overlay */
    display: flex;
    align-items: center;
    justify-content: flex-end; /* Alinea el contenido a la derecha */
    height: 100%; /* Ocupa toda la altura del banner */
    /* Eliminamos la imagen <img class="hero-image"> del HTML, ya que ahora es un fondo CSS */
}

/* El contenido del banner (texto y botón) */
.hero-content {
    width: 550%; /* Ocupa la mitad del ancho del contenedor */
         transform: translateY(20%);
     text-align: right; /* Alinea el texto a la derecha */
    padding-right: 20px; /* Pequeño espacio a la derecha */
}

.hero-content h1 {
    color: white;
    font-size: 2.8em; /* Aumentado para mayor impacto */
    margin-bottom: 10px;
    line-height: 1.2;
}
.hero-content p {
    font-size: 1.3em;
    margin-bottom: 30px;
}

/* Estilo del CTA se mantiene del código anterior */
.cta-button {
    background-color: var(--color-secondary);
    color: white;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: bold;
    display: inline-block;
    transition: background-color 0.3s;
}
.cta-button:hover {
    background-color: #004d40;
}

/* 3. MATERIALES POR ÁREA (PESTAÑAS) */
.materiales-area {
    padding: 50px 0;
    background-color: var(--color-light);
}

.tabs {
    display: flex;
    border-bottom: 2px solid #ccc;
    margin-bottom: 30px;
}

.tab-button {
    background: none;
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
    color: var(--color-text);
}

.tab-button:hover {
    color: var(--color-primary);
}

.tab-button.active {
    border-bottom: 3px solid var(--color-primary);
    color: var(--color-primary);
    background-color: #fff;
}

/* Estilos del Contenedor de Productos */
.products-grid {
    display: flex; 
    flex-wrap: wrap;
    gap: 30px;
    min-height: 350px; /* Evita que el contenido salte mucho al cambiar de pestaña */
}

.product-card {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    padding: 15px;
    transition: transform 0.3s, box-shadow 0.3s;
    
    /* Configuración de las columnas para PC */
    flex: 1 1 calc(25% - 30px); 
    max-width: calc(25% - 30px);
    
    /* Oculto por defecto, JS lo hará visible */
    display: none; 
    animation: fadeIn 0.5s;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* CLASE QUE ACTIVA JS PARA MOSTRAR LA TARJETA */
.product-card.visible {
    display: block; 
}


.product-card img {
    width: 100%;
    max-height: 200px;
    object-fit: contain;
    margin-bottom: 15px;
}

.area-tag {
    display: block;
    font-size: 0.8em;
    color: var(--color-primary);
    font-weight: bold;
    margin-bottom: 5px;
}

.product-card h3 {
    font-size: 1.2em;
    margin-bottom: 5px;
    color: var(--color-text);
}

.price {
    font-size: 1.4em;
    font-weight: bold;
    color: var(--color-secondary);
    margin-bottom: 15px;
}

.add-to-cart-btn {
    background-color: var(--color-secondary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
    font-weight: 600;
}
.add-to-cart-btn:hover {
    background-color: #004d40;
}
/* Estilo para los nuevos enlaces que funcionan como botones (Ver Respuestas, etc.) */
.cta-link-button {
    background-color: var(--color-secondary);
    color: white; /* Aseguramos que el color inicial sea blanco */
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s; /* Añadimos color a la transición */
    width: 100%; 
    font-weight: 600;
    display: inline-block; 
    text-align: center; 
    text-decoration: none; 
}

.cta-link-button:hover {
    background-color: #004d40; /* Fondo más oscuro al hacer hover */
    color: white; /* <--- ESTA ES LA CLAVE: Asegura que el texto siga siendo blanco */
}

/* 4. PREGUNTAS FRECUENTES (FAQ) */
.faq-section {
    padding: 50px 0;
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Dos columnas en PC */
    gap: 20px;
    margin-bottom: 20px;
}

.faq-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

.faq-question {
    background-color: var(--color-light);
    padding: 15px;
    margin: 0;
    font-size: 1.1em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--color-text);
}

.faq-answer {
    padding: 15px;
    background-color: white;
    border-top: 1px solid #eee;
    display: none; /* Oculto por defecto, JS lo mostrará */
}

/* Rotación del icono al abrir el acordeón */
.faq-item.open .fa-chevron-right {
    transform: rotate(90deg);
}

.disclaimer {
    text-align: center;
    font-size: 0.9em;
    color: #666;
    margin-top: 20px;
}

/* ... CSS anterior (mantener) ... */

/* ... CSS anterior (mantener) ... */

/* 5. OTROS SOLUCIONARIOS */
.otros-solucionarios {
    background-color: #eee;
    padding: 40px 0;
    text-align: center;
}

/* Wrapper para posicionar las flechas sobre el carrusel */
.carousel-wrapper {
    position: relative; 
    padding: 0 40px; 
    margin-top: 20px;
}

.year-buttons-carousel {
    display: flex;
    overflow-x: auto; 
    scroll-behavior: smooth; 
    white-space: nowrap; 
    justify-content: flex-start;
    gap: 20px; /* Separación entre las fichas */
    padding: 10px 0;
    
    /* Mostrar Scrollbar por defecto en PC */
    -ms-overflow-style: auto; 
    scrollbar-width: auto; 
}

/* Scrollbar styling (Chrome/Safari) */
.year-buttons-carousel::-webkit-scrollbar {
    height: 8px;
    display: block; 
}
.year-buttons-carousel::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 4px;
}


/* Estilo de la FICHA (Card) de Solucionario */
.year-btn {
    flex-shrink: 0; 
    
    background-color: white;
    border: 1px solid #ccc; /* Borde más sutil que el rojo */
    color: var(--color-text); /* Texto en color oscuro */
    padding: 25px 35px; /* Más padding para que parezca una ficha */
    border-radius: 12px;
    line-height: 1.2;
    transition: all 0.3s;
    text-align: center;
    min-width: 180px; /* Aumento el ancho para que parezca una ficha */
    
    /* Estilos de la fuente interna */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-year {
    font-size: 1.8em;
    font-weight: bold;
    color: #444; /* Color de año más oscuro */
    margin-bottom: 5px;
}

.card-subtitle {
    font-size: 0.9em;
    font-weight: 600;
    color: var(--color-primary); /* Subtítulo en rojo */
}

.year-btn:hover, .year-btn.active {
    background-color: var(--color-primary);
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.15);
    border-color: var(--color-primary);
}

.year-btn:hover .card-year, .year-btn.active .card-year {
    color: white;
}

.year-btn:hover .card-subtitle, .year-btn.active .card-subtitle {
    color: white;
}


/* Estilo de las flechas de navegación (se mantiene igual) */
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    color: var(--color-primary);
    transition: background-color 0.2s;
}

.nav-arrow:hover {
    background-color: var(--color-light);
}

.nav-arrow.left {
    left: 0;
}

.nav-arrow.right {
    right: 0;
}

/* Ocultar las flechas en móviles */
@media (max-width: 768px) {
    .carousel-wrapper {
        padding: 0; 
    }
    .nav-arrow {
        display: none; 
    }
    /* Estilo para que se vean bien en móvil */
    .year-btn {
        min-width: 140px;
        padding: 15px 20px;
    }
    .hero-banner {
        height: 450px; /* Aumentamos la altura en móvil para que quepa mejor la imagen vertical */
        
        /* === IMAGEN PARA MÓVIL === */
        /* Usa una imagen con formato vertical o cuadrado optimizada para móvil */
        background-image: url('https://www.elumbreras.com.pe/wp-content/uploads/2025/10/CELULAR-UNMSM-26-I_Mesa-de-trabajo-1-copia.png'); 
        background-size: cover;
        background-position: center;
    }
    
    .hero-banner .container {
        /* En móvil, queremos el texto en el centro, no a la derecha */
        justify-content: center; 
        text-align: center;
        flex-direction: column; /* Apila los elementos verticalmente */
    }
    
    .hero-content {
        width: 100%; /* El contenido ocupa todo el ancho */
        text-align: center; /* Centramos el texto en el centro del móvil */
        padding: 0 15px; /* Padding lateral */
          transform: translateY(20%);
    }
    
    .hero-content h1 {
        font-size: 1.8em; /* Reducimos el tamaño de la fuente para móvil */
    } h2 {
        font-size: 1.5em; /* Tamaño mucho más pequeño para títulos de sección como FAQ y Materiales */
        margin-bottom: 15px;
    }
    .hero-content p {
        font-size: 1em; /* También reducimos el párrafo para que sea proporcional */
    }
    .cta-button {
        display: block;
        margin: 20px auto 0;
        width: 90%;
    }
}




/* ANIMACIÓN */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* MEDIA QUERY (Móvil) */
@media (max-width: 768px) {
    /* HEADER */
    .main-nav { display: none; }

    /* BANNER */
    .hero-banner .container { flex-direction: column; text-align: center; }
    .hero-image { width: 100%; margin: 0 0 20px 0; }
    .hero-content { width: 100%; text-align: center; }

    /* PRODUCTOS */
    .tabs { overflow-x: auto; white-space: nowrap; }
    .tab-button { flex: 0 0 auto; } /* Permite que los botones no se achiquen */
    
    .products-grid { 
        gap: 15px;
    }
    .product-card { 
        flex: 1 1 calc(100%); /* 2 productos por fila en móvil */
        max-width: calc(100%);
    }
    .product-card.visible { display: block; } /* Aseguramos que se muestre */

    /* FAQ */
    .faq-grid { grid-template-columns: 1fr; }

    /* FOOTER */
    .footer-content { flex-direction: column; text-align: center; }
    .contact-info, .location-info { margin-bottom: 20px; }
    .contact-info p, .location-info .map-link { justify-content: center; }
    .social-links { margin-top: 15px; justify-content: center; }
    .social-links a { margin: 0 10px; }
}/* End custom CSS */