@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700;800&display=swap');

:root {
  /* NUEVA PALETA DE COLORES */
  --primary: #7F171C;      /* Rojo quemado */
  --secondary: #C5972D;    /* Dorado / Mostaza */
  --text-color: #343434;   /* Gris oscuro para cuerpo de texto */
  
  --bg: #faf7f0;
  --card: #fff;
  --muted: #666;          /* Gris para textos secundarios y días de la semana */
  --shadow: 0 12px 30px rgba(0,0,0,0.10);
  --radius: 14px;
}

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

body {
  font-family: "Poppins", sans-serif;
  background: var(--bg);
  color: var(--text-color);
}

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px }

/* INDEX */
.navbar-light .navbar-nav .nav-link,
.navbar .nav-link {
  color: var(--muted) !important; 
  font-size: 1.1rem;
  transition: color 0.2s ease;
  font-weight: 500;
  padding: 0.5rem 1.25rem;
}

.navbar-nav .nav-item {
  margin-left: 1.3rem;
  margin-right: 1.3rem;
}

/* Hover y selección (Activo) */
.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active,
.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: var(--primary) !important; 
}

/* Menú desplegable (Dropdown) */
.dropdown-menu { 
  border: none; 
}

.dropdown-menu .dropdown-item { 
  color: var(--muted) !important; 
}

.dropdown-item:hover, 
.dropdown-menu .dropdown-item:hover { 
  color: var(--primary) !important; 
  background-color: transparent; 
}

.navbar-logo { 
  height: 90px; 
  width: auto; 
}

/* TESTIMONIOS */
.testimonios { background-color: #f9f9f9; }
.section-title { color: var(--primary); font-weight: 600; }
.section-subtitle { color: var(--muted); font-size: 0.95rem; }
.testimonial-card { border: none; border-radius: 12px; box-shadow: 0 8px 20px rgba(0,0,0,0.08); }
.testimonial-img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.stars { color: var(--secondary); font-size: 0.85rem; }
.testimonial-text { color: var(--text-color); font-size: 0.95rem; margin-top: 0.5rem; }

/* NUESTROS CURSOS */
.cursos { background-color: #ffffff; }
.curso-card-link { text-decoration: none; }
.curso-card {
  border: 1px solid #eee;
  border-radius: 12px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}
.curso-card:hover { transform: translateY(-4px); box-shadow: 0 10px 25px rgba(0,0,0,0.08); }
.curso-img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px 0 0 12px; }
.curso-title { color: var(--primary); font-weight: 600; margin-bottom: 0.25rem; }
.curso-text { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* NOSOTROS */
.nosotros { max-width: 1100px; margin: 0 auto; padding: 80px 20px; text-align: center; }
.nosotros-title { font-size: 32px; font-weight: 700; color: var(--primary); margin-bottom: 20px; }
.nosotros-text { max-width: 900px; margin: 0 auto 40px; font-size: 16px; line-height: 1.7; color: var(--text-color); text-align:justify }
.nosotros-video video { width: 100%; max-width: 1000px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; background-color: #000; }

/* FOOTER */
.footer { background-color: #ffffff; font-size: 0.9rem; }
.footer-menu a, .footer-link { color: var(--text-color); text-decoration: none; margin-right: 1rem; transition: color 0.2s ease; font-weight: 600; }
.footer-menu a:hover, .footer-link:hover { color: var(--primary); }
.footer-link-gold { color: var(--primary); text-decoration: none; font-weight: 600; }
.footer-menufooter-link-gold a:hover, .footer-link-gold:hover { color: var(--text-color); }
.social-icons a { color: var(--primary); font-size: 2.4rem; margin: 0 0.5rem; transition: color 0.25s ease, transform 0.25s ease; text-decoration: none; }
.social-icons a:hover { color: var(--text-color); transform: translateY(-2px); }
.social-text { color: var(--text-color); font-size: 1rem; font-weight: 700; }
.footer-logo { height: 100px; width: auto; }
.footer-legend { color: var(--muted); font-size: 0.85rem; }
.footer-copy { color: #999; font-size: 0.8rem; }

/* =========================================================
CONTROLES HERO BANNER
   ========================================================= */
.carousel-control-prev-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23C5972D'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e") !important;
}

.carousel-control-next-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23C5972D'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
}

/* =========================================================
   CURSOS PRESENCIALES / CALENDARIO (REESTRUCTURADO)
   ========================================================= */
.cursos-section{ max-width: 1240px; margin: 0 auto; padding: 54px 20px 70px; }
.cursos-section .section-title{ text-align:center; margin:0 0 30px; color:var(--primary); font-size:1.8rem; font-weight:700; }

.calendar-legend{ display:grid; grid-template-columns:repeat(6, minmax(0, 1fr)); gap:16px; margin:0 20px 10px; }
.calendar-legend div { 
  text-align: center; 
  color: var(--muted); 
  font-size: .86rem; 
  font-weight: 700; 
  text-transform: uppercase; 
  letter-spacing: .06em; 
}

.calendar-grid{ display:grid; grid-template-columns:repeat(6, minmax(0, 1fr)); gap:16px; margin:0 20px; }

/* 1. La columna del día ahora es transparente, solo sirve de esqueleto */
.day {
  min-height: 380px; 
  display: flex;
  flex-direction: column;
  background-color: transparent; 
  box-shadow: none; 
  border: none;
  padding: 0 6px; 
}

/* 2. El cuerpo del día organiza las tarjetas y aplica la separación */
.day-body {
  display: flex;
  flex-direction: column;
  height: 100%;
  flex-grow: 1;
  gap: 12px;
}

/* 3. Estilo maestro de la Tarjeta Blanca Individual (Curso o Vacía) */
.curso-diario-wrapper, 
.empty-card {
  background-color: #ffffff;
  border-radius: 16px; 
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.08); 
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex-grow: 1; 
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Animación al pasar el mouse por cada tarjeta de curso */
.curso-diario-wrapper:hover {
  transform: translateY(-4px);
  box-shadow: 0px 8px 18px rgba(0, 0, 0, 0.12);
  cursor: pointer;
}

/* 4. Comportamiento de las imágenes (tamaño completo vs banner) */
.thumb-button {
  width: 100%;
  height: 180px; 
  display: block;
  position: relative;
  border: none;
  padding: 0;
  background: transparent;
}

.thumb {
  width: 100%;
  height: 100%;
  object-fit: cover; 
  display: block;
  transition: transform .35s ease;
}

.curso-diario-wrapper:hover .thumb {
  transform: scale(1.045);
}

/* CSS Inteligente: Si detecta 2 tarjetas en un día, recorta las imágenes a la mitad */
.day-body:has(.curso-diario-wrapper:nth-child(2)) .thumb-button {
  height: 90px; 
}

/* 5. Títulos y textos del calendario */
.day-title {
  padding: 12px 10px;
  text-align: center;
  font-size: 1.05rem; 
  font-weight: 800; 
  color: var(--text-color); 
  line-height: 1.15;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 52px; 
}

.calendar-note{ margin:18px 20px 0; color:var(--muted); font-size:.78rem; text-align:center; }

/* Numerito en la tarjeta (Rojo quemado) */
.day-num-overlay {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: var(--primary); 
  color: #fff;
  font-weight: 700;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 1.1rem;
  z-index: 2;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Numero en la tarjeta para días vacíos (Rojo quemado claro) */
.day-num-overlay-empty {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: #d8a4a4; 
  color: #fff;
  font-weight: 700;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 1.1rem;
  z-index: 2;
}

/* CURSO EXPRESS COMPONENTES */
.contenedor-express {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 2px;
}
.icono-png-express { width: 32px; height: auto; margin-bottom: 2px; }
.texto-express { font-size: 13px; font-weight: 800; color: #333; line-height: 1.1; }
.titulo-curso { font-size: 15px; font-weight: 900; color: #222; text-transform: uppercase; line-height: 1.1; }

/* =========================================================
   MODAL DEL CURSO
   ========================================================= */
#cursoModal{ position:fixed; inset:0; z-index:9999; display:none; align-items:center; justify-content:center; padding:20px; background:rgba(25,20,12,.62); backdrop-filter:blur(3px); }
#cursoModal.is-open{ display:flex; }
#cursoModal .modal-content{ width:min(920px, 100%); max-height:calc(100vh - 40px); overflow:auto; padding:0; background:#fff; border:0; border-radius:22px; box-shadow:0 22px 70px rgba(0,0,0,.25); position:relative; animation:modalFade .22s ease-out; }

@keyframes modalFade{ from{opacity:0;transform:translateY(8px) scale(.985)} to{opacity:1;transform:translateY(0) scale(1)} }

.modal-close{ position:absolute; top:15px; right:15px; z-index:5; width:38px; height:38px; border:0; border-radius:50%; background:rgba(255,255,255,.95); color:var(--text-color); font-size:25px; line-height:1; cursor:pointer; display:flex; align-items:center; justify-content:center; box-shadow:0 3px 12px rgba(0,0,0,.14); transition:background .2s ease, transform .2s ease; }
.modal-close:hover{ background:#f7f0df; transform:rotate(3deg); }

.modal-grid{ display:grid; grid-template-columns:46% 54%; }
.modal-left{ min-height:410px; background:#eee; overflow:hidden; }
.modal-left img{ display:block; width:100%; height:100%; min-height:410px; object-fit:cover; }

.modal-right{ padding:36px 38px 30px; display:flex; flex-direction:column; justify-content:center; text-align: center; align-items: center; }

#modalTitulo{ margin:0 0 14px; color:var(--primary); font-size:1.65rem; line-height:1.2; font-weight:800; text-transform: uppercase;}
.precio-line{ margin-bottom:18px; }
.precio-valor{ color:var(--primary); font-size:1.3rem; font-weight:700; }

.meta-row{ display:flex; flex-direction:column; align-items:center; gap:4px; margin-bottom:22px; color:var(--text-color); font-size:.92rem; line-height:1.55; }
.meta-item{ margin-bottom:0; }
.modal-calendar-icon { font-size: 1.8rem; color: var(--text-color); margin-bottom: 5px; }

.modal-content h4{ margin:0; padding:25px 38px 8px; color:var(--text-color); font-size:1.08rem; font-weight:800; text-align: center; }

.modal-temario{ padding:0 38px 30px; color:var(--text-color); font-size:.9rem; line-height:1.65; display: inline-block; text-align: left; }
.modal-temario ul{ margin:0; padding-left:1.2rem; }
.modal-temario li{ margin-bottom:5px; }
.modal-temario ul li::marker { color: var(--primary); font-weight: bold; }

body.modal-open{ overflow:hidden; }

/* Botones y WhatsApp */
.btn.primary {
  border-radius: 25px; 
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  padding: 10px 24px;
  background: var(--primary);
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
  border: 0;
}
.btn.primary:hover { background: var(--secondary); transform:translateY(-1px); }

/* =========================================================
   CURSOS VIRTUALES
   ========================================================= */
.course-card { background: #ffffff; border-radius: 24px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12); overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease; cursor: pointer; }
.course-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18); }
.course-img { width: 100%; height: 260px; object-fit: cover; border-radius: 24px 24px 0 0; }
.course-body { padding: 1.5rem; }
.course-title { font-size: 1.4rem; font-weight: 500; color: var(--text-color); margin-bottom: 0.4rem; }
.price-gold { color: var(--primary); font-weight: 700; }
.custom-modal-content { border-radius: 40px !important; overflow: hidden; border: none; }
.modal-img { height: 100%; min-height: 350px; object-fit: cover; border-radius: 40px; padding: 15px; }
.btn-whatsapp-custom { background-color: var(--primary) !important; color: #ffffff !important; border-radius: 25px !important; padding: 10px 24px !important; font-weight: 800 !important; font-family: 'Poppins', sans-serif; border: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: all 0.3s ease; }
.btn-whatsapp-custom:hover { background-color: var(--secondary) !important; color: #ffffff !important; }
.btn-whatsapp-custom i { font-size: 1.3rem; -webkit-text-stroke: 0.5px white; }
.custom-close { position: absolute; right: 20px; top: 20px; z-index: 10; }
.course-footer { display: flex; justify-content: space-between; align-items: center; }
.course-price { font-size: 2rem; font-weight: 700; color: var(--text-color); }
.course-link { font-size: 0.95rem; color: var(--primary); font-weight: 600; text-decoration: none; margin-top: 0.9rem; }
.course-link:hover { text-decoration: underline; }

/* =========================================================
   TIENDA PAGE
   ========================================================= */
.container { padding: 40px 20px; }
.titulo-rojo { color: var(--primary); font-size: 2.5rem; margin-bottom: 10px; text-align: center; }
.subtitulo { color: var(--text-color); text-align: center; font-size: 1.1rem; margin-top: 0; }
.banner-tienda { width: 100%; height: 400px; background-image: linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.1)), url('../img/tienda/tienda_banner_1402x400.png'); background-size: cover; background-position: center; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 40px; }
.btn-catalogo { background-color: var(--primary); color: white; padding: 12px 40px; text-decoration: none; border-radius: 8px; font-weight: bold; font-size: 1rem; transition: background-color 0.3s ease; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.btn-catalogo:hover { background-color: var(--secondary); }
.titulo-rojo-bs { color: var(--primary); font-weight: 500; margin-bottom: 15px; }
.horarios-texto { font-size: 1.1rem; color: var(--text-color); }
.reloj-icon { font-size: 1.5rem; vertical-align: middle; }
.card-cuadrada { max-width: 210px; margin: 0 auto; border: 2px solid transparent; background: transparent; transition: all 0.4s ease; border-radius: 8px; padding: 5px; }
.img-container { position: relative; width: 100%; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 4px; }
.img-container img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.efecto-espejo { position: absolute; top: 0; left: -150%; width: 50%; height: 100%; background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%); transform: skewX(-25deg); transition: 0.6s; }
.card-cuadrada:hover { border-color: var(--primary); }
.card-cuadrada:hover .efecto-espejo { left: 150%; }
.card-cuadrada:hover img { transform: scale(1.1); }
.card-text { font-size: 0.85rem; color: var(--text-color); text-align: left; margin-top: 10px; }

/* =========================================================
   CONTACT PAGE
   ========================================================= */
.header-contacto { position: relative; height: 60vh; background-image: url('../img/contacto/herobanner_escuela.jpg'); background-size: 130%; background-position: center; background-repeat: no-repeat; display: flex; flex-direction: column; }
.hero-wrapper { position: relative; height: calc(60vh - 80px); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.7) 30%, rgba(0,0,0,0.45) 60%, rgba(0,0,0,0.2) 85%, rgba(0,0,0,0.1) 100%); z-index: 1; }
.hero-content { position: relative; z-index: 2; height: 100%; display: flex; align-items: flex-start; justify-content: center; padding-top: 50px; text-align: center; }
.hero-content h1 { font-size: 4rem; font-weight: 700; letter-spacing: 5px; color: var(--primary); text-shadow: 0 5px 18px rgba(0,0,0,0.85); }
.hero-content p { text-shadow: 0 3px 10px rgba(0,0,0,0.9); color: #fff; }

.navbar { background-color: var(--text-color); position: relative; z-index: 10; }
.navbar-brand img { filter: none; }
.navbar-nav .nav-link { color: #ffffff !important; text-shadow: none; transition: color 0.3s ease; }
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active { color: var(--primary) !important; }

.info-list li { font-size: 1.3rem; margin-bottom: 15px; display: flex; align-items: center; color: var(--text-color); }
.info-list i { color: var(--primary) !important; width: 30px; font-size: 1.3rem; margin-right: 15px; }

.social-link { display: inline-block; font-size: 2.5rem; margin: 0 15px; color: var(--primary) !important; transition: transform 0.3s ease, color 0.3s ease; }
.social-link:hover { transform: scale(1.2); color: var(--secondary) !important; }

.footer-nav a { margin: 0 10px; text-decoration: none; color: var(--text-color); font-weight: 500; font-size: 0.95rem; letter-spacing: 0.3px; transition: color 0.3s ease; }
.footer-nav a:hover { color: var(--primary); }
.footer-nav a.faq { color: var(--primary); }
.footer-nav a.faq:hover { color: var(--muted); }

.logos-footer img { height: 54px; width: auto; filter: grayscale(100%); opacity: 0.7; transition: opacity 0.3s ease, transform 0.3s ease, filter 0.3s ease; }
.logos-footer img:hover { filter: grayscale(0%); opacity: 1; transform: scale(1.03); }

.social-footer { display: inline-flex; align-items: center; justify-content: center; margin: 0 10px; font-size: 1.5rem; color: var(--primary); text-decoration: none; transition: color 0.3s ease, transform 0.3s ease; }
.social-footer:hover { color: var(--secondary); transform: translateY(-2px); }
.footer .text-gold { font-weight: 600; letter-spacing: 0.6px; color: var(--primary); }

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


/* =========================================================
SECCIÓN DE CONTACTO EXTRAS
   ========================================================= */
.hero { width: 100%; max-width: 100%; margin: 0; padding: 0; }
.hero-image { width: 100%; height: 400px; object-fit: cover; object-position: center 30%; border-radius: 0; display: block; }
.contact-container { display: grid; grid-template-columns: 1fr; gap: 40px; max-width: 1200px; margin: 40px auto 80px auto; padding: 0 20px; align-items: center; }

@media (min-width: 768px) {
    .contact-container { grid-template-columns: 1fr 1fr; gap: 60px; }
}

.contact-info { display: flex; flex-direction: column; gap: 30px; padding-left: 20px; }
.info-item { display: flex; align-items: center; gap: 20px; }
.contact-icon { color: var(--primary); font-size: 26px; width: 35px; text-align: center; background: transparent; }
.info-item p { font-size: 1.1rem; color: var(--text-color); font-weight: 500; line-height: 1.5; margin: 0; }
.contact-map { width: 100%; height: 350px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }

/* VIRTUALES MODULES */
.icono-primario { color: var(--primary) !important; font-size: 1.2rem; }

/* =========================================
   Botón Flotante de WhatsApp
   ========================================= */
.whatsapp-btn {
  position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px;
  background-color: #25d366; color: white !important; border-radius: 50%;
  text-align: center; font-size: 35px; box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 1000; display: flex; justify-content: center; align-items: center;
  text-decoration: none; transition: all 0.3s ease-in-out; animation: pulse-wa 2s infinite;
}
.whatsapp-btn:hover { background-color: #128c7e; transform: scale(1.1); box-shadow: 2px 2px 15px rgba(37, 211, 102, 0.6); animation: none; }
.whatsapp-btn:active { transform: scale(0.95); }
@keyframes pulse-wa {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
@media (max-width: 768px) {
  .whatsapp-btn { bottom: 20px; right: 20px; width: 50px; height: 50px; font-size: 30px; }
}

/* ==========================================================================
   APARTADO: PASOS PARA COMPRA (TIENDA)
   ========================================================================== */
.bg-pasos { background-color: var(--bg); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.titulo-pasos { color: var(--primary); font-style: italic; font-weight: 600; text-align: center; margin-bottom: 2.5rem; font-size: 2.2rem; }
.paso-item { display: flex; align-items: center; margin-bottom: 1.8rem; gap: 1.2rem; }
.paso-numero { background-color: var(--primary); color: #ffffff; width: 45px; height: 45px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.4rem; flex-shrink: 0; }
.paso-texto { color: var(--text-color); flex-grow: 1; font-size: 1.1rem; line-height: 1.4; }
.paso-texto strong { color: var(--primary); font-weight: 600; }
.texto-esperamos { color: var(--primary); font-weight: 600; }
.paso-icono { color: var(--primary); font-size: 2.5rem; opacity: 0.3; flex-shrink: 0; margin-left: auto; }
.img-pasos { width: 100%; height: 100%; object-fit: cover; min-height: 450px; }
@media (max-width: 991px) {
    .titulo-pasos { font-size: 1.8rem; margin-bottom: 1.5rem; }
    .paso-texto { font-size: 1rem; }
    .paso-icono { font-size: 2rem; }
}
.card-cuadrada .card-text { text-align: center !important; }


/* =========================================================
   MEDIA QUERIES (RESPONSIVE)
   ========================================================= */
@media (max-width: 1000px){
  .calendar-grid, .calendar-legend { gap:10px; }
  .day { min-height: 340px; }
  .modal-grid { grid-template-columns:42% 58%; }
  .modal-right { padding:30px; }
}

@media (max-width: 900px){
  .calendar-grid { grid-template-columns:repeat(3,1fr); }
}

@media (max-width: 780px){
  .modal-grid { flex-direction:column; }
  .modal-left, .modal-right { width:100%; }
  .modal-left img { max-height:260px; min-height: 260px; }
  .day-num-overlay, .day-num-overlay-empty { width: 28px; height: 28px; font-size: .9rem; }
}

@media (max-width: 760px){
  .cursos-section { padding:38px 10px 55px; }
  .calendar-grid, .calendar-legend { margin-left:0; margin-right:0; gap:8px; }
  
  .day { min-height:280px; padding: 0 4px; }
  .curso-diario-wrapper, .empty-card { border-radius: 12px; }
  
  .day-title { font-size:.8rem; padding: 10px 5px; min-height: 42px; }
  
  .calendar-legend div { font-size:.7rem; }
  .modal-right { width:100%; padding:27px 24px 24px; }
  .modal-content h4 { padding:20px 24px 8px; }
  .modal-temario { padding:0 24px 25px; }
}

@media (max-width: 576px) {
  .logos-footer img { height: 44px; }
}

@media (max-width: 520px){
  .cursos-section .section-title { font-size:1.35rem; }
  .calendar-grid, .calendar-legend { gap:5px; }
  
  .day { min-height:240px; }
  .curso-diario-wrapper, .empty-card { border-radius: 10px; }
  
  .day-num-overlay, .day-num-overlay-empty { width: 24px; height: 24px; font-size: .75rem; top: 5px; left: 5px; border-radius: 6px; }
  .day-title { font-size:.7rem; padding: 8px 4px; }

  .modal-close { top:10px; right:10px; }
  .modal-left img { min-height:205px; height:205px; }
  #modalTitulo { font-size:1.35rem; }
  .precio-valor { font-size:1.15rem; }
}

@media(max-width:480px){
  .calendar-grid { grid-template-columns:repeat(2,1fr); }
  .modal-left img { max-height:180px; }
}

@media (min-width: 992px) {
    .col-lg-quinto { flex: 0 0 20%; max-width: 20%; }
}