/* ========================================
   TECHJUNIORS ACADEMY - STYLES
   Diseño alegre y educativo para niños 3-8 años
   ======================================== */

/* === VARIABLES Y RESET === */
:root {
  --color-primary: #4A90E2;
  --color-secondary: #E74C3C;
  --color-accent: #F39C12;
  --color-success: #27AE60;
  --color-bg: #F8F9FA;
  --color-text: #2C3E50;
  --color-light: #ECF0F1;
  --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 8px rgba(0,0,0,0.15);
  --shadow-lg: 0 8px 16px rgba(0,0,0,0.2);
}

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

body {
  font-family: var(--font-main);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
}

/* === NAVEGACIÓN === */
header {
  background: linear-gradient(135deg, var(--color-primary) 0%, #357ABD 100%);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 60px;
  width: auto;
  transition: transform 0.3s ease;
}

.logo img:hover {
  transform: scale(1.05);
}

.nav-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-menu a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

.nav-menu a:hover {
  color: var(--color-accent);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: white;
  border-radius: 2px;
}

/* === HERO SECTION === */
.hero {
  background: linear-gradient(135deg, #4A90E2 0%, #357ABD 50%, #E74C3C 100%);
  color: white;
  padding: 4rem 2rem;
  text-align: center;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  opacity: 0.95;
}

.hero-description {
  font-size: 1.2rem;
  opacity: 0.9;
}

/* === SECCIONES PRINCIPALES === */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

section {
  margin-bottom: 4rem;
  background: white;
  padding: 3rem;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

h2 {
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: 2rem;
  text-align: center;
}

h3 {
  font-size: 1.8rem;
  color: var(--color-secondary);
  margin-bottom: 1rem;
}

h4 {
  font-size: 1.4rem;
  color: var(--color-primary);
  margin-bottom: 0.8rem;
}

p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  line-height: 1.8;
}

/* === INTRO SECTION === */
.intro-content {
  max-width: 900px;
  margin: 0 auto;
}

.destacado {
  background: linear-gradient(135deg, #FFF5E6 0%, #FFE6CC 100%);
  padding: 2rem;
  border-radius: 12px;
  border-left: 5px solid var(--color-accent);
  margin: 2rem 0;
}

.destacado ul {
  margin-top: 1rem;
  margin-left: 2rem;
}

.destacado li {
  margin-bottom: 0.8rem;
  font-size: 1.1rem;
}

/* === METODOLOGÍA GRID === */
.metodologia-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.metodologia-card {
  background: linear-gradient(135deg, #F8F9FA 0%, #E9ECEF 100%);
  padding: 2rem;
  border-radius: 12px;
  border-top: 4px solid var(--color-primary);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.metodologia-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.metodologia-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-align: center;
}

/* === CALENDARIO SECTION === */
.calendario-section {
  background: linear-gradient(135deg, #E8F4F8 0%, #D5E8F0 100%);
}

.calendario-intro {
  text-align: center;
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--color-text);
}

.calendario-container {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow-md);
  max-width: 900px;
  margin: 0 auto 2rem;
}

.calendario-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--color-primary);
}

.calendario-header h3 {
  font-size: 1.8rem;
  color: var(--color-primary);
  margin: 0;
}

.btn-mes-anterior,
.btn-mes-siguiente {
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-mes-anterior:hover,
.btn-mes-siguiente:hover {
  background: var(--color-secondary);
  transform: scale(1.1);
}

.calendario-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
  min-height: 300px;
}

.loading-calendar {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem;
  color: #999;
  font-style: italic;
}

.calendario-leyenda {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1rem;
}

.leyenda-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.dot.disponible {
  background: var(--color-success);
}

.dot.hoy {
  background: var(--color-accent);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.2); }
}

/* === MODAL DE SESIÓN === */
.session-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.session-modal.active {
  display: flex;
}

.modal-content-session {
  background: white;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header-session {
  background: var(--color-primary);
  color: white;
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 12px 12px 0 0;
}

.modal-header-session h3 {
  color: white;
  margin: 0;
}

.btn-close-modal {
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  transition: transform 0.2s ease;
}

.btn-close-modal:hover {
  transform: scale(1.2);
}

.modal-body-session {
  padding: 2rem;
}

.modal-footer-session {
  background: var(--color-light);
  padding: 1.5rem;
  border-radius: 0 0 12px 12px;
  text-align: center;
}

.btn-contactar {
  display: inline-block;
  background: var(--color-success);
  color: white;
  padding: 1rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  margin-top: 1rem;
  transition: all 0.3s ease;
}

.btn-contactar:hover {
  background: #229954;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* === HERRAMIENTAS SECTION === */
.herramienta-destacada {
  background: linear-gradient(135deg, #FFF5E6 0%, #FFE6CC 100%);
  padding: 2rem;
  border-radius: 12px;
  border-left: 5px solid var(--color-accent);
  margin-bottom: 2rem;
}

.herramienta-content ul {
  margin: 1rem 0 1rem 2rem;
}

.herramienta-content li {
  margin-bottom: 0.8rem;
  font-size: 1.05rem;
}

.herramienta-nota {
  background: white;
  padding: 1rem;
  border-radius: 8px;
  margin-top: 1rem;
  font-style: italic;
  border-left: 3px solid var(--color-primary);
}

.herramientas-lista {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.herramienta-item {
  background: var(--color-light);
  padding: 1.5rem;
  border-radius: 8px;
  border-top: 3px solid var(--color-primary);
}

/* === FILOSOFÍA SECTION === */
.filosofia-puntos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.filosofia-punto {
  background: linear-gradient(135deg, #E8F4F8 0%, #D5E8F0 100%);
  padding: 2rem;
  border-radius: 12px;
  border-left: 5px solid var(--color-success);
}

/* === CONTACTO SECTION === */
.contacto-section {
  background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
  color: white;
}

.contacto-section h2,
.contacto-section h3 {
  color: white;
}

.contacto-intro {
  text-align: center;
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.contacto-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.contacto-card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 12px;
  border: 2px solid rgba(255,255,255,0.2);
}

.contacto-card a {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 600;
}

.contacto-card a:hover {
  text-decoration: underline;
}

.volver-inicio {
  text-align: center;
  margin-top: 2rem;
}

.btn-volver {
  display: inline-block;
  background: white;
  color: var(--color-primary);
  padding: 1rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-volver:hover {
  background: var(--color-accent);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* === FOOTER === */
footer {
  background: #2C3E50;
  color: white;
  text-align: center;
  padding: 2rem;
}

.footer-content p {
  margin-bottom: 0.5rem;
}

.copyright {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-primary);
    flex-direction: column;
    padding: 1rem;
    box-shadow: var(--shadow-md);
  }

  .nav-menu.active {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  section {
    padding: 2rem 1.5rem;
  }

  .metodologia-grid,
  .filosofia-puntos,
  .herramientas-lista,
  .contacto-info {
    grid-template-columns: 1fr;
  }

  .calendario-grid {
    grid-template-columns: repeat(7, 1fr);
    gap: 0.25rem;
  }

  .modal-content-session {
    width: 95%;
  }
}

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

  .hero-content h1 {
    font-size: 1.5rem;
  }

  main {
    padding: 1.5rem 1rem;
  }

  section {
    padding: 1.5rem 1rem;
  }
}
