/* 
 * ESTILOS GLOBALES
 * Sistema de Aulas Virtuales - Tuinen Star
 */

:root {
  --primary-color: #E53E3E;
  --secondary-color: #C53030;
  --background-color: #ffffff;
  --text-primary: #1A202C;
  --text-secondary: #718096;
  --accent-color: #FFF5F5;
}

body {
  font-family: 'Spline Sans', sans-serif;
  background-color: var(--background-color);
  color: var(--text-primary);
}

/* Mobile Menu Transitions */
.mobile-menu-closed {
  opacity: 0;
  visibility: hidden;
  transform: scaleY(0);
  pointer-events: none;
}

.mobile-menu-open {
  opacity: 1;
  visibility: visible;
  transform: scaleY(1);
  pointer-events: auto;
}

/* Skeleton Screens */
@keyframes shimmer {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}

.skeleton {
  background: #f6f7f8;
  background-image: linear-gradient(to right, #f6f7f8 0%, #edeef1 20%, #f6f7f8 40%, #f6f7f8 100%);
  background-repeat: no-repeat;
  background-size: 1000px 100%;
  animation: shimmer 2s infinite linear;
  border-radius: 8px;
}

.skeleton-text {
  height: 20px;
  margin-bottom: 10px;
}

.skeleton-title {
  height: 28px;
  width: 70%;
  margin-bottom: 15px;
}

.skeleton-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
}

/* Facade YouTube Lazy Loading */
.youtube-facade {
  position: relative;
  width: 100%;
  height: 100%;
  cursor: pointer;
  background-color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.youtube-facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.youtube-facade:hover img {
  opacity: 1;
}

.youtube-facade::after {
  content: '▶';
  position: absolute;
  color: white;
  font-size: 40px;
  background: rgba(229, 62, 62, 0.9); /* Primary color */
  width: 60px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  transition: background 0.3s;
}

.youtube-facade:hover::after {
  background: rgba(255, 0, 0, 1);
}
/* Sombras y Contenedores */
.main-container {
  max-width: 80rem; /* 1280px, equivale a max-w-7xl de Tailwind */
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem; /* 24px */
  padding-right: 1.5rem;
  width: 100%;
}
@media (min-width: 768px) {
  .main-container {
    padding-left: 2rem; /* 32px */
    padding-right: 2rem;
  }
}
@media (min-width: 1024px) {
  .main-container {
    padding-left: 2.5rem; /* 40px */
    padding-right: 2.5rem;
  }
}

.shadow-custom {
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.12);
}

.seccion {
  background: white;
  padding: 20px;
  margin: 20px auto;
  border-radius: 12px;
  box-shadow: 0px 2px 6px rgba(0,0,0,0.15);
  max-width: 950px;
  overflow-x: auto;
}

/* Scrollbars */
.seccion::-webkit-scrollbar {
  height: 8px;
}
.seccion::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

/* Tablas de Horarios */
.seccion table {
  min-width: 700px;
  border-collapse: collapse;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

th, td {
  border: 1px solid #ddd;
  padding: 12px;
  text-align: center;
}

th {
  background-color: var(--primary-color);
  color: white;
}

td {
  padding: 6px;
  vertical-align: middle;
}

td a {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
  height: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  word-wrap: break-word;
  white-space: normal;
  line-height: 1.2;
  transition: all 0.25s ease-in-out;
}

/* Botones Flotantes */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 20px;
  right: 20px;
  background-color: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 30px;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
  z-index: 100;
  transition: transform 0.2s;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

.asistencia-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 90px;
  right: 20px;
  background: linear-gradient(135deg, #e53e3e, #f56565);
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 26px;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.3);
  z-index: 100;
  transition: transform 0.2s;
}

.asistencia-float:hover {
  transform: scale(1.1);
  background: linear-gradient(135deg, #c53030, #e53e3e);
}

/* Tooltips */
.tooltip {
  visibility: hidden;
  width: 140px;
  background-color: #333;
  color: #fff;
  text-align: center;
  font-size: 13px;
  padding: 5px 8px;
  border-radius: 6px;
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 0.3s;
  white-space: nowrap;
}

.asistencia-float:hover .tooltip,
.whatsapp-float:hover .tooltip {
  visibility: visible;
  opacity: 1;
}

/* Responsividad */
@media (max-width: 900px) {
  th, td {
    padding: 8px;
    font-size: 13px;
  }
}

@media (max-width: 600px) {
  table {
    display: block;
    overflow-x: auto;
    font-size: 12px;
  }
  td a {
    font-size: 12px;
    padding: 6px 10px;
  }
}