/* ════════════════════════════════════════════
   CLASES.CSS
   Se carga DESPUÉS de base.css y subpaginas.css

   Color de acento: naranja del sitio (var(--orange)),
   igual al resto de las secciones de Mundo Coso.
   ════════════════════════════════════════════ */

:root {
  --clases-fondo: #fff4e8;
}

/* Fuerza ancho máximo siempre, sin importar el contenido */
.subpage-header,
.subpage-container {
  width: min(var(--max-w), 100%);
}


/* ══════════════════════════════════════════
   TÍTULO DE SECCIÓN — "Clases grupales" /
   "Clases particulares"
   ══════════════════════════════════════════ */

.cl-seccion-titulo {
  font-family: var(--font);
  font-weight: 900;
  font-size: clamp(1.1rem, 4vw, 1.5rem);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--white);
  margin: 0.6rem 0 0.2rem;
}

.cl-seccion-titulo:first-child { margin-top: 0; }


/* ══════════════════════════════════════════
   GRUPALES — ACORDEÓN POR DÍA
   ══════════════════════════════════════════ */

.cl-day {
  border: 2px solid var(--black);
  overflow: hidden;
  margin-bottom: 0.6rem;
}

.cl-day-head {
  background: var(--black);
  color: var(--white);
  padding: 0.8rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}

.cl-day.today .cl-day-head {
  background: var(--orange);
}

.day-label {
  font-family: var(--font);
  font-weight: 900;
  font-size: clamp(1.4rem, 5vw, 2rem);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: var(--white);
  line-height: 1;
}

.day-head-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.today-badge {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: var(--white);
  color: var(--orange);
  padding: 0.2rem 0.6rem;
}

.cl-day.today .today-badge {
  background: var(--black);
  color: var(--orange);
}

.chevron {
  color: var(--white);
  font-size: var(--text-base);
  transition: transform 0.25s;
  line-height: 1;
}

.cl-day.collapsed .chevron {
  transform: rotate(-90deg);
}

.cl-body {
  background: var(--clases-fondo);
  padding: 1rem 1.2rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.cl-day.collapsed .cl-body {
  display: none;
}

.cl-vacio {
  font-size: var(--text-sm);
  color: #777;
  font-style: italic;
}


/* ── ÍTEM DE CLASE GRUPAL ── */

.clase-item {
  background: var(--white);
  border-left: 3px solid var(--orange);
  padding: 0.5rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.clase-fila-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.clase-profesor {
  font-family: var(--font);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--black);
  line-height: 1.1;
}

.clase-nivel {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--orange);
  white-space: nowrap;
  flex-shrink: 0;
}

.clase-dato {
  font-size: 0.78rem;
  color: #555;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.clase-dato i {
  color: var(--orange);
  font-size: 0.7rem;
  flex-shrink: 0;
}


/* ══════════════════════════════════════════
   INDIVIDUALES — SECCIÓN ACORDEÓN
   (mismo patrón que aloj-seccion/aloj-item
   en alojamientos.css)
   ══════════════════════════════════════════ */

.prof-seccion {
  border: 2px solid var(--black);
  overflow: hidden;
}

.prof-head {
  background: var(--black);
  color: var(--white);
  padding: 0.8rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}

.prof-titulo {
  font-family: var(--font);
  font-weight: 900;
  font-size: clamp(1.4rem, 5vw, 2rem);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: var(--white);
  line-height: 1;
}

.prof-head-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.prof-count {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  background: var(--orange);
  color: var(--white);
  padding: 0.2rem 0.55rem;
  min-width: 24px;
  text-align: center;
}

.prof-seccion.collapsed .chevron {
  transform: rotate(-90deg);
}

.prof-body {
  background: var(--clases-fondo);
  padding: 0.8rem 1.2rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.prof-seccion.collapsed .prof-body {
  display: none;
}

.prof-item {
  background: var(--white);
  border-left: 3px solid var(--orange);
  padding: 0.55rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.prof-nombre {
  font-family: var(--font);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--black);
  line-height: 1.1;
}

.prof-contacto {
  font-size: 0.78rem;
  color: var(--orange);
  font-weight: 500;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: opacity 0.2s;
  word-break: break-all;
}

.prof-contacto:hover { opacity: 0.7; }

.prof-contacto i {
  color: var(--orange);
  font-size: 0.7rem;
  flex-shrink: 0;
}


/* ══════════════════════════════════════════
   MENSAJES DE ESTADO
   ══════════════════════════════════════════ */

.cl-msg {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--black);
  opacity: 0.6;
  padding: 1rem 0;
  text-align: center;
}

.cl-error { color: #c0392b; opacity: 1; }


/* ══════════════════════════════════════════
   ANUNCIOS DESTACADOS
   (mismo patrón que milongas/alojamientos)
   ══════════════════════════════════════════ */

.anuncios-titulo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.2rem;
}

.anuncios-titulo-texto {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--orange);
  white-space: nowrap;
}

.anuncios-titulo-linea {
  flex: 1;
  height: 2px;
  background: var(--orange);
  opacity: 0.4;
}

.anuncios-grilla {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin-bottom: 0.2rem;
}

@media (max-width: 700px) { .anuncios-grilla { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .anuncios-grilla { grid-template-columns: 1fr; } }

.anuncio-card {
  border: 3px solid var(--black);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.anuncio-fondo-negro  { background: var(--black); }
.anuncio-fondo-gris   { background: var(--grey); }
.anuncio-fondo-blanco { background: var(--white); }

.anuncio-fondo-negro .anuncio-nombre        { color: var(--bg); }
.anuncio-fondo-negro .anuncio-nombre-grande { color: var(--bg); }
.anuncio-fondo-negro .anuncio-dato          { color: rgba(255,255,255,0.75); }
.anuncio-fondo-negro .anuncio-dato i        { color: var(--orange); }
.anuncio-fondo-negro .anuncio-lugar-dest    { color: rgba(255,255,255,0.9); font-weight: 700; }
.anuncio-fondo-negro .anuncio-obs           { color: rgba(255,255,255,0.45); }
.anuncio-fondo-negro .anuncio-header-negro  { background: #1a1a1a; }

.anuncio-fondo-gris .anuncio-nombre         { color: var(--black); }
.anuncio-fondo-gris .anuncio-nombre-grande  { color: var(--black); }
.anuncio-fondo-gris .anuncio-dato           { color: #444; }
.anuncio-fondo-gris .anuncio-dato i         { color: var(--orange); }
.anuncio-fondo-gris .anuncio-lugar-dest     { color: var(--orange); font-weight: 700; }
.anuncio-fondo-gris .anuncio-obs            { color: #888; }
.anuncio-fondo-gris .anuncio-header-negro   { background: #d0d0d0; }

.anuncio-fondo-blanco .anuncio-nombre        { color: var(--black); }
.anuncio-fondo-blanco .anuncio-nombre-grande { color: var(--black); }
.anuncio-fondo-blanco .anuncio-dato          { color: #444; }
.anuncio-fondo-blanco .anuncio-dato i        { color: var(--orange); }
.anuncio-fondo-blanco .anuncio-lugar-dest    { color: var(--orange); font-weight: 700; }
.anuncio-fondo-blanco .anuncio-obs           { color: #999; }
.anuncio-fondo-blanco .anuncio-header-negro  { background: #e8e8e8; }

.anuncio-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.anuncio-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.anuncio-card:hover .anuncio-img { transform: scale(1.04); }

.anuncio-badge {
  position: absolute;
  background: var(--orange);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.2rem 0.5rem;
  z-index: 2;
}

.anuncio-badge-top { top: 0.5rem; left: 0.5rem; }

.anuncio-header-negro {
  padding: 1.2rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 100px;
  justify-content: flex-end;
  position: relative;
}

.anuncio-nombre-grande {
  font-family: var(--font);
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1;
}

.anuncio-datos {
  padding: 0.6rem 0.9rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
}

.anuncio-nombre-fila {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.05rem;
}

.anuncio-nombre {
  font-family: var(--font);
  font-size: 0.92rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.anuncio-lugar-dest {
  font-size: 0.82rem !important;
  font-weight: 700 !important;
}

.anuncio-dato {
  font-size: 0.73rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.anuncio-dato i { font-size: 0.65rem; flex-shrink: 0; }

.anuncio-obs {
  font-size: 0.7rem;
  font-style: italic;
  line-height: 1.4;
  margin-top: 0.05rem;
}

.anuncio-botones {
  display: flex;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 0.5rem;
  flex-wrap: wrap;
}

.anuncio-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.65rem;
  font-family: var(--font);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: opacity 0.2s;
  flex: 1;
  justify-content: center;
}

.anuncio-btn:hover  { opacity: 0.85; }
.anuncio-btn-wa     { background: #25d366 !important; color: #fff !important; }
.anuncio-btn-link   { background: var(--orange) !important; color: #fff !important; }

.anuncios-separador {
  height: 2px;
  background: var(--black);
  opacity: 0.15;
  margin: 0.4rem 0;
}
