/* ==========================================================
   ESTILOS EXCLUSIVOS PARA PÁGINA: LISTADO DE TALLERES
   ========================================================== */

/* Variables de identidad local */
:root {
    --verde-musgo: #004f4d;
    --cian-profundo: #00d1d2;
    --amarillo-miel: #f1c40f;
    --morado-oscuro: #1b2036;
    --verde-claro: #e8f5e9;
    --lila-claro: #f3e5f5;
}

/* Base y tipografía */
body {
    background-color: #fbfbfa;
    margin: 0;
    padding-top: 40px; /* Previene superposición con el menú fijo */
}

.qs-main-content {
    padding: 2rem 2rem 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Divisores de Marca y Encabezados */
.qs-brand-divider {
    text-align: center;
    margin: 2rem 0 3rem 0;
}
.qs-brand-divider img {
    max-width: 100px;
}

.qs-section-title {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 2.3rem;
    color: var(--verde-musgo);
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}

.qs-section-sub {
    text-align: center;
    font-size: 1.05rem;
    line-height: 1.6;
    color: #555;
    max-width: 800px;
    margin: 0 auto 3rem auto;
}

.qs-section-sub i {
    color: var(--cian-profundo);
    margin-right: 0.3rem;
}

/* Reutilización del Grid Adaptativo */
.qs-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

/* 1. HERO DE SECCIÓN */
.qs-hero-section {
    position: relative;
    height: 45vh;
    background: linear-gradient(135deg, rgba(0, 79, 77, 0.85), rgba(45, 20, 112, 0.65));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.qs-hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.35;
}

.qs-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #FFFFFF;
    padding: 2rem;
}

.qs-kicker {
    display: block;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--amarillo-miel);
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.qs-hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.4);
}

.qs-hero-content p {
    font-size: 1.2rem;
    max-width: 750px;
    margin: 0 auto;
    opacity: 0.9;
}

.qs-scroll-indicator {
    font-size: 1.5rem;
    margin-top: 1.5rem;
    animation: qs-bounce 2s infinite;
    color: rgba(255, 255, 255, 0.7);
}

/* 2. RECUADROS DE TALLERES (ESTILO BACKGROUND-IMAGE) */
.qs-talleres-section {
    margin: 2rem 0 5rem 0;
}

.qs-taller-card {
    position: relative;
    height: 360px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 79, 77, 0.06);
    display: flex;
    align-items: flex-end; /* Empuja los textos hacia abajo */
    border: 2px solid transparent;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.4s ease, 
                box-shadow 0.4s ease;
}

.qs-taller-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Filtro gradiente de oscuridad para correcta lectura de los textos */
.qs-taller-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, 
        rgba(0, 36, 35, 0.95) 15%, 
        rgba(0, 79, 77, 0.55) 60%, 
        rgba(0, 0, 0, 0.15) 100%);
    z-index: 2;
}

.qs-taller-content {
    position: relative;
    z-index: 3;
    padding: 2rem 1.5rem;
    color: #ffffff;
    width: 100%;
}

.qs-taller-badge {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    color: var(--amarillo-miel);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.3rem 0.7rem;
    border-radius: 4px;
    margin-bottom: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.qs-taller-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 0.6rem;
    color: #ffffff;
    line-height: 1.3;
}

.qs-taller-content p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

/* Interacción limpia sin botones adicionales */
.qs-taller-card:hover {
    transform: translateY(-6px);
    border-color: var(--cian-profundo);
    box-shadow: 0 12px 30px rgba(0, 209, 210, 0.2);
}

.qs-taller-card:hover .qs-taller-bg {
    transform: scale(1.05); /* Efecto de zoom suave en el fondo */
}

/* 3. SECCIÓN DE CIERRE / CTA */
.qs-cta-container {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(164deg, var(--verde-claro), var(--lila-claro));
    border-radius: 12px;
    margin-top: 2rem;
}

.qs-cta-container h2 {
    font-family: 'Playfair Display', serif;
    color: var(--verde-musgo);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.qs-cta-container p {
    color: var(--morado-oscuro);
    max-width: 700px;
    margin: 0 auto 2rem auto;
    font-size: 1.05rem;
    line-height: 1.5;
}

.qs-btn-cta {
    background-color: var(--verde-musgo);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 79, 77, 0.2);
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.qs-btn-cta:hover {
    background-color: var(--morado-oscuro);
    transform: translateY(-2px);
}

.qs-contact-links {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.qs-contact-links a {
    color: var(--verde-musgo);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Animaciones */
@keyframes qs-bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    .qs-hero-content h1 { font-size: 1.9rem; }
    .qs-hero-content p { font-size: 1rem; }
    .qs-main-content { padding: 1.5rem 1rem; }
    .qs-section-title { font-size: 1.8rem; }
    .qs-taller-card { height: 320px; }
    .qs-contact-links { flex-direction: column; gap: 1rem; }
}