/*
 Theme Name:   Avada Child
 Theme URI:    https://britishschool.com.ar/
 Description:  Tema hijo limpio de Avada
 Author:       British School
 Template:     Avada
 Version:      1.0.0
*/

/* ===== CONTENEDOR DEL CALENDARIO ===== */
.calendario-container {
  max-width: 100%;
  margin: 20px auto;
  padding: 10px;
  box-sizing: border-box;
}

/* ===== NAVEGACIÓN DEL CALENDARIO ===== */
.calendario-nav {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
}

.calendario-flecha {
  text-decoration: none;
  color: #0e4775;
  font-weight: bold;
}

/* ===== TABLA DEL CALENDARIO ===== */
.calendario-mes {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.calendario-mes th,
.calendario-mes td {
  border: 1px solid #0e4775;
  width: 14.28%;
  height: 90px;
  vertical-align: top;
  padding: 5px;
  box-sizing: border-box;
}

.calendario-mes th {
  background-color: #0e4775;
  color: #fff;
  font-weight: normal;
  text-align: center;
  padding: 10px 0;
}

.calendario-mes td strong {
  display: block;
  margin-bottom: 5px;
}

/* ===== CURSOS DENTRO DEL CALENDARIO ===== */
.curso-dia {
  background: #e3f2fd;
  color: #0d47a1;
  padding: 4px 6px;
  border-radius: 4px;
  margin-bottom: 3px;
  font-size: 12px;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.calendario-mes td .curso-dia.curso-actual {
  background-color: #4CAF50;
  color: #fff;
  border-radius: 8px;
  padding: 6px;
  margin-bottom: 5px;
  font-size: 0.85em;
  font-weight: bold;
  cursor: pointer;
}

.calendario-mes td .curso-dia:hover {
  background-color: #ffe46b;
  color: #000;
}

/* ===== TÍTULO DEL MES ===== */
.calendario-mes-titulo {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 15px;
}

.calendario-mes-titulo strong {
  font-weight: bold;
}

/* ===== OPTIMIZACIÓN GLOBAL PARA MÓVIL ===== */
.container {
    max-width: 100% !important;
}

@media (max-width: 767px) {
  html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
  }

  .container, .site-content, .content-area, .entry-content,
  .fusion-row, .fusion-builder-row, .wp-block-group {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  img, video, iframe {
    max-width: 100%;
    height: auto;
  }

  .calendario-mes {
    font-size: 0.8em;
  }

  .calendario-mes th, .calendario-mes td {
    height: 70px;
    padding: 3px;
  }

  .curso-dia {
    font-size: 0.7em;
    padding: 4px;
    margin-top: 4px;
  }

  .calendario-flecha {
    font-size: 0.9em;
  }

  .calendario-nav {
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }

  .calendario-mes-titulo {
    font-size: 1.2em;
  }
}

/* ===== BLOQUE DE CURSO COMPACTO ===== */
.curso-contenido {
    padding: 0 !important; /* elimina padding del contenedor Fusion Builder solo en este bloque */
}

.curso-contenido .fusion-builder-row,
.curso-contenido .fusion-column-wrapper {
    margin: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}

.curso-panel-compacto {
    display: flex !important;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 15px;
    margin-top: 20px;
}

.curso-panel-compacto .curso-datos {
    flex: 1 1 auto;
    min-width: 220px;
}

.curso-panel-compacto .curso-datos ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.curso-panel-compacto .curso-datos li {
    margin-bottom: 6px;
}

.curso-panel-compacto .curso-imagen {
    flex: 0 0 320px;
}

.curso-panel-compacto .curso-imagen img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    display: block;
}

/* ===== MÓVIL BLOQUE CURSO ===== */
@media (max-width: 767px) {
    .curso-panel-compacto {
        flex-direction: column;
        gap: 10px;
    }

    .curso-panel-compacto .curso-datos,
    .curso-panel-compacto .curso-imagen {
        flex: 0 0 100%;
        min-width: 100%;
    }
}
.curso-detalle {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}
.curso-detalle.mostrar {
    opacity: 1;
    transform: translateY(0);
}

/* Ajustes para móviles */
@media (max-width: 767px) {
  .calendario .curso-dia {
    padding: 0px;
    gap: 0px;
  }

  .calendario .curso-dia .evento {
    font-size: 10px;
  }
}

/* Contenedor general */
.calendario-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    font-family: Arial, sans-serif;
}

/* Navegación */
.calendario-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.calendario-nav h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #0e4775;
}

.calendario-flecha {
    background: #0e4775;
    color: #fff;
    border: none;
    padding: 5px 12px;
    font-size: 1.2rem;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.2s;
}

.calendario-flecha:hover {
    background: #073052;
}

/* Tabla del calendario */
.calendario-mes {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    table-layout: fixed;
}

.calendario-mes th,
.calendario-mes td {
    border: 1px solid #ddd;
    text-align: center;
    padding: 8px;
    vertical-align: top;
}

.calendario-mes td.tiene-curso {
    background: #f0f8ff;
    cursor: pointer;
}

/* Cursos dentro del día */
.curso-dia {
    margin-top: 4px;
    font-weight: bold;
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    word-wrap: break-word;
}

/* Detalle del curso */
.curso-detalle {
    margin-top: 15px;
    padding: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.curso-detalle-card h3 {
    margin-top: 0;
    color: #0e4775;
}

.curso-detalle-card ul {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

.curso-detalle-card li {
    margin-bottom: 6px;
}

.estado-curso {
    display: inline-block;
    margin-top: 10px;
    padding: 4px 8px;
    border-radius: 4px;
    color: #fff;
    font-weight: bold;
}

.estado-curso.completo { background: #e74c3c; }
.estado-curso.ultimos { background: #f39c12; }
.estado-curso.disponibles { background: #2ecc71; }

.btn-inscribirme {
    display: inline-block;
    margin-top: 15px;
    background: #0e4775;
    color: #fff;
    padding: 8px 15px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
}

.btn-inscribirme:hover { background: #073052; }

/* Responsive: móviles */
@media (max-width: 767px) {
    .calendario-mes th,
    .calendario-mes td {
        padding: 6px;
        font-size: 0.7rem;
    }

    .curso-dia {
        font-size: 0.7rem;
    }
}



