/* =========================================
   VARIABLES Y BASE
   ========================================= */
:root {
    --primary: #752828; /* Vinotinto elegante */
    --accent: #ebdcca;  /* Beige suave */
    --bg-light: #f8f9fa;
    --text-main: #333333;
    --text-muted: #6c757d;
    --card-bg: #ffffff;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, blockquote { font-family: 'Playfair Display', serif; }
a { text-decoration: none; color: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.section-title { text-align: center; margin-bottom: 1rem; color: var(--primary); font-size: 2.5rem; font-weight: bold; }
.subtitle { text-align: center; color: var(--text-muted); font-style: italic; margin-bottom: 3rem; font-size: 1.1rem; }

/* =========================================
   NAVEGACIÓN / HEADER
   ========================================= */
.main-header {
    background-color: var(--card-bg);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 2rem;
    position: relative;
}

.desktop-logo img {
    height: 65px;
    border-radius: 50%;
    transition: var(--transition);
    border: 2px solid var(--accent);
}
.desktop-logo img:hover { transform: scale(1.05); }

.nav-links { display: flex; list-style: none; align-items: center; }
.nav-links li { margin: 0 1.5rem; }
.nav-links a {
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    padding: 5px 0;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary);
}

.header-title-container { padding: 3rem 0 1rem; text-align: center; }

#nav-check, .nav-btn, .nav-logo-mobile { display: none; }

/* =========================================
   BOTONES
   ========================================= */
.btn-primary, .btn-plan, .btn-assist {
    display: inline-block;
    background-color: var(--primary);
    color: white !important;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 500;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    text-align: center;
    cursor: pointer;
    border: none;
}
.btn-primary:hover, .btn-plan:hover, .btn-assist:hover {
    background-color: #5a1e1e;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-ghost {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 10px 25px;
    border-radius: 8px;
    font-weight: 500;
    display: inline-block;
    transition: var(--transition);
}
.btn-ghost:hover {
    background-color: var(--primary);
    color: white;
}

/* =========================================
   PÁGINA PRINCIPAL (INDEX)
   ========================================= */
.hero-section {
    position: relative;
    height: 65vh;
    background-image: url('assets/Banner.jpeg'); 
    background-size: cover;
    background-position: center;
    display: flex; align-items: center; justify-content: center;
    text-align: center; color: white;
}
.hero-section::before {
    content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.6));
}
.hero-content { position: relative; z-index: 2; max-width: 800px; padding: 20px; }
.hero-content h2 { font-size: 3rem; margin-bottom: 2rem; text-shadow: 2px 2px 4px rgba(0,0,0,0.5); }

/* ==== FRASE CON FONDO GUINDA ==== */
.quote-section { background-color: var(--primary); padding: 4rem 0; text-align: center; }
.main-quote { font-size: 1.6rem; color: white; }
.main-quote cite { display: block; margin-top: 15px; font-size: 1rem; color: var(--accent); font-family: 'Poppins', sans-serif;}

.about-section { padding: 5rem 0; background: var(--card-bg); }
.about-container { display: flex; align-items: center; gap: 4rem; }
.about-image img { width: 350px; height: 350px; object-fit: cover; border-radius: 20px; box-shadow: -15px 15px 0px var(--accent); }
.about-text p { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 15px; }

/* ==== NUEVA SECCIÓN: NUESTROS OBJETIVOS ==== */
.objectives-section { padding: 5rem 0; background-color: var(--bg-light); }
.objectives-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 3rem;
}
.objective-card {
    background-color: var(--card-bg);
    border-left: 5px solid var(--primary);
    padding: 25px 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    align-items: center;
}
.objective-card p {
    color: var(--text-main);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
}
.objective-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

/* ==== BENEFICIOS (NORMAL, FONDO CLARO) ==== */
.benefits-section { padding: 5rem 0; background-color: var(--bg-light); }
.benefits-grid { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; text-align: center; }
.benefit-item { background: var(--card-bg); padding: 30px; border-radius: 12px; box-shadow: var(--shadow-sm); flex: 1; min-width: 250px; transition: var(--transition);}
.benefit-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.benefit-item i { font-size: 3rem; color: var(--primary); margin-bottom: 20px; }
.benefit-item h3 { margin-bottom: 10px; font-size: 1.3rem; }

/* ==== CALIFICACIONES ==== */
.testimonials-section { padding: 5rem 0; background-color: var(--primary); color: white; text-align: center; }
.testimonials-grid { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; }
.testimonial-card { background: rgba(255,255,255,0.05); padding: 30px; border-radius: 12px; flex: 1; min-width: 280px; border: 1px solid rgba(255,255,255,0.1); }
.stars { color: var(--accent); font-size: 1.2rem; margin-bottom: 15px; }
.testimonial-card p { font-style: italic; opacity: 0.9; margin-bottom: 20px; }
.testimonial-card h4 { color: var(--accent); }

/* ==== GALERÍA VIDEOS ==== */
.video-section { padding: 5rem 0; background: var(--card-bg); }
.carousel-container { position: relative; max-width: 800px; margin: 0 auto; display: flex; align-items: center; }
.carousel-track-container { overflow: hidden; width: 100%; border-radius: 12px; box-shadow: var(--shadow-md); }
.carousel-track { display: flex; list-style: none; transition: transform 0.5s ease-in-out; }
.carousel-slide { min-width: 100%; }
.video-card iframe { width: 100%; aspect-ratio: 16/9; border: none; display: block; }
.carousel-btn { position: absolute; background: white; color: var(--primary); border: none; width: 45px; height: 45px; border-radius: 50%; cursor: pointer; z-index: 10; font-size: 1.2rem; box-shadow: var(--shadow-sm); transition: var(--transition); }
.carousel-btn:hover { background: var(--primary); color: white; }
.prev-btn { left: -22px; }
.next-btn { right: -22px; }

/* =========================================
   PÁGINA DE PLANES
   ========================================= */
.planes-container { max-width: 1000px; margin: 0 auto; padding: 3rem 1.5rem; min-height: 60vh;}
.planes-intro { text-align: center; max-width: 700px; margin: 0 auto 3rem; font-size: 1.1rem; color: var(--text-muted); }

.single-plan-container { display: flex; justify-content: center; }
.single-plan { max-width: 500px; width: 100%; border: 2px solid var(--accent); }
.plan-card { background: var(--card-bg); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-md); transition: var(--transition); position: relative; display: flex; flex-direction: column; }
.badge { background-color: var(--accent); color: var(--primary); text-align: center; padding: 6px; font-weight: bold; font-size: 0.85rem; text-transform: uppercase; }
.plan-header { background-color: var(--primary); color: white; padding: 2.5rem 2rem; text-align: center; }
.plan-header h3 { font-size: 1.8rem; margin-bottom: 10px; }
.price { font-size: 3rem; font-weight: 700; color: var(--accent); line-height: 1; margin-bottom: 5px; }
.price span { font-size: 1rem; font-weight: 400; opacity: 0.8; }
.inscription-fee { font-size: 0.9rem; opacity: 0.9; margin-top: 10px; }
.plan-body { padding: 2rem; display: flex; flex-direction: column; flex-grow: 1; text-align: center; }
.plan-features { list-style: none; margin: 1.5rem 0; text-align: left; }
.plan-features li { margin-bottom: 12px; color: var(--text-muted); display: flex; align-items: flex-start; gap: 10px; }
.plan-features i { color: #28a745; margin-top: 4px; }
.purchase-note { text-align: center; margin-top: 3rem; padding: 15px; background-color: #e9ecef; border-radius: 8px; color: var(--text-muted); font-size: 0.9rem; }

/* =========================================
   PÁGINA DE TIENDA
   ========================================= */
.store-container { max-width: 1200px; margin: 0 auto; padding: 2rem; min-height: 70vh; }
.store-submenu ul { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; list-style: none; margin-bottom: 3rem; }
.store-submenu li { padding: 8px 20px; background: var(--card-bg); border: 1px solid #ddd; color: var(--text-muted); border-radius: 30px; cursor: pointer; transition: var(--transition); font-size: 0.9rem; }
.store-submenu li:hover, .store-submenu li.active { background-color: var(--primary); color: white; border-color: var(--primary); }

.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 30px; }
.product-card { background: var(--card-bg); border-radius: 12px; overflow: hidden; text-align: center; box-shadow: var(--shadow-sm); transition: var(--transition); padding-bottom: 20px;}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.product-card img { width: 100%; height: 250px; object-fit: cover; border-bottom: 1px solid #eee; margin-bottom: 15px;}
.product-card h4 { color: var(--text-main); font-size: 1.2rem; padding: 0 15px;}
.product-card .price { font-size: 1.3rem; color: var(--primary); margin: 10px 0; }
.product-card p.desc { font-size: 0.9rem; color: var(--text-muted); padding: 0 15px; margin-bottom: 15px; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* =========================================
   BLOG / BIBLIOTECA
   ========================================= */
.library-container { max-width: 900px; margin: 0 auto; padding: 2rem 1.5rem; overflow: hidden; min-height: 70vh; }
.library-tabs { display: flex; justify-content: center; gap: 20px; margin-bottom: 2rem; }
.lib-tab { background: transparent; border: none; border-bottom: 2px solid transparent; color: var(--text-muted); font-size: 1.1rem; padding: 10px 20px; cursor: pointer; transition: var(--transition); font-weight: 500;}
.lib-tab:hover, .lib-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.slider-window { 
    overflow: hidden; 
    width: 100%; 
    transition: height 0.5s ease; /* <- Añadimos esto para que la altura cambie suavemente */
}
.slider-track { 
    display: flex; 
    width: 200%; 
    transition: transform 0.5s ease; 
    align-items: flex-start; /* <- Añadimos esto para que las cajas no se estiren solas */
}
.library-section { width: 50%; padding: 10px; }
.text-content { background: var(--card-bg); padding: 3rem; border-radius: 12px; box-shadow: var(--shadow-sm); border-top: 4px solid var(--primary); }
.text-content h2 { color: var(--primary); margin-bottom: 0.5rem; font-size: 1.8rem; }
.text-content p { color: var(--text-muted); margin-bottom: 1.5rem; text-align: justify; }
.date { font-size: 0.85rem; color: #aaa; display: block; margin-bottom: 1.5rem; text-transform: uppercase; }
.divider-small { border: 0; height: 1px; background: #eee; margin: 2rem auto; width: 60%; }
.poetry-style p { text-align: center; font-style: italic; font-size: 1.2rem; }

/* =========================================
   CALENDARIO
   ========================================= */
.calendar-page-container { max-width: 900px; margin: 0 auto; padding: 2rem 1.5rem; min-height: 70vh; }
.calendar-tabs-container { display: flex; justify-content: center; margin-bottom: 2rem; }
.tabs-track { position: relative; display: flex; background: #eee; border-radius: 30px; padding: 4px; }
.cal-tab { background: transparent; border: none; padding: 10px 30px; font-weight: 500; cursor: pointer; z-index: 2; color: var(--text-muted); width: 150px; transition: color 0.3s; }
.cal-tab.active { color: white; }
.tab-indicator { position: absolute; top: 4px; left: 4px; width: 150px; height: calc(100% - 8px); background-color: var(--primary); border-radius: 25px; transition: transform 0.3s ease; z-index: 1; }

.calendar-wrapper { background: var(--card-bg); border-radius: 16px; box-shadow: var(--shadow-md); padding: 2rem; }
.calendar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.calendar-header h2 { color: var(--primary); font-size: 1.8rem; text-transform: capitalize; }
.month-btn { background: transparent; border: 1px solid #ddd; border-radius: 50%; width: 40px; height: 40px; cursor: pointer; transition: var(--transition); color: var(--text-main);}
.month-btn:hover { background: var(--primary); color: white; border-color: var(--primary); }

.weekdays-grid { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; font-weight: bold; color: #aaa; margin-bottom: 1rem; font-size: 0.9rem; }
.days-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.day { height: 80px; border: 1px solid #f0f0f0; border-radius: 8px; padding: 8px; position: relative; cursor: pointer; background: #fafafa; transition: var(--transition); }
.day.prev-date { opacity: 0.4; pointer-events: none; background: transparent; border: none; }
.day-number { font-weight: 500; color: var(--text-main); font-size: 0.9rem; }
.day:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: var(--accent); background: white; z-index: 10; }

.day.event-clase { border-left: 3px solid var(--primary); background: rgba(117, 40, 40, 0.03); }
.day.event-recital { border-left: 3px solid #b8860b; background: rgba(184, 134, 11, 0.05); }

.event-tooltip { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%) translateY(10px); background: #333; color: white; padding: 8px 12px; border-radius: 6px; font-size: 0.8rem; width: max-content; max-width: 200px; text-align: center; opacity: 0; pointer-events: none; transition: var(--transition); z-index: 20; }
.day:hover .event-tooltip { opacity: 1; transform: translateX(-50%) translateY(-5px); }

/* Modal del Calendario */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); display: flex; justify-content: center; align-items: center; opacity: 0; pointer-events: none; transition: opacity 0.3s; z-index: 2000; }
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal-card { background: white; width: 700px; max-width: 90%; border-radius: 12px; display: flex; overflow: hidden; transform: translateY(20px); transition: transform 0.3s; position: relative;}
.modal-overlay.active .modal-card { transform: translateY(0); }
.close-btn { position: absolute; top: 10px; right: 15px; background: transparent; border: none; font-size: 1.8rem; cursor: pointer; z-index: 10; color: #333; }
.modal-image { width: 40%; background-size: cover; background-position: center; background-color: #eee; }
.modal-info { width: 60%; padding: 2rem; }
.modal-date { color: var(--primary); font-size: 0.85rem; font-weight: bold; }
.modal-info h2 { font-size: 1.5rem; margin-bottom: 1rem; color: var(--text-main); line-height: 1.2; }
.modal-details p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 5px; }
.modal-details i { color: var(--primary); width: 20px; }
.modal-desc { margin-top: 1rem; font-size: 0.9rem; color: #555; }

/* =========================================
   FOOTER Y MODO OSCURO
   ========================================= */
.footer { background-color: #212529; color: white; padding: 3rem 0 1rem; margin-top: auto; }
.footer-content { display: flex; justify-content: space-around; flex-wrap: wrap; text-align: center; margin-bottom: 2rem; }
.footer h3 { color: var(--accent); margin-bottom: 1rem; font-size: 1.2rem; }
.footer p { color: #adb5bd; font-size: 0.9rem; }
.social-links a { color: white; margin: 0 10px; transition: color 0.3s; font-size: 1.1rem; }
.social-links a:hover { color: var(--accent); }
.copy { text-align: center; font-size: 0.8rem; color: #6c757d; border-top: 1px solid #343a40; padding-top: 1rem; }

/* Dark Mode Toggle Btn */
.dark-mode-toggle-btn { position: fixed; bottom: 20px; left: 20px; width: 45px; height: 45px; background-color: var(--primary); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 1000; box-shadow: var(--shadow-sm); border: 2px solid white; transition: var(--transition); }
.dark-mode-toggle-btn:hover { transform: scale(1.1); }

/* Tema Oscuro General */
body.dark-mode { --bg-light: #121212; --card-bg: #1e1e1e; --text-main: #f8f9fa; --text-muted: #adb5bd; --shadow-sm: 0 4px 6px rgba(0,0,0,0.5); --shadow-md: 0 10px 20px rgba(0,0,0,0.8); }
body.dark-mode .main-header { border-bottom: 1px solid #333; }
body.dark-mode .nav-links a { color: var(--text-main); }
body.dark-mode .nav-links a:hover { color: var(--accent); }
body.dark-mode .benefits-section { background-color: #121212; }
body.dark-mode .about-section, body.dark-mode .video-section { background-color: #181818; }
body.dark-mode .store-submenu li { background: transparent; border-color: #444; }
body.dark-mode .store-submenu li.active { background: var(--primary); border-color: var(--primary); }
body.dark-mode .month-btn { color: #fff; border-color: #444; }
body.dark-mode .day { background: #252525; border-color: #333; }
body.dark-mode .day:hover { background: #333; border-color: var(--accent); }
body.dark-mode .modal-card { background: #1e1e1e; }
body.dark-mode .close-btn { color: #fff; }
body.dark-mode input, body.dark-mode textarea { background: #333; border: 1px solid #555; color: white; }

/* MODO OSCURO PARA LA NUEVA SECCIÓN OBJETIVOS */
body.dark-mode .objectives-section { background-color: #121212; }
body.dark-mode .objective-card { background-color: #1e1e1e; border-left-color: var(--primary); }
body.dark-mode .objective-card p { color: var(--text-main); }

/* La cita SIEMPRE es guinda en modo oscuro */
body.dark-mode .quote-section { background-color: var(--primary); }
body.dark-mode .main-quote { color: white; }

/* =========================================
   RESPONSIVE (MÓVIL)
   ========================================= */
@media (max-width: 1024px) {
    .objectives-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .objectives-grid { grid-template-columns: 1fr; }

    .nav-btn { display: block; cursor: pointer; z-index: 1001; }
    .nav-btn label { display: flex; flex-direction: column; width: 25px; }
    .nav-btn label span { height: 3px; background: var(--text-main); margin: 2px 0; transition: 0.3s; border-radius: 2px; }
    body.dark-mode .nav-btn label span { background: #fff; }
    
    .nav-links { position: absolute; top: 100%; left: 0; width: 100%; background: var(--card-bg); flex-direction: column; max-height: 0; overflow: hidden; transition: max-height 0.4s ease; border-bottom: 1px solid #eee; }
    body.dark-mode .nav-links { border-bottom-color: #333; }
    #nav-check:checked ~ .nav-links { max-height: 400px; padding: 1rem 0; }
    .nav-links li { margin: 10px 0; text-align: center; }
    
    .desktop-logo { display: none; }
    .nav-logo-mobile { display: flex; align-items: center; gap: 10px; }
    .nav-logo-mobile img { height: 40px; border-radius: 50%; }
    .nav-logo-mobile h1 { font-size: 1.2rem; color: var(--primary); margin: 0; }
    .navbar { justify-content: space-between; padding: 15px 20px; }
    
    .hero-content h2 { font-size: 2rem; }
    .about-container { flex-direction: column; text-align: center; gap: 2rem; }
    .about-image img { width: 250px; height: 250px; box-shadow: 0px 15px 0px var(--accent); }
    .about-text .section-title { text-align: center !important; }
    
    .slider-track { flex-direction: row; width: 200%; }
    .library-section { width: 50%; }
    .text-content { padding: 1.5rem; }
    
    .calendar-tabs-container { transform: scale(0.9); }
    .day { height: 60px; padding: 4px; }
    .day-number { font-size: 0.8rem; }
    .event-tooltip { display: none; } 
    .modal-card { flex-direction: column; }
    .modal-image { width: 100%; height: 180px; }
    .modal-info { width: 100%; padding: 1.5rem; }
}
/* =========================================
   ACTUALIZACIÓN: OBJETIVOS MÁS ALTOS Y DECORADOS
   (Agregado al final para sobrescribir estilos)
   ========================================= */
.objectives-grid {
    gap: 30px; /* Más espacio entre los recuadros para que respiren mejor */
}

.objective-card {
    padding: 40px 25px; /* Aumenta el espacio interno (40px arriba y abajo) */
    min-height: 150px; /* Fuerza una altura mínima para que se vean más rectangulares */
    border-radius: 0 8px 8px 0; /* Suaviza las esquinas derechas */
    position: relative;
    overflow: hidden;
}

/* Nota musical decorativa como marca de agua de fondo */
.objective-card::after {
    content: "\f001"; /* Código de la nota musical de FontAwesome */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    bottom: -15px;
    right: -10px;
    font-size: 5rem;
    color: var(--primary);
    opacity: 0.04; /* Súper transparente, muy sutil */
    transition: var(--transition);
    z-index: 0;
}

/* Efecto al pasar el mouse (la nota crece y gira un poco) */
.objective-card:hover::after {
    transform: scale(1.2) rotate(-15deg);
    opacity: 0.08;
}

/* Ajuste del texto para que no sea tapado por el icono */
.objective-card p {
    font-size: 1.05rem; /* Texto ligeramente más grande */
    line-height: 1.7;
    position: relative;
    z-index: 1; /* El texto siempre va por encima del fondo */
}
/* =========================================
   ACTUALIZACIÓN: SECCIÓN DE ALUMNOS (TESTIMONIOS)
   (Agregado al final para sobrescribir estilos)
   ========================================= */

/* Forzar que el fondo de la sección sea siempre guinda */
.testimonials-section {
    background-color: var(--primary) !important;
}

/* Forzar que el título sea blanco en esta sección para que se lea bien */
.testimonials-section .section-title {
    color: white !important; 
}

/* Hacer las tarjetas un poco más cristalinas y elegantes sobre el fondo guinda */
.testimonial-card {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

body.dark-mode .testimonials-section .section-title {
    color: white !important; /* Asegurar que siga blanco en modo oscuro */
}
/* =========================================
   ACTUALIZACIÓN FINAL: OBJETIVOS GIGANTES Y MODERNOS
   (Agregado al final para sobrescribir estilos)
   ========================================= */
.objectives-section {
    padding: 8rem 0; /* Mucho más espacio vertical para la sección */
}

.objectives-grid {
    gap: 40px; /* Mayor separación entre las tarjetas */
    margin-top: 4rem;
}

.objective-card {
    padding: 60px 30px; /* Padding masivo: las hace mucho más altas */
    min-height: 250px; /* Altura mínima garantizada */
    border-radius: 20px; /* Esquinas más suaves y modernas */
    flex-direction: column; /* Icono arriba, texto abajo */
    justify-content: center;
    text-align: center; /* Centrar todo el contenido */
    border: 1px solid rgba(0,0,0,0.03);
    background: #ffffff;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05); /* Sombra más profunda y suave */
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

/* Estilo para los iconos centrales */
.objective-icon {
    font-size: 3rem; /* Iconos grandes */
    color: var(--primary); /* Color guinda */
    margin-bottom: 25px;
    opacity: 0.9;
    transition: transform 0.4s ease;
    z-index: 1;
}

.objective-card p {
    font-size: 1.15rem; /* Texto más legible */
    font-weight: 500;
    line-height: 1.6;
    color: var(--text-main);
    margin: 0;
    z-index: 1;
}

/* Marca de agua de fondo gigante (Nota musical) */
.objective-card::after {
    content: "\f001";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 10rem; /* Nota musical gigante */
    color: var(--primary);
    opacity: 0.02; /* Casi invisible, muy sutil */
    z-index: 0;
    transition: var(--transition);
}

/* Efecto hover: la tarjeta "vuela" y el icono se anima */
.objective-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(117, 40, 40, 0.12); /* Sombra con toque guinda */
    border-color: var(--accent);
}

.objective-card:hover .objective-icon {
    transform: scale(1.2) translateY(-5px);
}

.objective-card:hover::after {
    transform: translate(-50%, -50%) scale(1.1) rotate(-10deg);
    opacity: 0.05;
}

/* --- MODO OSCURO --- */
body.dark-mode .objective-card {
    background: #1e1e1e;
    border-color: rgba(255,255,255,0.05);
}
body.dark-mode .objective-card p {
    color: #f8f9fa;
}
body.dark-mode .objective-card:hover {
    border-color: var(--primary);
}

/* --- AJUSTE RESPONSIVO --- */
@media (max-width: 1024px) {
    .objectives-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .objectives-grid { grid-template-columns: 1fr; }
    .objective-card { min-height: 200px; padding: 40px 20px; }
}
/* =========================================
   ACTUALIZACIÓN: HEADER COLOR VINO
   (Pegar al final de styles.css)
   ========================================= */

/* Cambia el fondo de la barra de navegación a color guinda */
.main-header {
    background-color: var(--primary) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Cambia el color de los enlaces del menú a blanco para que contrasten */
.nav-links a {
    color: #ffffff !important;
}

/* Color de los enlaces al pasar el mouse y del enlace activo (beige) */
.nav-links a:hover, 
.nav-links a.active {
    color: var(--accent) !important;
}

/* Ajuste para el texto del logo en versión móvil */
.nav-logo-mobile h1 {
    color: #ffffff !important;
}

/* Ajuste del logo central para que resalte con un borde blanco sutil */
.desktop-logo img {
    border: 2px solid #ffffff !important;
    background-color: #ffffff;
}

/* Cambia el color de las rayitas del menú móvil a blanco */
.nav-btn label span {
    background: #ffffff !important;
}
/* =========================================
   AJUSTE: NAV CENTRADO Y FIRMA AL PIE
   ========================================= */

/* Centrado exacto del menú */
.nav-links {
    width: 100%;
    display: flex;
    justify-content: center; /* Centra el contenido horizontalmente */
    align-items: center;
    padding: 0;
    margin: 0;
}

/* Espaciado uniforme para los elementos del menú */
.nav-links li {
    margin: 0 25px; /* Ajusta este valor si quieres que los textos estén más juntos o separados */
    display: flex;
    justify-content: center;
}

/* Asegura que el logo no desplace el menú */
.desktop-logo {
    margin: 0 40px !important;
}

/* Estilo para la firma "Dario yaparié" en el fondo */
.footer-signature {
    display: block;
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 0.85rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5); /* Color suave para que sea sutil */
    margin-top: 15px;
    font-style: italic;
}
/* =========================================
   SUBTÍTULO EN EL HEADER (COMO EN LA IMAGEN)
   ========================================= */
.header-subtitle-container {
    text-align: center;
    padding: 0px 20px 25px 20px; /* Espacio extra en la parte inferior para que respire */
    background-color: var(--primary); /* Asegura que el fondo siga siendo vino */
}

.header-subtitle {
    color: #ffffff;
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem; /* Tamaño elegante y destacado */
    letter-spacing: 1px;
    font-weight: 600;
    margin: 0;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.15); /* Sombra muy sutil para resaltar */
}

/* Ajuste para que se vea bien en celulares */
@media (max-width: 768px) {
    .header-subtitle {
        font-size: 1.4rem;
        padding-top: 10px;
        padding-bottom: 15px;
    }
}
/* =========================================
   REDISEÑO DEL HEADER (ESTILO BANNER)
   ========================================= */

/* 1. Fondo guinda para todo el encabezado */
.main-header {
    background-color: var(--primary) !important;
    padding: 10px 0 25px 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* 2. Distribución simétrica del Nav */
.navbar {
    display: grid !important;
    /* Creamos 3 columnas: Izquierda (1fr), Logo (Auto), Derecha (1fr) */
    grid-template-columns: 1fr auto 1fr !important;
    align-items: center !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 0 40px !important;
}

/* 3. Estilo de los grupos de enlaces */
.nav-group {
    display: flex !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.nav-group.left { justify-content: flex-end; gap: 40px; }
.nav-group.right { justify-content: flex-start; gap: 40px; }

.nav-group li a {
    color: #ffffff !important;
    text-transform: uppercase !important;
    font-weight: 600 !important;
    letter-spacing: 1.5px !important;
    font-size: 0.9rem !important;
    white-space: nowrap !important;
}

/* 4. El Logo circular del centro */
.desktop-logo {
    padding: 0 40px !important;
}

.desktop-logo img {
    height: 85px !important;
    width: 85px !important;
    border-radius: 50% !important;
    border: 3px solid #ffffff !important;
    background-color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2) !important;
    object-fit: cover !important;
}

/* 5. Subtítulo centrado debajo */
.header-subtitle-container {
    text-align: center !important;
    margin-top: 20px !important;
    background-color: transparent !important;
}

.header-subtitle {
    color: #ffffff !important;
    font-family: 'Playfair Display', serif !important;
    font-size: 2.2rem !important; /* Tamaño grande como en la imagen */
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
}

/* Ajuste móvil */
@media (max-width: 992px) {
    .navbar {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
    }
}
/* =========================================
   CENTRADO TOTAL Y BALANCEO DE NAV
   ========================================= */

/* 1. Aseguramos que el encabezado ocupe todo el ancho disponible */
.main-header {
    width: 100% !important;
    background-color: var(--primary) !important;
    padding: 20px 0 !important;
}

/* 2. El contenedor del Nav se expande al 100% */
.navbar {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    justify-content: center !important; /* Centra el bloque de links en el monitor */
    align-items: center !important;
    margin: 0 !important;
}

/* 3. Ajuste de la lista de enlaces */
.nav-links {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    list-style: none !important;
    width: 100% !important; /* Permite que el balanceo funcione */
    max-width: 1200px !important; /* O el ancho máximo de tu sitio */
    padding: 0 !important;
}

/* 4. BALANCEO: Creamos "alas" de igual tamaño a los lados del logo */
/* Esto obliga al logo a estar en el centro absoluto del monitor */

/* Elementos de la izquierda (Inicio, Biblioteca) */
.nav-links li:nth-child(-n+2) {
    flex: 1 !important;
    display: flex !important;
    justify-content: flex-end !important; /* Empuja hacia el logo */
    margin: 0 15px !important;
}

/* El Logo en el centro */
.desktop-logo {
    flex: 0 0 auto !important;
    margin: 0 40px !important; /* Espacio de seguridad para el logo */
}

/* Elementos de la derecha (Precios, Tienda, Calendario) */
.nav-links li:nth-child(n+4) {
    flex: 1 !important;
    display: flex !important;
    justify-content: flex-start !important; /* Empuja hacia el logo */
    margin: 0 15px !important;
}

/* 5. Asegurar que los textos no se encimen */
.nav-links li a {
    white-space: nowrap !important;
    color: #ffffff !important;
    font-size: 0.9rem !important;
    text-transform: uppercase !important;
}
/* =========================================
   CENTRADO ABSOLUTO Y ESPACIADO COMPACTO
   ========================================= */

.navbar {
    display: grid !important;
    /* 1fr a los lados asegura que el logo sea el centro exacto */
    grid-template-columns: 1fr auto 1fr !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 1100px !important; /* Limita qué tan lejos se van los textos */
    margin: 0 auto !important;
    padding: 10px 20px !important;
}

.nav-group {
    display: flex !important;
    list-style: none !important;
    gap: 30px !important; /* Espacio reducido entre palabras para que no estén "tan separados" */
    padding: 0 !important;
}

/* Empuja los bloques hacia el logo */
.nav-group.left { justify-content: flex-end !important; }
.nav-group.right { justify-content: flex-start !important; }

.desktop-logo {
    padding: 0 35px !important; /* Espacio exacto entre el logo y los textos laterales */
}

.desktop-logo img {
    height: 85px !important;
    width: 85px !important;
    border-radius: 50% !important;
    border: 3px solid #ffffff !important;
    background-color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3) !important;
    object-fit: cover !important;
}

.nav-group li a {
    color: #ffffff !important;
    text-transform: uppercase !important;
    font-weight: 600 !important;
    letter-spacing: 1.2px !important;
    font-size: 0.85rem !important;
    white-space: nowrap !important;
}

/* Título de la Academia */
.header-subtitle-container {
    text-align: center !important;
    padding-bottom: 20px !important;
}

.header-subtitle {
    color: #ffffff !important;
    font-size: 1.8rem !important;
    font-family: 'Playfair Display', serif !important;
}
/* =========================================
   DIVISIÓN ELEGANTE Y ANIMACIONES (HOVER)
   ========================================= */

/* 1. La línea divisoria "bonita" */
.main-header {
    background-color: var(--primary) !important;
    padding: 20px 0 !important;
    /* Línea sutil pero definida con un pequeño resplandor */
    border-bottom: 2px solid rgba(235, 220, 202, 0.3) !important; 
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: relative;
}

/* 2. Animación de "salto" para los enlaces del nav */
.nav-links li a {
    display: inline-block !important; /* Necesario para que la transformación funcione */
    color: #ffffff !important;
    text-transform: uppercase !important;
    font-weight: 600 !important;
    letter-spacing: 1.5px !important;
    font-size: 0.9rem !important;
    white-space: nowrap !important;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.3s !important;
}

/* Efecto al pasar el mouse (Jump effect) */
.nav-links li a:hover {
    color: var(--accent) !important;
    transform: translateY(-5px) scale(1.1) !important; /* Salta hacia arriba y crece un poco */
}

/* 3. Animación especial para el logo al pasar el mouse */
.desktop-logo img {
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s !important;
}

.desktop-logo img:hover {
    transform: scale(1.15) rotate(5deg) !important; /* El logo crece y gira levemente */
    box-shadow: 0 8px 25px rgba(0,0,0,0.5) !important;
}

/* 4. Estilo para el subtítulo (Academia de Guitarra...) */
.header-subtitle-container {
    padding: 25px 0 !important;
}

.header-subtitle {
    color: #ffffff !important;
    font-family: 'Playfair Display', serif !important;
    font-size: 2rem !important;
    font-weight: 700 !important;
    /* Animación suave de entrada para el texto */
    animation: fadeInDown 0.8s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* =========================================
   NAV FINAL: CENTRADO, LÍNEA Y ANIMACIÓN
   ========================================= */

/* 1. Línea divisoria y fondo */
.main-header {
    background-color: var(--primary) !important;
    padding: 10px 0 20px 0 !important;
    /* Línea recta elegante */
    border-bottom: 2px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.navbar {
    display: grid !important;
    /* Divide el nav en 3 partes: 1fr (izq) | auto (logo) | 1fr (der) */
    grid-template-columns: 1fr auto 1fr !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 1300px !important;
    margin: 0 auto !important;
    padding: 0 40px !important;
}

/* 2. Distribución de los grupos */
.nav-group {
    display: flex !important;
    list-style: none !important;
    gap: 35px !important;
    padding: 0 !important;
}

.nav-group.left { justify-content: flex-end !important; }
.nav-group.right { justify-content: flex-start !important; }

/* 3. Animación de SALTO para los enlaces */
.nav-group li a {
    display: inline-block !important;
    color: #ffffff !important;
    text-transform: uppercase !important;
    font-weight: 600 !important;
    letter-spacing: 1.5px !important;
    font-size: 0.85rem !important;
    white-space: nowrap !important;
    /* Transición elástica para el salto */
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.3s !important;
}

.nav-group li a:hover {
    color: var(--accent) !important;
    transform: translateY(-6px) !important; /* Salto hacia arriba */
}

/* 4. Logo central con rotación suave */
.desktop-logo {
    padding: 0 40px !important;
}

.desktop-logo img {
    height: 85px !important;
    width: 85px !important;
    border-radius: 50% !important;
    border: 3px solid #ffffff !important;
    background-color: #ffffff !important;
    transition: transform 0.4s ease !important;
}

.desktop-logo img:hover {
    transform: scale(1.1) rotate(5deg) !important;
}

/* 5. Subtítulo bajo la línea */
.header-subtitle-container {
    text-align: center !important;
    margin-top: 20px !important;
}

.header-subtitle {
    color: #ffffff !important;
    font-family: 'Playfair Display', serif !important;
    font-size: 1.8rem !important;
    font-weight: 700 !important;
}
/* =========================================
   AJUSTE DE ALTURA: SUBIR EL TÍTULO
   ========================================= */

.header-subtitle-container {
    /* Reducimos el margen superior para "subirlo" */
    margin-top: -5px !important; 
    padding-top: 0 !important;
    padding-bottom: 20px !important;
    text-align: center !important;
}

.header-subtitle {
    color: #ffffff !important;
    font-family: 'Playfair Display', serif !important;
    font-size: 1.8rem !important;
    font-weight: 700 !important;
    /* Eliminamos cualquier margen interno que lo empuje hacia abajo */
    margin: 0 !important; 
    line-height: 1.2 !important;
}

/* Ajuste opcional: reduce el espacio bajo la línea divisoria */
.main-header {
    padding-bottom: 10px !important;
}
/* =========================================
   REDISEÑO DE IMAGEN DE FONDO (HERO)
   ========================================= */

.hero-section {
    position: relative !important;
    height: 70vh !important; /* Altura ajustada para mejor visibilidad */
    width: 100% !important;
    
    /* Configuración para evitar estiramiento */
    background-image: url('assets/Banner.jpeg') !important;
    background-size: cover !important; /* Llena el espacio manteniendo la proporción */
    background-position: center center !important; /* Centra al guitarrista */
    background-repeat: no-repeat !important;
    background-attachment: scroll !important; /* O 'fixed' para un efecto parallax sutil */
    
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
}

/* Capa oscura para que el texto resalte mejor */
.hero-section::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.45) !important; /* Oscurece un poco la imagen */
    z-index: 1 !important;
}

.hero-content {
    position: relative !important;
    z-index: 2 !important;
    text-align: center !important;
    padding: 0 20px !important;
}
/* =========================================
   REDISEÑO DE IMAGEN HERO (ENFOQUE EN ROSTRO)
   ========================================= */

.hero-section {
    position: relative !important;
    height: 75vh !important; /* Aumentamos un poco la altura para dar más aire al rostro */
    width: 100% !important;
    
    /* Configuración de imagen */
    background-image: url('assets/Banner.jpeg') !important;
    background-size: cover !important;
    
    /* AJUSTE CLAVE: Centrado horizontal y alineado a la parte superior */
    background-position: center 15% !important; 
    
    background-repeat: no-repeat !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
}

/* Capa de contraste para el texto */
.hero-section::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.6)) !important;
    z-index: 1 !important;
}

.hero-content {
    position: relative !important;
    z-index: 2 !important;
    max-width: 850px !important;
    padding: 0 20px !important;
}

.hero-content h2 {
    font-size: 2.8rem !important;
    line-height: 1.2 !important;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7) !important;
}
/* =========================================
   DISEÑO DE TIENDA (ESTILO PILLS Y CARDS)
   ========================================= */

/* 1. Categorías en burbujas redondeadas */
.store-submenu {
    text-align: center !important;
    margin-bottom: 4rem !important;
}

#category-tabs {
    display: flex !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    list-style: none !important;
    padding: 0 !important;
}

#category-tabs li {
    padding: 10px 25px !important;
    background: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
    color: var(--text-muted) !important;
    border-radius: 50px !important; /* Estilo píldora */
    cursor: pointer !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    transition: var(--transition) !important;
}

#category-tabs li.active, 
#category-tabs li:hover {
    background-color: var(--primary) !important;
    color: #ffffff !important;
    border-color: var(--primary) !important;
    box-shadow: 0 4px 10px rgba(117, 40, 40, 0.2) !important;
}

/* 2. Tarjetas de Productos */
.products-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 30px !important;
    padding-bottom: 5rem !important;
}

.product-card {
    background: #ffffff !important;
    border-radius: 15px !important;
    overflow: hidden !important;
    box-shadow: var(--shadow-sm) !important;
    transition: var(--transition) !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Estilo para la primera tarjeta (destacada en guinda) */
.product-card.featured {
    background: var(--primary) !important;
    color: #ffffff !important;
    padding: 30px !important;
    justify-content: center !important;
    text-align: center !important;
}

.product-card img {
    width: 100% !important;
    height: 300px !important;
    object-fit: cover !important;
}

/* Pie de la tarjeta con nombre y precio */
.product-card h4 {
    margin-top: 15px !important;
    font-size: 1.1rem !important;
    color: var(--primary) !important;
}

.product-card .price {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: #eeeeee !important; /* Para que resalte el precio al fondo */
    margin-bottom: 15px !important;
}

/* Botón Comprar Estilo Beige */
.btn-buy {
    background-color: var(--accent) !important;
    color: var(--primary) !important;
    padding: 8px 20px !important;
    border-radius: 20px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    font-size: 0.8rem !important;
    margin: 10px auto 20px !important;
    display: inline-block !important;
}
/* =========================================
   REFINAMIENTO MODO OSCURO: TIENDA
   ========================================= */

/* Fondo general más profundo */
body.dark-mode {
    background-color: #0f0f0f !important;
}

/* 1. Estilo de las Categorías (Pills) en Modo Oscuro */
body.dark-mode #category-tabs li {
    background: #1a1a1a !important;
    border: 1px solid #333333 !important;
    color: #888888 !important;
}

/* Categoría activa con brillo vinotinto (como en tu imagen) */
body.dark-mode #category-tabs li.active {
    background-color: var(--primary) !important;
    color: #ffffff !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 15px rgba(117, 40, 40, 0.4) !important; /* Brillo sutil */
}

/* 2. Tarjetas de Productos en Modo Oscuro */
body.dark-mode .product-card {
    background-color: #1a1a1a !important;
    border: 1px solid #222222 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5) !important;
}

/* Texto de productos y precios en blanco/beige */
body.dark-mode .product-card h4 {
    color: #ffffff !important;
}

body.dark-mode .product-card .price {
    color: var(--accent) !important; /* Beige suave para el precio */
    opacity: 1 !important;
}

body.dark-mode .product-card .desc {
    color: #aaaaaa !important;
}

/* 3. Ajuste de la línea divisoria del header en modo oscuro */
body.dark-mode .main-header {
    border-bottom: 2px solid rgba(255, 255, 255, 0.05) !important;
}
/* =========================================
   REDISEÑO DE TARJETAS CON OVERLAY
   ========================================= */

/* 1. Corrección de color del precio en modo claro */
.product-card .price {
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    color: #555555 !important; /* Gris oscuro para que se vea bien */
    margin: 5px 0 15px 0 !important;
}

/* 2. Preparar la tarjeta para el overlay */
.product-card {
    position: relative !important;
    overflow: hidden !important; /* Esconde la descripción fuera del hover */
}

/* 3. Estilo de la capa de descripción (Overlay) */
.product-overlay {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(117, 40, 40, 0.95) !important; /* Fondo guinda transparente */
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 30px !important;
    text-align: center !important;
    opacity: 0 !important; /* Invisible por defecto */
    transition: opacity 0.3s ease-in-out !important;
    z-index: 5 !important;
}

/* 4. Mostrar descripción al pasar el mouse */
.product-card:hover .product-overlay {
    opacity: 1 !important;
}

.product-overlay p {
    color: #ffffff !important;
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    margin-bottom: 25px !important;
}

/* Botón "Comprar" dentro del overlay */
.btn-overlay {
    background-color: var(--accent) !important;
    color: var(--primary) !important;
    padding: 10px 25px !important;
    border-radius: 30px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    text-decoration: none !important;
}

/* Ajuste de precio en MODO OSCURO (beige para contraste) */
body.dark-mode .product-card .price {
    color: var(--accent) !important;
}
/* =========================================
   ACTUALIZACIÓN: OVERLAY EN TARJETAS DE TIENDA
   ========================================= */

/* 1. Precio gris oscuro en modo claro para que resalte */
.product-card .price {
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    color: #555555 !important; 
    margin: 5px 0 15px 0 !important;
}

/* 2. Preparar tarjeta para esconder el efecto */
.product-card {
    position: relative !important;
    overflow: hidden !important; 
}

/* 3. Estilo de la capa superpuesta (Overlay invisible por defecto) */
.product-overlay {
    position: absolute !important;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(117, 40, 40, 0.95) !important; /* Fondo guinda */
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 30px !important;
    text-align: center !important;
    opacity: 0 !important; /* Oculto inicialmente */
    transition: opacity 0.3s ease-in-out !important;
    z-index: 5 !important;
}

/* 4. Aparecer capa al pasar el mouse */
.product-card:hover .product-overlay {
    opacity: 1 !important;
}

.product-overlay p {
    color: #ffffff !important;
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    margin-bottom: 25px !important;
}

/* 5. Botón de compra dentro del overlay */
.btn-overlay {
    background-color: var(--accent) !important;
    color: var(--primary) !important;
    padding: 10px 25px !important;
    border-radius: 30px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    text-decoration: none !important;
}

/* 6. Ajuste de precio a beige solo en Modo Oscuro */
body.dark-mode .product-card .price {
    color: var(--accent) !important;
}
/* =========================================
   ANIMACIÓN DE TRANSICIÓN EN TIENDA
   ========================================= */

@keyframes slideProductsIn {
    0% {
        opacity: 0;
        transform: translateX(50px); /* Los productos entran desde la derecha */
    }
    100% {
        opacity: 1;
        transform: translateX(0); /* Llegan a su posición final */
    }
}

.slide-animation {
    animation: slideProductsIn 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}
/* =========================================
   REFINAMIENTO MODO OSCURO: TABS CALENDARIO
   ========================================= */

/* Fondo oscuro para el riel de los botones */
body.dark-mode .tabs-track {
    background: #1a1a1a !important; 
    border: 1px solid #333333 !important;
}

/* Color del texto inactivo para que se lea bien */
body.dark-mode .cal-tab {
    color: #888888 !important; 
}

/* Color del texto activo (sobre el botón guinda) */
body.dark-mode .cal-tab.active {
    color: #ffffff !important; 
}
/* =========================================
   DÍA ACTUAL (HOY) EN CALENDARIO
   ========================================= */

/* Destacar la casilla del día actual */
.day.today {
    background-color: var(--primary) !important;
    border: 2px solid var(--accent) !important;
    box-shadow: 0 4px 10px rgba(117, 40, 40, 0.4) !important;
    transform: scale(1.05) !important;
    z-index: 5 !important;
}

/* Cambiar el número a blanco para que se lea sobre el fondo guinda */
.day.today .day-number {
    color: #ffffff !important;
    font-weight: bold !important;
    font-size: 1.1rem !important;
}

/* Ajuste sutil para modo oscuro */
body.dark-mode .day.today {
    box-shadow: 0 0 15px rgba(235, 220, 202, 0.2) !important;
}
/* =========================================
   REDISEÑO DEL FOOTER ELABORADO
   ========================================= */

.footer {
    background-color: #1a1a1a !important; /* Un gris muy oscuro, casi negro */
    padding: 4rem 0 2rem 0 !important;
    border-top: 4px solid var(--primary) !important; /* Línea guinda superior */
}

.footer-content {
    display: grid !important;
    /* Crea columnas que se adaptan solas al tamaño de la pantalla */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
    gap: 40px !important;
    text-align: center !important;
    margin-bottom: 3rem !important;
}

.footer-brand .footer-logo {
    width: 80px !important;
    border-radius: 50% !important;
    border: 2px solid var(--accent) !important;
    margin-bottom: 15px !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3) !important;
}

.footer h3 {
    color: var(--accent) !important;
    font-family: 'Playfair Display', serif !important;
    font-size: 1.4rem !important;
    margin-bottom: 1.2rem !important;
}

.footer p {
    color: #adb5bd !important;
    font-size: 0.95rem !important;
    margin-bottom: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
}

.footer p i {
    color: var(--primary) !important;
    font-size: 1.2rem !important;
}

.social-links {
    display: flex !important;
    justify-content: center !important;
    gap: 15px !important;
}

/* Estilo de los botones de redes sociales */
.social-links a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 45px !important;
    height: 45px !important;
    background-color: #2a2a2a !important;
    border-radius: 50% !important;
    color: #ffffff !important;
    font-size: 1.2rem !important;
    transition: var(--transition) !important;
    text-decoration: none !important;
}

.social-links a:hover {
    background-color: var(--primary) !important;
    transform: translateY(-5px) !important; /* Saltito hacia arriba */
    color: #ffffff !important;
    box-shadow: 0 5px 15px rgba(117, 40, 40, 0.4) !important;
}

.copy {
    border-top: 1px solid #333333 !important;
    padding-top: 1.5rem !important;
    margin-bottom: 0 !important;
}
/* =========================================
   REFINAMIENTO MODO OSCURO: NOTA DE PLANES
   ========================================= */

/* Adaptar la caja de nota al modo oscuro */
body.dark-mode .purchase-note {
    background-color: #1a1a1a !important; /* Fondo gris oscuro, acorde a las tarjetas */
    border: 1px solid #333333 !important; /* Borde sutil para separarlo del fondo */
    color: #cccccc !important; /* Texto claro para que sea legible */
}

/* Destacar el ícono y la palabra "Nota" con tu color beige */
body.dark-mode .purchase-note strong,
body.dark-mode .purchase-note i {
    color: var(--accent) !important;
}
/* =========================================
   PÁGINA DE TALLERES
   ========================================= */
.talleres-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem 4rem; /* Poco margen superior para estar cerca del header */
    min-height: 70vh;
}

.workshops-grid {
    display: grid;
    /* Crea las 4 columnas en PC y se ajusta a 1 en celular */
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin-top: 1rem;
    margin-bottom: 3rem;
}

.workshop-card {
    position: relative;
    height: 300px;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    /* Transición elástica para el salto */
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.workshop-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
    z-index: 1;
}

/* Capa oscura (gradiente) para que el texto blanco sea siempre legible */
.workshop-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(117, 40, 40, 0.2) 100%);
    z-index: 2;
    transition: background 0.3s ease;
}

.workshop-content {
    position: absolute;
    bottom: 25px;
    left: 20px;
    right: 20px;
    z-index: 3;
    text-align: center;
}

.workshop-content h3 {
    color: #ffffff;
    font-size: 1.6rem;
    font-family: 'Playfair Display', serif;
    margin: 0;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.6);
    transition: color 0.3s ease;
}

/* Animación al pasar el ratón (Salto hacia arriba) */
.workshop-card:hover {
    transform: translateY(-15px); /* Salta 1.5 cm hacia arriba */
    box-shadow: 0 20px 40px rgba(117, 40, 40, 0.25); /* Sombra guinda */
}

.workshop-card:hover .workshop-bg {
    transform: scale(1.1); /* Efecto zoom en la imagen */
}

.workshop-card:hover .workshop-content h3 {
    color: var(--accent); /* El título se pone color beige */
}

/* Panel de Información del Taller (Aparece al hacer clic) */
.workshop-info-section {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: var(--shadow-md);
    border-left: 6px solid var(--primary);
    margin-top: 2rem;
    animation: fadeInUp 0.5s ease-out;
}

.workshop-info-content h2 {
    color: var(--primary);
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

.workshop-info-content p {
    color: var(--text-main);
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* === MODO OSCURO PARA TALLERES === */
body.dark-mode .workshop-info-section {
    background: #1a1a1a;
    border: 1px solid #333;
    border-left: 6px solid var(--primary);
}
body.dark-mode .workshop-info-content h2 {
    color: var(--accent);
}
body.dark-mode .workshop-info-content p {
    color: #cccccc;
}
/* =========================================
   AJUSTE ESTÉTICO Y CENTRADO DE TÍTULOS
   ========================================= */
.workshop-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%; /* Toma todo el ancho de la tarjeta para centrar exacto */
    padding: 30px 15px; /* Más espacio a los lados para que no toque los bordes */
    z-index: 3;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.workshop-content h3 {
    color: #ffffff;
    font-size: 1.35rem; /* Tamaño refinado para que palabras largas quepan bien */
    font-family: 'Playfair Display', serif;
    margin: 0;
    line-height: 1.3; /* Espaciado elegante entre líneas si el texto baja */
    letter-spacing: 0.5px; /* Ligero espacio entre letras para mayor sofisticación */
    text-shadow: 2px 2px 10px rgba(0,0,0,0.9); /* Sombra más fuerte para que resalte siempre */
    transition: color 0.3s ease, transform 0.3s ease;
    width: 100%;
}

/* Efecto extra: El texto sube sutilmente junto con el color al pasar el mouse */
.workshop-card:hover .workshop-content h3 {
    color: var(--accent);
    transform: translateY(-5px); 
}
/* =========================================
   MODAL EMERGENTE PARA TALLERES
   ========================================= */
.workshop-modal-card {
    display: block; /* Sobrescribe el flex por defecto para centrar texto */
    padding: 3rem;
    text-align: center;
    max-width: 550px; /* Ancho ideal para lectura */
    border-top: 6px solid var(--primary); /* Detalle guinda arriba */
}

/* Ajuste del botón X */
.workshop-modal-card .close-btn {
    top: 15px;
    right: 20px;
    color: var(--text-muted);
    transition: var(--transition);
}
.workshop-modal-card .close-btn:hover { color: var(--primary); transform: scale(1.1); }

.workshop-info-content h2 {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-family: 'Playfair Display', serif;
}

.workshop-info-content p {
    color: var(--text-main);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-align: justify;
}

/* MODO OSCURO PARA MODAL DE TALLERES */
body.dark-mode .workshop-modal-card {
    background: #1a1a1a;
    border: 1px solid #333;
    border-top: 6px solid var(--primary);
}
body.dark-mode .workshop-info-content h2 { color: var(--accent); }
body.dark-mode .workshop-info-content p { color: #cccccc; }
body.dark-mode .workshop-modal-card .close-btn { color: #aaaaaa; }
body.dark-mode .workshop-modal-card .close-btn:hover { color: var(--accent); }

/* AJUSTE PARA CELULAR */
@media (max-width: 768px) {
    .workshop-modal-card { padding: 2rem 1.5rem; }
    .workshop-info-content h2 { font-size: 1.6rem; margin-bottom: 1rem; }
    .workshop-info-content p { font-size: 0.95rem; text-align: center; }
}
/* --- Control de visibilidad por dispositivo --- */

/* --- Lógica Híbrida --- */

/* En celulares: ocultamos la sección de escritorio por seguridad */
@media (max-width: 768px) {
    #workshop-info-desktop {
        display: none !important;
    }
}

/* En computadoras: ocultamos el modal y preparamos la sección de abajo */
@media (min-width: 769px) {
    #workshop-modal-mobile {
        display: none !important;
    }
    /* Esta sección inicia oculta y el JS la muestra con display: block */
    #workshop-info-desktop {
        display: none; 
        margin-top: 3rem;
    }
}
/* =========================================
   ANIMACIÓN PARA CAMBIO DE TALLER (ESCRITORIO)
   ========================================= */
@keyframes fadeSlideUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-slide-animation {
    animation: fadeSlideUp 0.5s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}
/* =========================================
   ACTUALIZACIÓN RESPONSIVA Y MENÚ HAMBURGUESA
   ========================================= */

/* Ocultar los controles móviles cuando estamos en Computadora */
#nav-check, .nav-mobile-header {
    display: none !important;
}

/* En PC, el contenedor actúa como fantasma para no romper tu diseño Grid */
.nav-links-container {
    display: contents !important; 
}

/* =========================================
   SOLO PARA CELULARES Y TABLETS
   ========================================= */
@media (max-width: 992px) {
    
    /* 1. Restablecer Navbar para apilar elementos */
    .navbar {
        display: block !important;
        padding: 15px 20px !important;
    }

    /* 2. Mostrar la Cabecera Móvil (Logo a la izq y Hamburguesa a la der) */
    .nav-mobile-header {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
    }

    .nav-logo-mobile img {
        height: 50px !important;
        width: 50px !important;
        border-radius: 50% !important;
        border: 2px solid #fff !important;
    }

    /* 3. Diseño del Botón Hamburguesa */
    .nav-btn {
        display: block !important;
        z-index: 1001 !important;
    }

    .nav-btn label {
        display: flex !important;
        flex-direction: column !important;
        width: 32px !important;
        cursor: pointer !important;
    }

    .nav-btn label span {
        height: 3px !important;
        background: #ffffff !important;
        margin: 5px 0 !important;
        border-radius: 3px !important;
        transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    }

    /* 4. Ocultar Logo Central de Escritorio */
    .desktop-logo {
        display: none !important;
    }

    /* 5. Contenedor del Menú Desplegable (Inicia Oculto) */
    .nav-links-container {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        max-height: 0 !important;
        overflow: hidden !important;
        transition: max-height 0.4s ease-in-out, margin-top 0.4s ease-in-out !important;
        margin-top: 0 !important;
    }

    /* 6. Expandir el menú cuando se toca la hamburguesa */
    #nav-check:checked ~ .nav-links-container {
        max-height: 450px !important;
        margin-top: 25px !important;
    }

    /* 7. Apilar los enlaces del menú verticalmente */
    .nav-group {
        flex-direction: column !important;
        gap: 10px !important;
        width: 100% !important;
        text-align: center !important;
    }

    .nav-group.left, .nav-group.right {
        justify-content: center !important;
        margin: 0 !important;
    }

    .nav-group li {
        width: 100% !important;
    }

    .nav-group li a {
        display: block !important;
        padding: 12px !important;
        font-size: 1.1rem !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    }

    /* 8. ¡MAGIA! Animación del icono Hamburguesa convirtiéndose en una 'X' */
    #nav-check:checked ~ .nav-mobile-header .nav-btn label span:nth-child(1) {
        transform: translateY(13px) rotate(45deg) !important;
    }
    #nav-check:checked ~ .nav-mobile-header .nav-btn label span:nth-child(2) {
        opacity: 0 !important;
    }
    #nav-check:checked ~ .nav-mobile-header .nav-btn label span:nth-child(3) {
        transform: translateY(-13px) rotate(-45deg) !important;
    }

    /* =========================================
       AJUSTES GENERALES PARA CELULAR 
       ========================================= */
    .hero-content h2 { font-size: 2rem !important; }
    .about-container { flex-direction: column !important; text-align: center !important; }
    .about-image img { width: 100% !important; max-width: 300px !important; box-shadow: 0px 15px 0px var(--accent) !important; }
    .objectives-grid, .footer-content, .workshops-grid { grid-template-columns: 1fr !important; }
    .header-subtitle { font-size: 1.5rem !important; padding: 0 15px !important; }
    .products-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important; }
}
/* =========================================
   ESTILOS INTERNOS PARA EL TEXTO DE TALLERES
   ========================================= */
.workshop-subtitle {
    color: var(--primary);
    margin: 1.5rem 0 0.8rem;
    font-size: 1.3rem;
    font-family: 'Playfair Display', serif;
}

.workshop-list {
    text-align: left;
    margin: 0 0 1.5rem 1.5rem;
    color: var(--text-main);
}

.workshop-list li {
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

.workshop-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem;
    text-align: left;
}

.workshop-table th, .workshop-table td {
    border: 1px solid #e0e0e0;
    padding: 12px;
}

.workshop-table th {
    background-color: var(--primary);
    color: white;
    font-weight: 600;
}

/* Adaptación al Modo Oscuro */
body.dark-mode .workshop-subtitle {
    color: var(--accent);
}
body.dark-mode .workshop-list {
    color: #cccccc;
}
body.dark-mode .workshop-table th, 
body.dark-mode .workshop-table td {
    border-color: #444;
}
body.dark-mode .workshop-table th {
    background-color: #2a2a2a;
    color: var(--accent);
}
/* =========================================
   NOTA DENTRO DE LOS TALLERES
   ========================================= */
.workshop-note {
    margin-top: 1.5rem !important;
    margin-bottom: 2rem !important;
    padding: 12px 20px !important;
    display: inline-block; /* Evita que se estire demasiado a los lados en el modal */
    text-align: center;
}

/* Ajuste específico para el modal en celular para que no ocupe tanto espacio */
@media (max-width: 768px) {
    .workshop-note {
        margin-top: 1rem !important;
        margin-bottom: 1.5rem !important;
        font-size: 0.85rem !important;
    }
}
/* =========================================
   NOTA DENTRO DE LOS TALLERES
   ========================================= */
.workshop-note {
    margin-top: 1.5rem !important;
    margin-bottom: 2rem !important;
    padding: 0 !important; /* Quitamos el relleno interno */
    display: block !important; /* Esto obliga a que la nota ocupe toda la línea y manda el botón hacia abajo */
    text-align: left !important; /* Alineamos el texto a la izquierda como el resto del contenido */
    background-color: transparent !important; /* Quitamos el fondo gris/oscuro */
    border: none !important; /* Eliminamos el borde */
    box-shadow: none !important;
}

/* Forzar que no tenga borde ni fondo en el Modo Oscuro */
body.dark-mode .workshop-note {
    background-color: transparent !important;
    border: none !important;
}

/* Ajuste específico para celular */
@media (max-width: 768px) {
    .workshop-note {
        margin-top: 1rem !important;
        margin-bottom: 1.5rem !important;
        font-size: 0.9rem !important;
        text-align: center !important; /* En celular se ve mejor centrado */
    }
}
/* =========================================
   SOLUCIÓN: SCROLL EN EL MODAL DE TALLERES (MÓVIL)
   ========================================= */
@media (max-width: 768px) {
    /* 1. Limitar la altura de la tarjeta para que quepa en la pantalla */
    .workshop-modal-card {
        max-height: 85vh !important; /* Ocupa máximo el 85% de la altura de la pantalla */
        display: flex !important;
        flex-direction: column !important;
        padding: 3rem 1rem 1.5rem 1rem !important; /* Da espacio arriba para que el texto no tape el tache */
    }

    /* 2. Activar el scroll solo en la caja del texto y los botones */
    .workshop-modal-card .workshop-info-content {
        overflow-y: auto !important; /* Activa el desplazamiento vertical */
        padding-right: 10px !important; /* Espacio pequeño para que no pegue con el borde */
    }

    /* 3. Fajar el tache en la esquina superior para que nunca se pierda de vista */
    .workshop-modal-card .close-btn {
        position: absolute !important;
        top: 10px !important;
        right: 15px !important;
        z-index: 20 !important;
        background-color: var(--card-bg) !important; /* Le ponemos fondo para que el texto no se mezcle al subir */
        width: 35px !important;
        height: 35px !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
    }

    /* 4. Ajustar el color del fondo del tache en Modo Oscuro */
    body.dark-mode .workshop-modal-card .close-btn {
        background-color: #1a1a1a !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.5) !important;
    }
}
/* =========================================
   OCULTAR SUBTÍTULO REPETIDO EN INICIO (MÓVIL)
   ========================================= */
@media (max-width: 992px) {
    .ocultar-en-movil {
        display: none !important;
    }
}
/* =========================================
   REDISEÑO DE IMAGEN HERO (FOTO DEL RECITAL)
   ========================================= */

.hero-section {
    position: relative !important;
    height: 75vh !important; 
    width: 100% !important;
    
    /* 1. Apuntamos a la nueva imagen */
    background-image: url('assets/img/Principal/recital.png') !important; 
    
    background-size: cover !important;
    
    /* 2. Cambiamos a 'center center' para enmarcar a todo el grupo */
    background-position: center center !important; 
    
    background-repeat: no-repeat !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
}
/* =========================================
   ACTUALIZACIÓN: REJILLA DE PLANES (SEDES) Y ANIMACIÓN
   ========================================= */
.planes-grid {
    display: grid !important;
    /* Se adaptan automáticamente al tamaño de la pantalla */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 30px !important;
    margin-top: 2rem !important;
    align-items: stretch !important;
}

/* Redefinición para la tarjeta de planes individual */
.plan-card {
    max-width: 100% !important; 
    border: 1px solid rgba(0,0,0,0.05) !important;
    /* Animación elástica de salto (jump) */
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease !important;
}

/* Efecto al pasar el mouse */
.plan-card:hover {
    transform: translateY(-15px) !important;
    box-shadow: 0 25px 50px rgba(117, 40, 40, 0.15) !important; /* Sombra guinda */
    border-color: var(--accent) !important;
    z-index: 10 !important;
}

.plan-sede-title {
    font-size: 1.4rem !important;
    margin-bottom: 5px !important;
    color: #ffffff !important;
}

.plan-header .price {
    font-size: 2.6rem !important;
}

/* Cajas de información interna (Horarios y Costos) */
.horarios-box {
    background-color: var(--bg-light);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    text-align: left;
    border-left: 4px solid var(--primary); /* Detalle visual guinda */
}

.horarios-box h4 {
    color: var(--primary);
    font-size: 1rem;
    margin-bottom: 8px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

.horarios-box p {
    font-size: 0.9rem;
    color: var(--text-main);
    margin-bottom: 4px;
    line-height: 1.4;
}

.costos-box {
    text-align: left;
    margin-bottom: 20px;
    background-color: var(--bg-light);
    border-radius: 8px;
    padding: 15px;
}

.costos-box p {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    color: var(--text-main);
    border-bottom: 1px dashed #cccccc;
    padding-bottom: 5px;
    margin-bottom: 8px;
}

.costos-box p:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
}

.discount-tag {
    display: block;
    color: #28a745; /* Verde para destacar el descuento */
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    margin-top: 15px;
    background: rgba(40, 167, 69, 0.1);
    padding: 6px;
    border-radius: 5px;
}

/* === REFINAMIENTO PARA MODO OSCURO === */
body.dark-mode .horarios-box,
body.dark-mode .costos-box {
    background-color: #252525;
}
body.dark-mode .horarios-box {
    border-left-color: var(--accent);
}
body.dark-mode .horarios-box h4 {
    color: var(--accent);
}
body.dark-mode .horarios-box p,
body.dark-mode .costos-box p {
    color: #cccccc;
}
body.dark-mode .costos-box p {
    border-bottom-color: #444444;
}

/* =========================================
   CAJAS DE HORARIOS Y COSTOS
   ========================================= */
.horarios-box {
    background-color: var(--bg-light);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    text-align: left;
    border-left: 4px solid var(--primary);
}

.horarios-box h4 {
    color: var(--primary);
    font-size: 1rem;
    margin-bottom: 8px;
    font-family: 'Poppins', sans-serif;
}

.horarios-box p {
    font-size: 0.9rem;
    color: var(--text-main);
    margin-bottom: 2px;
}

.costos-box {
    background-color: var(--bg-light);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: left;
}

.costos-box p {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    color: var(--text-main);
    border-bottom: 1px dashed #cccccc;
    padding-bottom: 5px;
    margin-bottom: 8px;
}

.costos-box p:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
}

.discount-tag {
    display: block;
    color: #28a745;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    margin-top: 15px;
    background: rgba(40, 167, 69, 0.1);
    padding: 6px;
    border-radius: 5px;
}

/* === MODO OSCURO PARA HORARIOS Y COSTOS === */
body.dark-mode .horarios-box,
body.dark-mode .costos-box {
    background-color: #252525;
}
body.dark-mode .horarios-box {
    border-left-color: var(--accent);
}
body.dark-mode .horarios-box h4 {
    color: var(--accent);
}
body.dark-mode .horarios-box p,
body.dark-mode .costos-box p {
    color: #cccccc;
}
body.dark-mode .costos-box p {
    border-bottom-color: #444444;
}
/* =========================================
   CORRECCIÓN FINAL: TARJETA GORDITA Y SOMBRA LIMPIA
   ========================================= */

/* 1. Contenedor del carrusel: Más ancho para acomodar la tarjeta original y flechas */
.planes-carousel-wrapper {
    max-width: 650px !important; /* Ancho suficiente para tarjeta + flechas */
    margin: 0 auto !important;
    position: relative !important;
}

/* 2. El slide: Asegura que la tarjeta esté centrada */
.planes-carousel-wrapper .carousel-slide {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 15px 0 !important; /* Espacio para que el salto no se corte */
}

/* 3. Tarjeta del plan (Sede): Recuperar su ancho "gordito" original y limpiar sombra */
.single-plan {
    max-width: 480px !important; /* Ancho ideal idéntico a tu referencia */
    width: 100% !important;
    margin: 0 auto !important;
    
    /* Limpieza de sombra estática y borde fino */
    box-shadow: none !important; 
    border: 1px solid rgba(0,0,0,0.1) !important;
    
    /* Animación elástica de salto */
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                box-shadow 0.4s ease, 
                border-color 0.4s ease !important;
}

/* En modo oscuro, borde limpio */
body.dark-mode .single-plan {
    border-color: rgba(255,255,255,0.1) !important;
    box-shadow: none !important;
}

/* 4. Efecto de Hover (Salto) CON SOMBRA SUAVE GUINDA */
.single-plan:hover {
    transform: translateY(-12px) !important; /* Salto */
    
    /* Sombra suave y guinda que solo aparece al flotar */
    box-shadow: 0 15px 30px rgba(117, 40, 40, 0.15) !important; 
    border-color: var(--primary) !important; /* Borde guinda */
}

/* 5. Restaurar tamaños y paddings originales para que no se vea apretado */
.plan-header {
    padding: 2.5rem 2rem !important;
}
.plan-header .price {
    font-size: 2.8rem !important; /* Precio grande y legible */
}
.plan-body {
    padding: 2rem !important;
}
/* =========================================
   RESETEO DEFINITIVO: TARJETA PLANES (ANCHO Y SOMBRA)
   ========================================= */

/* 1. Contenedor principal: Se reduce para acercar las flechas */
.planes-carousel-wrapper {
    max-width: 560px !important; 
    width: 100% !important;
    margin: 0 auto !important;
    position: relative !important;
}

/* 2. Contenedor individual: Centra la tarjeta y le da margen a las flechas */
.single-plan-container {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    padding: 0 45px !important; /* Espacio exacto para que entren las flechas */
}

/* 3. Tarjeta: Ancho exacto de tu imagen de referencia y SIN sombra */
.single-plan {
    max-width: 460px !important; /* La hace más ancha ("gordita") */
    width: 100% !important;
    margin: 0 auto !important;
    box-shadow: none !important; /* Elimina la sombra que no te gusta */
    border: 1px solid rgba(255, 255, 255, 0.08) !important; /* Borde súper limpio */
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease !important;
}

/* 4. Ajuste de paddings internos para que respire bien el texto */
.plan-header {
    padding: 2rem 1.5rem !important;
}

.plan-header .price {
    font-size: 2.6rem !important;
}

.plan-body {
    padding: 1.5rem 2rem !important;
}

/* 5. Efecto Hover: Salto con sombra limpia (sin verse borroso) */
.single-plan:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4) !important; /* Sombra solo cuando pasas el mouse */
    border-color: var(--primary) !important;
}

/* Eliminar sombras raras en modo claro por si acaso */
body:not(.dark-mode) .single-plan {
    border-color: rgba(0, 0, 0, 0.1) !important;
}
body:not(.dark-mode) .single-plan:hover {
    box-shadow: 0 12px 25px rgba(117, 40, 40, 0.2) !important;
}
/* =========================================
   REDISEÑO DEFINITIVO: CUADRÍCULA DE PLANES (GRID)
   ========================================= */

/* Ajustamos el contenedor de la página para que sea más ancho y quepan las tarjetas */
.planes-container {
    max-width: 1400px !important;
}

/* La nueva cuadrícula */
.planes-grid-container {
    display: grid !important;
    /* Crea columnas que se adaptan. Mínimo 280px de ancho cada tarjeta */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 25px !important;
    margin: 3rem auto !important;
    width: 100% !important;
}

/* Limpieza y ajuste de la tarjeta individual */
.planes-grid-container .plan-card {
    max-width: 100% !important; /* Ocupa el espacio de su columna en el grid */
    margin: 0 !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08) !important;
    border: 1px solid rgba(0,0,0,0.05) !important;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Efecto hover (Salto hacia arriba y sombra guinda) */
.planes-grid-container .plan-card:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 15px 30px rgba(117, 40, 40, 0.15) !important;
    border-color: var(--primary) !important;
}

/* Modo oscuro: Borde y sombra limpios */
body.dark-mode .planes-grid-container .plan-card {
    box-shadow: 0 4px 15px rgba(0,0,0,0.4) !important;
    border-color: rgba(255,255,255,0.05) !important;
}

body.dark-mode .planes-grid-container .plan-card:hover {
    box-shadow: 0 15px 30px rgba(117, 40, 40, 0.3) !important;
}

/* Ajustes de espacio interno para que el texto no quede apretado */
.planes-grid-container .plan-header {
    padding: 1.8rem 1.2rem !important;
}

.planes-grid-container .plan-header .price {
    font-size: 2.2rem !important;
}

.planes-grid-container .plan-body {
    padding: 1.5rem !important;
    flex-grow: 1 !important; /* Asegura que el botón se quede abajo si las tarjetas tienen distinta altura */
    display: flex !important;
    flex-direction: column !important;
}

.planes-grid-container .btn-plan {
    margin-top: auto !important; /* Empuja el botón al fondo */
}
/* =========================================
   AJUSTE: TARJETAS MÁS ANCHAS Y DISTRIBUIDAS
   ========================================= */

/* 1. Expandir el contenedor principal para aprovechar los lados de la pantalla */
.planes-container {
    max-width: 1600px !important; /* Le da mucha más libertad a lo ancho */
    padding: 3rem 2rem !important;
}

/* 2. Aumentar el ancho mínimo de cada tarjeta y la separación */
.planes-grid-container {
    /* Cambiamos de 280px a 320px como mínimo, haciéndolas más "gorditas" */
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)) !important; 
    gap: 35px !important; /* Un poco más de separación entre las tarjetas */
}

/* 3. Ajuste de espacios internos (paddings) para que el texto respire */
.planes-grid-container .plan-body {
    padding: 2rem !important; /* Más espacio por dentro */
}

/* 4. Alineación del icono de los beneficios con el texto */
.plan-features li {
    font-size: 0.95rem !important; 
    align-items: center !important; 
}
/* =========================================
   CAJA DE DETALLES Y PRECIOS (TALLERES)
   ========================================= */
.workshop-details-box {
    background-color: var(--bg-light);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 12px;
    padding: 25px;
    margin: 30px 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    border-left: 5px solid var(--primary); /* Detalle guinda a la izquierda */
    text-align: left; /* Asegura que el texto esté alineado a la izquierda */
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.detail-item i {
    color: var(--primary);
    font-size: 1.6rem;
    margin-top: 3px;
    width: 25px; /* Mantiene los íconos alineados */
    text-align: center;
}

.detail-item strong {
    color: var(--primary);
    font-size: 1.05rem;
    display: block;
    margin-bottom: 4px;
    font-family: 'Poppins', sans-serif;
}

.detail-item p {
    margin: 0 !important;
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.5;
}

/* Caja de descuento/promo */
.promo-text {
    color: #28a745 !important; /* Verde promoción */
    font-weight: 500;
    margin-top: 8px !important;
    background: rgba(40, 167, 69, 0.1);
    padding: 10px 15px;
    border-radius: 8px;
    display: inline-block;
    border: 1px dashed rgba(40, 167, 69, 0.4);
}

.promo-text i {
    color: #28a745;
    font-size: 1.1rem;
    margin-right: 5px;
    width: auto;
}

.promo-text strong {
    display: inline;
    color: #28a745;
    font-size: 0.95rem;
}

/* === MODO OSCURO PARA CAJA DE DETALLES === */
body.dark-mode .workshop-details-box {
    background-color: #252525;
    border-color: #333;
    border-left-color: var(--accent); /* Cambia el borde izquierdo a beige */
}

body.dark-mode .detail-item strong {
    color: var(--accent); /* Títulos en beige */
}

body.dark-mode .detail-item i {
    color: var(--accent); /* Íconos en beige */
}

body.dark-mode .detail-item p {
    color: #cccccc; /* Texto claro */
}

/* Ajustes para pantallas de celular */
@media (max-width: 768px) {
    .workshop-details-box {
        padding: 20px 15px;
        gap: 15px;
    }
    .detail-item i {
        font-size: 1.3rem;
    }
    .promo-text {
        font-size: 0.85rem;
        padding: 8px 10px;
    }
}
/* =========================================
   SECCIÓN DE CITAS (FULLWIDTH & COLOR) - ALTURA IDEAL
   ========================================= */

/* Estilos de la sección contenedora (el fondo guinda) */
.citas-musicales-fullwidth {
    width: 100%; 
    background-color: #8b2b2b; /* Color guinda */
    padding: 55px 0; /* AUMENTADO: De 30px a 55px para darle la altura exacta de tu imagen */
    box-sizing: border-box;
}

/* El grid para las 3 columnas */
.citas-musicales-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 0; 
    width: 100%; 
    max-width: 100%; 
    padding: 0 4%; 
    margin: 0; 
    box-sizing: border-box;
}

/* Estilos para cada bloque de cita */
.cita-musical-bloque {
    padding: 10px 40px; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center; 
    border-right: 1px solid rgba(255, 255, 255, 0.3); /* Línea divisoria */
}

/* Quitar la línea derecha de la última columna */
.cita-musical-bloque:last-child {
    border-right: none;
}

/* Estilos para el texto de la cita */
.cita-musical-texto {
    font-size: 1.15rem;
    font-style: italic;
    color: #ffffff; 
    margin-bottom: 12px; 
    line-height: 1.5;
}

/* Estilos para el autor */
.cita-musical-autor {
    font-weight: bold;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8); 
}

/* =========================================
   DISEÑO RESPONSIVO (Móviles y Tablets)
   ========================================= */
@media (max-width: 900px) {
    .citas-musicales-grid {
        grid-template-columns: 1fr; /* 1 sola columna en celulares */
        gap: 30px; 
    }
    
    .cita-musical-bloque {
        border-right: none; 
        border-bottom: 1px solid rgba(255, 255, 255, 0.3); /* Línea horizontal separadora */
        padding-bottom: 25px;
    }

    .cita-musical-bloque:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
}
/* =========================================
   CORRECCIÓN: TÍTULO BLANCO EN MÓVIL
   ========================================= */
.nav-logo-mobile h2, 
.mobile-nav-title {
    color: #ffffff !important;
}
/* =========================================
   LÍNEA DIVISORIA EN EL HEADER (SOLO MÓVIL)
   ========================================= */
@media (max-width: 992px) {
    .header-subtitle-container {
        border-top: 1px solid rgba(255, 255, 255, 0.25) !important; /* La línea blanca semitransparente */
        padding-top: 12px !important; /* Espacio entre la línea y las letras de abajo */
        margin-top: 5px !important;   /* Espacio entre la línea y el menú de arriba */
        width: 85% !important;        /* Hace que la línea no toque las orillas, se ve más estética */
        margin-left: auto !important; /* Centra la caja */
        margin-right: auto !important;
    }
}
/* =========================================
   ANIMACIÓN DE "PINTADO" PARA EL MODO OSCURO
   ========================================= */
/* Desactivamos el difuminado genérico que trae el navegador por defecto */
::view-transition-old(root),
::view-transition-new(root) {
    animation: none;
    mix-blend-mode: normal;
    display: block;
}

/* La pantalla vieja se queda quieta al fondo */
::view-transition-old(root) {
    z-index: 1;
}

/* La pantalla nueva se expande por encima de la vieja */
::view-transition-new(root) {
    z-index: 2;
}
/* =========================================
   EVENTO: TALLER DE FILOSOFÍA (DOS TRIMESTRES)
   ========================================= */
/* 1° Trimestre - Beige Claro */
.day.event-trim1 {
    background-color: #ebdcca !important;
    border-color: #d8c7b5 !important;
    color: #333333 !important;
}
.day.event-trim1:hover {
    background-color: #dfcfbd !important;
    border-color: var(--primary) !important;
}

/* 2° Trimestre - Beige Arena Oscuro */
.day.event-trim2 {
    background-color: #d0beaa !important;
    border-color: #bfaea0 !important;
    color: #333333 !important;
}
.day.event-trim2:hover {
    background-color: #c4b29e !important;
    border-color: var(--primary) !important;
}

/* Adaptación Modo Oscuro */
body.dark-mode .day.event-trim1 {
    background-color: #5c4d3c !important;
    border-color: #705e4a !important;
    color: #ffffff !important;
}
body.dark-mode .day.event-trim1:hover { background-color: #705e4a !important; }

body.dark-mode .day.event-trim2 {
    background-color: #4a3e31 !important;
    border-color: #5c4e3f !important;
    color: #ffffff !important;
}
body.dark-mode .day.event-trim2:hover { background-color: #5c4e3f !important; }

/* =========================================
   LEYENDA DEL CALENDARIO (ACTUALIZADA)
   ========================================= */
.calendar-legend {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 2rem;
    gap: 12px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--text-main);
    font-weight: 500;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    display: inline-block;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.legend-color.trim1 { background-color: #ebdcca; }
.legend-color.trim2 { background-color: #d0beaa; }

body.dark-mode .legend-color.trim1 { background-color: #5c4d3c; border-color: rgba(255,255,255,0.1); }
body.dark-mode .legend-color.trim2 { background-color: #4a3e31; border-color: rgba(255,255,255,0.1); }/* =========================================
   EVENTO: TALLER DE FILOSOFÍA (DOS TRIMESTRES)
   ========================================= */
/* 1° Trimestre - Beige Claro */
.day.event-trim1 {
    background-color: #ebdcca !important;
    border-color: #d8c7b5 !important;
    color: #333333 !important;
}
.day.event-trim1:hover {
    background-color: #dfcfbd !important;
    border-color: var(--primary) !important;
}

/* 2° Trimestre - Tono Canela / Madera suave para buen contraste */
.day.event-trim2 {
    background-color: #d6a27a !important; 
    border-color: #c48e65 !important;
    color: #333333 !important;
}
.day.event-trim2:hover {
    background-color: #c48e65 !important;
    border-color: var(--primary) !important;
}

/* Adaptación Modo Oscuro - 2° Trimestre */
body.dark-mode .day.event-trim2 {
    background-color: #8b5a3c !important; /* Canela profundo */
    border-color: #78482a !important;
    color: #ffffff !important;
}
body.dark-mode .day.event-trim2:hover { 
    background-color: #78482a !important; 
}

/* =========================================
   LEYENDA DEL CALENDARIO (ACTUALIZADA)
   ========================================= */
.calendar-legend {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 2rem;
    gap: 12px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--text-main);
    font-weight: 500;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    display: inline-block;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Colores de la leyenda */
.legend-color.trim1 { background-color: #ebdcca; }
.legend-color.trim2 { background-color: #d6a27a; } /* Actualizado a canela */

/* Leyenda en Modo Oscuro */
body.dark-mode .legend-color.trim1 { background-color: #5c4d3c; border-color: rgba(255,255,255,0.1); }
body.dark-mode .legend-color.trim2 { background-color: #8b5a3c; border-color: rgba(255,255,255,0.1); } /* Actualizado a canela profundo */
/* =========================================
   JUSTIFICAR TEXTO DE LOS TALLERES
   ========================================= */
.workshop-info-content p,
.workshop-list li,
.workshop-desc-container p {
    text-align: justify !important;
}

/* Evitar que en celulares el texto se centre accidentalmente */
@media (max-width: 768px) {
    .workshop-info-content p,
    .workshop-list li,
    .workshop-desc-container p {
        text-align: justify !important;
    }
}
/* =========================================
   CORRECCIÓN: NEGRITAS EN LA MISMA LÍNEA
   ========================================= */
.detail-item p strong {
    display: inline !important; /* Evita el salto de línea */
    margin-bottom: 0 !important;
    margin-right: 5px !important; /* Pequeño espacio entre los dos puntos y la fecha */
}  