/* ==========================================================================
   GP MATEMÁTICAS Y FÍSICA - SISTEMA DE DISEÑO OFICIAL
   Paleta: #0A1128 (Principal), #0D1B3E (Superficies), #2563EB (Azul eléctrico), #FFFFFF, #000000
   Estilo: Moderno, contundente, limpio, académico y minimalista
   ========================================================================== */

:root {
  /* Paleta Corporativa Oficial */
  --bg-primary: #0A1128;
  --bg-secondary: #0D1B3E;
  --bg-deep: #050814;
  --bg-card: rgba(13, 27, 62, 0.72);
  --bg-card-hover: rgba(16, 34, 78, 0.85);
  
  --accent-blue: #2563EB;
  --accent-blue-hover: #1D4ED8;
  --accent-blue-glow: rgba(37, 99, 235, 0.35);
  
  --accent-cyan: #38BDF8;
  --accent-green: #10B981;
  --accent-amber: #F59E0B;

  --text-primary: #FFFFFF;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --text-dark: #000000;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(37, 99, 235, 0.45);
  --border-highlight: rgba(56, 189, 248, 0.4);

  /* Tipografías */
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Dimensiones y Efectos */
  --container-max: 1200px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 25px rgba(37, 99, 235, 0.3);
}

/* Reset y Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  color-scheme: dark;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  -webkit-font-smoothing: antialiased;
}

/* Canvas de fondo con partículas y retícula matemática sutil */
#math-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  opacity: 0.45;
}

/* Utilidades generales */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section {
  padding: 6rem 0;
  position: relative;
}

.section-dark {
  background: linear-gradient(180deg, rgba(10, 17, 40, 0.8) 0%, rgba(6, 11, 24, 0.95) 100%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.text-center {
  text-align: center;
}

/* Paneles con Glassmorphism Sobrio */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: all var(--transition-normal);
}

.glass-panel:hover {
  border-color: var(--border-focus);
}

/* Tipografía de Sección */
.section-header {
  max-width: 760px;
  margin: 0 auto 3.5rem auto;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-cyan);
  margin-bottom: 0.8rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.12rem;
  color: var(--text-secondary);
  font-weight: 400;
}

/* Gradientes de texto */
.gradient-text {
  background: linear-gradient(135deg, #FFFFFF 20%, var(--accent-cyan) 60%, var(--accent-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  white-space: nowrap;
}

.btn-sm {
  padding: 0.55rem 1.1rem;
  font-size: 0.88rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.05rem;
}

.btn-full {
  width: 100%;
}

.btn-primary {
  background-color: var(--accent-blue);
  color: #FFFFFF;
  box-shadow: 0 4px 15px var(--accent-blue-glow);
}

.btn-primary:hover {
  background-color: var(--accent-blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(37, 99, 235, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--accent-cyan);
  border: 1px solid rgba(56, 189, 248, 0.4);
}

.btn-outline:hover {
  background: rgba(56, 189, 248, 0.1);
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: #25D366;
  color: #051A0E;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background: #20BA59;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}

.btn-link {
  color: var(--accent-cyan);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color var(--transition-fast);
}

.btn-link:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

/* Badges y Pills */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1rem;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(37, 99, 235, 0.35);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: var(--accent-cyan);
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-cyan);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-cyan);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

/* ==========================================================================
   HEADER & NAVBAR
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(10, 17, 40, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.8rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
  color: var(--text-primary);
}

.logo-emblem {
  width: 44px;
  height: 44px;
}

.logo-svg {
  width: 100%;
  height: 100%;
}

.logo-circle-dash {
  transform-origin: center;
  animation: rotate-dash 25s linear infinite;
}

@keyframes rotate-dash {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}

.brand-sub {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 1.8px;
  color: var(--accent-cyan);
  margin-top: 3px;
}

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

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color var(--transition-fast);
  position: relative;
  padding: 0.3rem 0;
}

.nav-link:hover {
  color: #FFFFFF;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-blue);
  transition: width var(--transition-fast);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 24px;
  position: relative;
  flex-direction: column;
  justify-content: space-between;
}

.mobile-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: #FFFFFF;
  border-radius: 2px;
  transition: all var(--transition-fast);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  padding: 6.5rem 0 7.5rem 0;
  position: relative;
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 1.6rem;
}

.hero-description {
  font-size: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 2.8rem;
  max-width: 740px;
}

.hero-description strong {
  color: #FFFFFF;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem;
  margin-bottom: 0;
}

/* ==========================================================================
   QUIÉNES SOMOS (CARLOS & GUILLERMO)
   ========================================================================== */
.founders-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.founder-card {
  padding: 2.5rem;
  position: relative;
  display: flex;
  flex-direction: column;
}

.founder-avatar-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.founder-avatar-img-wrap {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  background: var(--bg-deep);
  border: 3px solid var(--accent-blue);
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.4);
  flex-shrink: 0;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.founder-avatar-img-wrap.physics-border {
  border-color: #2563EB;
  box-shadow: 0 0 22px rgba(37, 99, 235, 0.45);
}

.founder-avatar-img-wrap.math-border {
  border-color: #38BDF8;
  box-shadow: 0 0 22px rgba(56, 189, 248, 0.45);
}

.founder-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  transition: transform 0.4s ease;
}

.founder-card:hover .founder-avatar-img-wrap {
  transform: scale(1.05);
  box-shadow: 0 0 28px rgba(37, 99, 235, 0.6);
}

.founder-card:hover .founder-photo {
  transform: scale(1.08);
}

.founder-initials {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--bg-secondary), var(--accent-blue));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  color: #FFFFFF;
  border: 2px solid rgba(255, 255, 255, 0.15);
}

.founder-avatar-badge {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
}

.physics-badge {
  background: rgba(37, 99, 235, 0.2);
  color: #60A5FA;
  border: 1px solid rgba(37, 99, 235, 0.4);
}

.math-badge {
  background: rgba(56, 189, 248, 0.2);
  color: #38BDF8;
  border: 1px solid rgba(56, 189, 248, 0.4);
}

.founder-name {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.founder-role {
  font-size: 0.92rem;
  color: var(--accent-cyan);
  font-weight: 600;
  margin-bottom: 1.6rem;
}

.founder-credentials {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-bottom: 1.8rem;
}

.founder-credentials li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.founder-credentials li strong {
  color: #FFFFFF;
}

.founder-credentials li svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.founder-quote {
  font-size: 0.92rem;
  font-style: italic;
  color: #CBD5E1;
  border-left: 2px solid var(--accent-blue);
  padding-left: 1rem;
  margin-bottom: 1.8rem;
  margin-top: auto;
}

.founder-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.topic-chip {
  font-size: 0.78rem;
  padding: 0.25rem 0.7rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
}

.math-vs-phys-banner {
  padding: 1.8rem 2.2rem;
  display: flex;
  align-items: center;
  gap: 1.8rem;
  border: 1px solid rgba(37, 99, 235, 0.25);
  background: linear-gradient(90deg, rgba(13, 27, 62, 0.85) 0%, rgba(37, 99, 235, 0.1) 100%);
}

.banner-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  background: rgba(37, 99, 235, 0.15);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-text h4 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  margin-bottom: 0.3rem;
  color: #FFFFFF;
}

.banner-text p {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ==========================================================================
   MATERIAS Y ASIGNATURAS
   ========================================================================== */
.subject-filter-wrapper {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.6rem 1.4rem;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  background: rgba(13, 27, 62, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.3);
}

.filter-btn.active {
  background: var(--accent-blue);
  color: #FFFFFF;
  border-color: var(--accent-blue);
  box-shadow: 0 4px 14px var(--accent-blue-glow);
}

.subjects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.8rem;
}

.subject-card {
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal), border-color var(--transition-normal);
}

.subject-card:hover {
  transform: translateY(-5px);
}

.subject-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem;
}

.subject-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
}

.badge-math {
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent-cyan);
}

.badge-physics {
  background: rgba(37, 99, 235, 0.15);
  color: #60A5FA;
}

.badge-pau {
  background: rgba(245, 158, 11, 0.15);
  color: #FBBF24;
}

.subject-instructor {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.subject-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  line-height: 1.3;
}

.subject-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 1.4rem;
  line-height: 1.6;
}

.subject-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.subject-list li {
  font-size: 0.86rem;
  color: #CBD5E1;
  position: relative;
  padding-left: 1.2rem;
  line-height: 1.45;
}

.subject-list li::before {
  content: '▪';
  position: absolute;
  left: 0;
  color: var(--accent-cyan);
  font-size: 0.9rem;
}

.subject-card-footer {
  margin-top: auto;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border-subtle);
}

/* ==========================================================================
   METODOLOGÍA GP
   ========================================================================== */
.methodology-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.step-card {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
}

.step-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.step-badge {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.step-icon {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.9rem;
}

.step-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
}



/* ==========================================================================
   GRUPOS GP
   ========================================================================== */
.groups-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.feature-item {
  padding: 1.8rem;
}

.feature-icon {
  width: 46px;
  height: 46px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
}

.feature-item h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.feature-item p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.groups-cta-card {
  padding: 2.5rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  border: 1px solid rgba(37, 99, 235, 0.35);
  background: linear-gradient(135deg, rgba(13, 27, 62, 0.95), rgba(37, 99, 235, 0.15));
}

.plazas-badge {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  color: #FBBF24;
  margin-bottom: 0.6rem;
}

.groups-cta-info h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.groups-cta-info p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 620px;
}

/* ==========================================================================
   FORMULARIO DE CONTACTO & WHATSAPP
   ========================================================================== */
.contact-wrapper {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem;
  padding: 3.5rem;
  border: 1px solid rgba(37, 99, 235, 0.25);
}

.contact-info-col h3 {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.25;
}

.contact-info-col p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.contact-points {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  margin-bottom: 2.5rem;
}

.contact-point {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.point-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-point strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.contact-point p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.social-channels {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.social-title {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.8rem;
}

.social-buttons {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.social-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.interactive-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-group label {
  font-size: 0.86rem;
  font-weight: 600;
  color: #E2E8F0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.interactive-form input,
.interactive-form select,
.interactive-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(6, 11, 24, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: #FFFFFF;
  font-family: var(--font-main);
  font-size: 0.92rem;
  transition: all var(--transition-fast);
}

.interactive-form input:focus,
.interactive-form select:focus,
.interactive-form textarea:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.interactive-form select option {
  background: var(--bg-secondary);
  color: #FFFFFF;
}

.form-disclaimer {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.4;
  margin-top: -0.4rem;
}



/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background-color: var(--bg-deep);
  border-top: 1px solid var(--border-subtle);
  padding: 5rem 0 2rem 0;
}

.footer-container {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-logo {
  margin-bottom: 1rem;
}

.footer-motto {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 320px;
}

.footer-links-col h5 {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #FFFFFF;
  margin-bottom: 1.2rem;
}

.footer-links-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-links-col a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color var(--transition-fast);
}

.footer-links-col a:hover {
  color: var(--accent-cyan);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
}

.footer-bottom-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.footer-legal {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.footer-legal a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-legal a:hover {
  color: var(--text-secondary);
}

/* ==========================================================================
   LABORATORIO INTERACTIVO MATEMÁTICO VS FÍSICO
   ========================================================================== */
.math-vs-phys-interactive {
  padding: 3rem;
  margin-bottom: 4rem;
  border: 1px solid rgba(37, 99, 235, 0.3);
  background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.1), var(--bg-card) 60%);
}

.lab-header {
  margin-bottom: 2rem;
}

.lab-title {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.lab-subtitle {
  font-size: 0.98rem;
  color: var(--text-secondary);
  max-width: 840px;
}

.lab-selector {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.lab-btn {
  padding: 0.6rem 1.2rem;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  background: rgba(6, 11, 24, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lab-btn:hover {
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.25);
}

.lab-btn.active {
  background: var(--accent-blue);
  color: #FFFFFF;
  border-color: var(--accent-blue);
  box-shadow: 0 4px 14px var(--accent-blue-glow);
}

.lab-card {
  display: none;
}

.lab-card.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.lab-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.8rem;
}

.lab-col {
  padding: 2rem;
  background: rgba(6, 11, 24, 0.65);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
}

.lab-col.math-col {
  border-top: 3px solid var(--accent-cyan);
}

.lab-col.physics-col {
  border-top: 3px solid var(--accent-blue);
}

.col-author {
  margin-bottom: 1.2rem;
}

.author-badge {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  display: inline-block;
  margin-bottom: 0.6rem;
}

.col-author h4 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
}

.lab-formula-box {
  background: rgba(4, 9, 20, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  margin-bottom: 1.2rem;
  overflow-x: auto;
  overflow-y: hidden;
  text-align: center;
  min-height: 60px;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.5);
  -webkit-overflow-scrolling: touch;
}

.lab-col.physics-col .lab-formula-box {
  border-color: rgba(37, 99, 235, 0.35);
}

/* Tipografía matemática KaTeX */
.katex {
  font-size: 1.1em;
  text-rendering: optimizeLegibility;
}

.katex-display {
  margin: 0.25rem 0 !important;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.2rem 0;
  max-width: 100%;
}

.code-math .katex {
  color: #FCA5A5;
}

.formula-line .katex {
  color: #FFFFFF;
}

.lab-formula-box .katex {
  color: #F8FAFC;
}

.result-badge strong .katex {
  color: #34D399;
  font-weight: 600;
}

.result-badge.physics strong .katex {
  color: var(--accent-cyan);
}

.col-explanation .katex {
  color: #38BDF8;
  font-size: 1.05em;
  padding: 0 0.15rem;
}

.col-explanation .katex .mord.mathnormal {
  color: #7DD3FC;
}

.col-explanation {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.col-takeaway {
  margin-top: auto;
  padding: 0.7rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  color: #CBD5E1;
}

.col-takeaway strong {
  color: #FFFFFF;
}

/* ==========================================================================
   EL CHOQUE DE 1º DE CARRERA
   ========================================================================== */
.transition-section {
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border-subtle);
}

.myths-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}

.myth-card {
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
}

.myth-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: #F87171;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.myth-card h4 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.35;
  color: #FFFFFF;
}

.reality-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: #34D399;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.4rem;
}

.myth-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ==========================================================================
   PREGUNTAS FRECUENTES (FAQ)
   ========================================================================== */
.faq-accordion-wrapper {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.faq-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.3rem 1.8rem;
  background: none;
  border: none;
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: background var(--transition-fast);
}

.faq-trigger:hover {
  background: rgba(255, 255, 255, 0.03);
}

.faq-icon {
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--accent-cyan);
  transition: transform var(--transition-normal);
  line-height: 1;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), padding 0.35s ease;
  padding: 0 1.8rem;
}

.faq-item.active .faq-content {
  padding-bottom: 1.6rem;
}

.faq-content p {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   RESPONSIVE DESIGN (Prioridad móvil para tráfico de TikTok / Reels)
   ========================================================================== */
@media (max-width: 992px) {


  .founders-grid {
    grid-template-columns: 1fr;
  }

  .lab-cols {
    grid-template-columns: 1fr;
  }

  .myths-grid {
    grid-template-columns: 1fr;
  }

  .methodology-steps {
    grid-template-columns: 1fr;
  }



  .groups-features-grid {
    grid-template-columns: 1fr 1fr;
  }

  .groups-cta-card {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 2.5rem;
  }

  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  /* Header & Navegación Móvil */
  .header {
    height: 4.2rem;
  }

  .nav-container {
    height: 4.2rem;
    padding-left: 1.1rem;
    padding-right: 1.1rem;
  }

  .logo-emblem {
    width: 36px;
    height: 36px;
  }

  .brand-logo {
    gap: 0.6rem;
  }

  .brand-name {
    font-size: 1.15rem;
  }

  .brand-sub {
    font-size: 0.52rem;
    letter-spacing: 1px;
  }

  .nav-actions {
    gap: 0.6rem;
  }

  .mobile-toggle {
    display: flex;
    width: 28px;
    height: 22px;
  }

  .mobile-toggle span {
    height: 2px;
  }

  .mobile-toggle.active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
  }

  .mobile-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }

  .mobile-toggle.active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
  }

  .nav-menu {
    position: fixed;
    top: 4.2rem;
    left: 0;
    width: 100%;
    background: rgba(10, 17, 40, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 1.8rem 1.4rem;
    transform: translateY(-120%);
    transition: transform var(--transition-normal);
    z-index: 999;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6);
  }

  .nav-menu.active {
    transform: translateY(0);
  }

  .nav-menu .nav-list {
    flex-direction: column;
    gap: 1.1rem;
  }

  .nav-menu .nav-link {
    font-size: 1.05rem;
    padding: 0.4rem 0;
    display: block;
  }

  /* Estructura general y Contenedores */
  .container {
    padding-left: 1.1rem;
    padding-right: 1.1rem;
    width: 100%;
    max-width: 100%;
  }

  .section {
    padding: 3.5rem 0;
  }

  .section-header {
    margin-bottom: 2.2rem;
  }

  .section-title {
    font-size: 1.85rem;
  }

  .section-subtitle {
    font-size: 0.94rem;
    line-height: 1.55;
  }

  /* Hero Section Móvil */
  .hero-section {
    padding: 2.5rem 0 3.5rem 0;
  }

  .badge-pill {
    font-size: 0.74rem;
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-md);
    line-height: 1.45;
    text-align: center;
    max-width: 100%;
    margin-bottom: 1.2rem;
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-title {
    font-size: 2.2rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 1rem;
  }

  .hero-description {
    font-size: 0.96rem;
    line-height: 1.55;
    margin-bottom: 1.8rem;
    padding: 0 0.2rem;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }

  .hero-cta-group .btn {
    width: 100%;
    font-size: 0.95rem;
    padding: 0.85rem 1.2rem;
  }

  /* Fundadores Móvil */
  .founders-grid {
    gap: 1.4rem;
  }

  .founder-card {
    padding: 1.6rem 1.15rem;
  }

  .founder-avatar-img-wrap {
    width: 76px;
    height: 76px;
  }

  .founder-avatar-badge {
    font-size: 0.68rem;
    padding: 0.25rem 0.6rem;
    letter-spacing: 1px;
  }

  .founder-name {
    font-size: 1.4rem;
  }

  .founder-role {
    font-size: 0.86rem;
    margin-bottom: 1.2rem;
  }

  .founder-credentials {
    gap: 0.75rem;
    margin-bottom: 1.4rem;
  }

  .founder-credentials li {
    font-size: 0.86rem;
    line-height: 1.45;
  }

  .founder-quote {
    font-size: 0.86rem;
    margin-bottom: 1.4rem;
    padding-left: 0.8rem;
  }

  .founder-topics {
    gap: 0.4rem;
  }

  .topic-chip {
    font-size: 0.74rem;
    padding: 0.2rem 0.6rem;
  }

  /* Laboratorio Matemático vs Físico */
  .math-vs-phys-interactive {
    padding: 1.6rem 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 2.5rem;
  }

  .lab-title {
    font-size: 1.35rem;
  }

  .lab-subtitle {
    font-size: 0.88rem;
    line-height: 1.5;
  }

  .lab-selector {
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
  }

  .lab-btn {
    width: 100%;
    text-align: left;
    font-size: 0.84rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
  }

  .lab-cols {
    gap: 1.2rem;
  }

  .lab-col {
    padding: 1.4rem 1rem;
  }

  .col-author h4 {
    font-size: 1.05rem;
  }

  .lab-formula-box {
    padding: 0.75rem 0.6rem;
    min-height: 52px;
    margin-bottom: 1rem;
  }

  .col-explanation {
    font-size: 0.88rem;
    line-height: 1.55;
    margin-bottom: 1.2rem;
  }

  .col-takeaway {
    font-size: 0.82rem;
    padding: 0.6rem 0.85rem;
  }

  /* El Choque de 1º de Carrera */
  .transition-section {
    margin-top: 2rem;
    padding-top: 2rem;
  }

  .myths-grid {
    gap: 1.2rem;
  }

  .myth-card {
    padding: 1.5rem 1.15rem;
  }

  .myth-card h4 {
    font-size: 1.05rem;
    margin-bottom: 0.8rem;
  }

  .myth-card p {
    font-size: 0.88rem;
  }

  /* Materias y Filtros */
  .subject-filter-wrapper {
    gap: 0.5rem;
    margin-bottom: 1.8rem;
  }

  .filter-btn {
    padding: 0.48rem 0.95rem;
    font-size: 0.82rem;
  }

  .subjects-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .subject-card {
    padding: 1.6rem 1.15rem;
    min-width: 0;
  }

  .subject-title {
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
  }

  .subject-desc {
    font-size: 0.88rem;
    margin-bottom: 1.1rem;
  }

  .subject-list {
    gap: 0.5rem;
    margin-bottom: 1.5rem;
  }

  .subject-list li {
    font-size: 0.84rem;
    line-height: 1.4;
  }

  /* Metodología */
  .methodology-steps {
    gap: 1.2rem;
  }

  .step-card {
    padding: 1.6rem 1.15rem;
  }

  .step-title {
    font-size: 1.25rem;
    margin-bottom: 0.6rem;
  }

  .step-text {
    font-size: 0.9rem;
    line-height: 1.55;
  }

  /* Grupos GP */
  .groups-features-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
  }

  .feature-item {
    padding: 1.4rem 1.1rem;
  }

  .feature-item h4 {
    font-size: 1.02rem;
  }

  .feature-item p {
    font-size: 0.86rem;
  }

  .groups-cta-card {
    padding: 1.8rem 1.2rem;
    gap: 1.4rem;
  }

  .groups-cta-info h3 {
    font-size: 1.3rem;
  }

  .groups-cta-info p {
    font-size: 0.88rem;
  }

  .groups-cta-btn-wrap {
    width: 100%;
  }

  .groups-cta-btn-wrap .btn {
    width: 100%;
    font-size: 0.92rem;
    padding: 0.85rem 1.2rem;
  }

  /* FAQ */
  .faq-trigger {
    padding: 1.1rem 1.2rem;
    font-size: 0.96rem;
    gap: 0.8rem;
  }

  .faq-content {
    padding: 0 1.2rem;
  }

  .faq-item.active .faq-content {
    padding-bottom: 1.3rem;
  }

  .faq-content p {
    font-size: 0.88rem;
    line-height: 1.55;
  }

  /* Contacto y Formulario */
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1.8rem 1.15rem;
  }

  .contact-info-col h3 {
    font-size: 1.35rem;
  }

  .contact-info-col p {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }

  .contact-points {
    gap: 1.1rem;
    margin-bottom: 1.8rem;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }

  /* Evitar zoom automático en iOS Safari al tocar inputs */
  .interactive-form input,
  .interactive-form select,
  .interactive-form textarea {
    font-size: 16px !important;
    padding: 0.75rem 0.85rem;
  }

  .btn-whatsapp {
    font-size: 0.94rem;
    padding: 0.85rem 1rem;
    white-space: normal;
    text-align: center;
  }

  /* Footer Móvil */
  .footer {
    padding: 3.5rem 0 2rem 0;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
  }

  .footer-links-col h5 {
    margin-bottom: 0.8rem;
  }

  .footer-bottom-container {
    flex-direction: column;
    gap: 0.8rem;
    text-align: center;
  }

}

/* Teléfonos estrechos (iPhone SE, Galaxy, < 480px) */
@media (max-width: 480px) {
  #nav-cta-btn {
    padding: 0.55rem;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  #nav-cta-btn span {
    display: none;
  }

  #nav-cta-btn svg {
    margin: 0;
    width: 20px;
    height: 20px;
  }

  .brand-logo {
    gap: 0.5rem;
  }

  .brand-name {
    font-size: 1.1rem;
  }

  .brand-sub {
    font-size: 0.48rem;
    letter-spacing: 0.8px;
  }
}

/* Pantallas ultra compactas (< 400px) */
@media (max-width: 400px) {
  .hero-title {
    font-size: 1.85rem;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .badge-pill {
    font-size: 0.7rem;
  }

  .founder-avatar-img-wrap {
    width: 68px;
    height: 68px;
  }

  .founder-name {
    font-size: 1.25rem;
  }
}
