/* ==================== ESTILOS CALENDARIO ACADÉMICO ==================== */
/* Diseño Premium con enfoque en calendario educativo - Mejores prácticas UI/UX */

/* Hero Section - Premium y Atractivo */
.hero-calendario {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 6rem 0 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-calendario::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: float 20s ease-in-out infinite;
}

.hero-calendario::after {
  content: "";
  position: absolute;
  bottom: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
  animation: float 25s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  50% {
    transform: translate(30px, 30px) rotate(180deg);
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hero-calendario h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  line-height: 1.2;
}

.hero-calendario p {
  font-size: 1.5rem;
  font-weight: 300;
  opacity: 0.95;
  margin-bottom: 2rem;
  line-height: 1.7;
  animation: fadeInUp 0.8s ease 0.2s both;
}

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

/* Sección de Contenido */
.seccion-contenido {
  padding: 5rem 0;
  background: #f8f9fa;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Intro Section */
.intro-section {
  background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
  padding: 2.5rem;
  border-radius: 1.5rem;
  margin-bottom: 4rem;
  border-left: 6px solid var(--primary);
  box-shadow: 0 4px 20px rgba(46, 125, 50, 0.1);
  text-align: center;
}

.intro-section p {
  font-size: 1.25rem;
  color: var(--gray-700);
  line-height: 1.9;
  margin: 0;
}

/* Botones de Descarga */
.descarga-calendario {
  display: flex;
  gap: 1rem;
  margin-bottom: 4rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-descargar,
.btn-descargar-ics {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.125rem 2.5rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border-radius: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-descargar-ics {
  background: linear-gradient(135deg, #ffffff, #f8f9ff);
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-descargar::before,
.btn-descargar-ics::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-descargar:hover::before {
  width: 300px;
  height: 300px;
}

.btn-descargar-ics::before {
  background: rgba(46, 125, 50, 0.1);
}

.btn-descargar-ics:hover::before {
  width: 300px;
  height: 300px;
}

.btn-descargar:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(46, 125, 50, 0.4);
}

.btn-descargar-ics:hover {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(46, 125, 50, 0.3);
}

.btn-descargar::after {
  content: "↓";
  font-size: 1.25rem;
  transition: transform 0.3s ease;
}

.btn-descargar:hover::after {
  transform: translateY(4px);
}

.btn-descargar-ics::after {
  content: "→";
  font-size: 1.25rem;
  transition: transform 0.3s ease;
}

.btn-descargar-ics:hover::after {
  transform: translateX(4px);
}

/* Sección de Períodos */
.periodos-section {
  margin-bottom: 5rem;
}

.periodos-section h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--gray-900);
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  padding-bottom: 1rem;
}

.periodos-section h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  border-radius: 3px;
}

.periodos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.periodo-item {
  background: white;
  padding: 2.5rem;
  border-radius: 1.5rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  border-left: 5px solid var(--primary);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.periodo-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--primary), var(--primary-dark));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s ease;
}

.periodo-item:hover::before {
  transform: scaleY(1);
}

.periodo-item:hover {
  transform: translateX(8px);
  box-shadow: 0 15px 50px rgba(46, 125, 50, 0.15);
}

.periodo-item h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.periodo-dates {
  margin-bottom: 1.5rem;
}

.periodo-dates p {
  font-size: 1rem;
  color: var(--gray-700);
  line-height: 1.8;
  margin-bottom: 0.75rem;
}

.periodo-dates p:last-child {
  margin-bottom: 0;
}

.periodo-dates strong {
  color: var(--gray-900);
  font-weight: 700;
}

.periodo-info {
  padding-top: 1.5rem;
  border-top: 2px solid #f3f4f6;
}

.periodo-info p {
  font-size: 0.938rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.periodo-info p:last-child {
  margin-bottom: 0;
}

/* Sección de Actividades */
.actividades-section {
  background: white;
  padding: 4rem 3rem;
  border-radius: 2rem;
  margin-bottom: 4rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  border-top: 5px solid var(--primary);
}

.actividades-section h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--gray-900);
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  padding-bottom: 1rem;
}

.actividades-section h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  border-radius: 3px;
}

.actividades-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.actividad {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
  padding: 2rem;
  border-radius: 1.5rem;
  border-left: 5px solid var(--primary);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.actividad:hover {
  transform: translateX(8px);
  box-shadow: 0 8px 25px rgba(46, 125, 50, 0.15);
}

.actividad h4 {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.actividad p {
  font-size: 1rem;
  color: var(--gray-700);
  line-height: 1.8;
  margin-bottom: 0.5rem;
}

.actividad p:last-child {
  margin-bottom: 0;
}

/* Sección de Exámenes */
.examenes-section {
  background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
  padding: 4rem 3rem;
  border-radius: 2rem;
  margin-bottom: 4rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.examenes-section h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--gray-900);
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  padding-bottom: 1rem;
}

.examenes-section h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  border-radius: 3px;
}

.tabla-examenes {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.tabla-examenes thead {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
}

.tabla-examenes th {
  padding: 1.5rem 1.25rem;
  text-align: left;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tabla-examenes tbody tr {
  border-bottom: 1px solid #f3f4f6;
  transition: all 0.3s ease;
}

.tabla-examenes tbody tr:hover {
  background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
}

.tabla-examenes tbody tr:last-child {
  border-bottom: none;
}

.tabla-examenes td {
  padding: 1.25rem;
  font-size: 1rem;
  color: var(--gray-700);
}

.tabla-examenes td:first-child {
  font-weight: 700;
  color: var(--primary);
}

/* Sección de Observaciones */
.observaciones-section {
  background: white;
  padding: 4rem 3rem;
  border-radius: 2rem;
  margin-bottom: 4rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  border-top: 5px solid var(--primary);
}

.observaciones-section h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--gray-900);
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 1rem;
}

.observaciones-section h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  border-radius: 3px;
}

.observaciones-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 900px;
  margin: 0 auto;
}

.observaciones-list li {
  padding: 1.25rem 0 1.25rem 2.5rem;
  position: relative;
  font-size: 1rem;
  color: var(--gray-700);
  line-height: 1.8;
  border-bottom: 1px solid #f3f4f6;
}

.observaciones-list li:last-child {
  border-bottom: none;
}

.observaciones-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(46, 125, 50, 0.3);
}

/* Sección de Contacto */
.contacto-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 4rem 3rem;
  border-radius: 2rem;
  color: white;
  text-align: center;
  box-shadow: 0 15px 50px rgba(46, 125, 50, 0.3);
  position: relative;
  overflow: hidden;
}

.contacto-section::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: float 20s ease-in-out infinite;
}

.contacto-section h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.contacto-section p {
  font-size: 1.25rem;
  opacity: 0.95;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.contacto-info {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.contacto-info p {
  font-size: 1.125rem;
  opacity: 0.95;
  margin-bottom: 0.75rem;
  text-align: left;
}

.contacto-info p:last-child {
  margin-bottom: 0;
}

.contacto-info strong {
  font-weight: 700;
  opacity: 1;
}

/* Responsive Design */
@media (max-width: 1600px) {
  .container {
    max-width: 1200px;
  }
}

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

  .actividades-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 992px) {
  .hero-calendario {
    padding: 5rem 0 4rem;
  }

  .hero-calendario h1 {
    font-size: 2.75rem;
  }

  .hero-calendario p {
    font-size: 1.25rem;
  }

  .seccion-contenido {
    padding: 4rem 0;
  }

  .periodos-section h2,
  .actividades-section h2,
  .examenes-section h2,
  .observaciones-section h2,
  .contacto-section h2 {
    font-size: 2rem;
  }

  .actividades-section,
  .examenes-section,
  .observaciones-section,
  .contacto-section {
    padding: 3rem 2rem;
  }
}

@media (max-width: 768px) {
  .hero-calendario {
    padding: 4rem 0 3rem;
  }

  .hero-calendario h1 {
    font-size: 2.25rem;
  }

  .hero-calendario p {
    font-size: 1.125rem;
  }

  .intro-section {
    padding: 2rem;
  }

  .intro-section p {
    font-size: 1.125rem;
  }

  .descarga-calendario {
    flex-direction: column;
  }

  .btn-descargar,
  .btn-descargar-ics {
    width: 100%;
  }

  .periodo-item {
    padding: 2rem;
  }

  .periodo-item h3 {
    font-size: 1.375rem;
  }

  .actividad {
    padding: 1.75rem;
  }

  .actividad h4 {
    font-size: 1.25rem;
  }

  .tabla-examenes {
    font-size: 0.875rem;
  }

  .tabla-examenes th,
  .tabla-examenes td {
    padding: 1rem 0.75rem;
  }

  .observaciones-section,
  .contacto-section {
    padding: 2.5rem 1.5rem;
  }

  .periodos-section h2,
  .actividades-section h2,
  .examenes-section h2,
  .observaciones-section h2,
  .contacto-section h2 {
    font-size: 1.75rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .hero-calendario h1 {
    font-size: 1.875rem;
  }

  .hero-calendario p {
    font-size: 1rem;
  }

  .intro-section {
    padding: 1.5rem;
  }

  .intro-section p {
    font-size: 1rem;
  }

  .periodo-item {
    padding: 1.5rem;
  }

  .periodo-item h3 {
    font-size: 1.25rem;
  }

  .periodo-dates p {
    font-size: 0.938rem;
  }

  .actividad {
    padding: 1.5rem;
  }

  .actividad h4 {
    font-size: 1.125rem;
  }

  .actividad p {
    font-size: 0.938rem;
  }

  .tabla-examenes {
    font-size: 0.813rem;
  }

  .tabla-examenes th,
  .tabla-examenes td {
    padding: 0.875rem 0.5rem;
  }

  .observaciones-list li {
    font-size: 0.938rem;
    padding-left: 2rem;
  }

  .observaciones-list li::before {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
  }

  .periodos-section h2,
  .actividades-section h2,
  .examenes-section h2,
  .observaciones-section h2,
  .contacto-section h2 {
    font-size: 1.5rem;
  }

  .contacto-section p {
    font-size: 1.125rem;
  }

  .contacto-info p {
    font-size: 1rem;
  }
}
