/* ==========================================
   VARIABLES Y RESET PRINCIPAL
   ========================================== */
:root {
  --primary-purple: #6B4EFF;
  --primary-purple-dark: #5639E0;
  --primary-purple-light: #F0EBFF;
  --bg-app: #F5F6FA;
  --surface-white: #FFFFFF;
  --text-primary: #1F2328;
  --text-secondary: #656D76;
  --text-muted: #8C95AF;
  --border-light: #E1E4E8;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 8px rgba(107, 78, 255, 0.08);
  --shadow-md: 0 8px 24px rgba(107, 78, 255, 0.12);
  --font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-app);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ==========================================
   ENCABEZADO Y NAVEGACIÓN
   ========================================== */
header {
  background-color: var(--surface-white);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-container .logo-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-tag {
  background-color: var(--primary-purple);
  color: var(--surface-white);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
}

.logo-text {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text-primary);
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-button {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.nav-button:hover,
.nav-button.active {
  background-color: var(--primary-purple-light);
  color: var(--primary-purple);
}

.nav-button.catedra-btn {
  background-color: var(--primary-purple);
  color: var(--surface-white);
}

.nav-button.catedra-btn:hover {
  background-color: var(--primary-purple-dark);
}

/* ==========================================
   SECCIÓN HERO (INICIO)
   ========================================== */
.hero-inicio {
  background: linear-gradient(135deg, var(--primary-purple) 0%, var(--primary-purple-dark) 100%);
  color: var(--surface-white);
  padding: 4rem 1.5rem;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-text h1 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero-text p {
  font-size: 1.1rem;
  opacity: 0.9;
  font-weight: 300;
}

.hero-image {
  display: flex;
  justify-content: center;
}

/* Contenedor del mockup */
.phone-mockup {
  position: relative;
  width: 280px;
  max-width: 100%;
  margin: 0 auto;
  border: 8px solid #1a1a1a;
  border-radius: 36px;
  background-color: #ffffff;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.phone-mockup .notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 18px;
  background-color: #1a1a1a;
  border-radius: 10px;
  z-index: 10;
}

.phone-screen-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 28px;
  object-fit: cover;
}

/* ==========================================
   SECCIÓN EL EQUIPO
   ========================================== */
.group-container {
  max-width: 1200px;
  margin: 4rem auto;
  padding: 0 1.5rem;
}

.group-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--text-primary);
  text-align: center;
}

.group-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.group-card {
  background-color: var(--surface-white);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.25rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.group-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.avatar-container {
  width: 80px;
  height: 80px;
  margin-bottom: 1rem;
  position: relative;
}

.group-photo-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.avatar-fallback {
  width: 100%;
  height: 100%;
  background-color: var(--primary-purple-light);
  color: var(--primary-purple);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.4rem;
}

.group-name {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.group-career {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.profile-button {
  margin-top: auto;
  display: inline-block;
  padding: 0.4rem 1.2rem;
  background-color: var(--primary-purple-light);
  color: var(--primary-purple);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  transition: background-color 0.2s ease;
}

.profile-button:hover {
  background-color: var(--primary-purple);
  color: var(--surface-white);
}

/* ==========================================
   SECCIÓN DATOS ACADÉMICOS
   ========================================== */
.data-container {
  max-width: 1200px;
  margin: 4rem auto;
  padding: 0 1.5rem;
}

.data-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--text-primary);
  text-align: center;
}

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

.data-col {
  background-color: var(--surface-white);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.data-heading-main {
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary-purple);
  margin-bottom: 0.5rem;
}

.data-heading-sub {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

.data-text {
  font-size: 0.95rem;
  color: var(--text-primary);
  font-weight: 500;
}

.highlight-team {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-purple);
}

.mt-space {
  margin-top: 1.25rem;
}

/* ==========================================
   PIE DE PÁGINA (FOOTER)
   ========================================== */
.footer {
  background-color: var(--surface-white);
  border-top: 1px solid var(--border-light);
  padding: 2.5rem 1.5rem;
  margin-top: 4rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-logo {
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary-purple);
  margin-bottom: 0.75rem;
}

.footer-disclaimer {
  font-size: 0.8rem;
  color: var(--text-muted);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ==========================================
   ESTILOS ESPECÍFICOS: PÁGINA PLAN
   ========================================== */
.hero-plan {
  background: linear-gradient(135deg, var(--primary-purple) 0%, var(--primary-purple-dark) 100%);
  color: var(--surface-white);
  padding: 3.5rem 1.5rem;
  text-align: center;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  margin-bottom: 3rem;
}

.hero-plan-content h1 {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.hero-plan-content p {
  font-size: 1.1rem;
  opacity: 0.9;
  font-weight: 300;
}

.plan-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.project-card {
  background-color: var(--surface-white);
  border-radius: var(--radius-md);
  padding: 2rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.project-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary-purple);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.project-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

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

.grid-two-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 2rem;
}

.custom-list {
  list-style: none;
  padding-left: 0;
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.custom-list li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
}

.custom-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary-purple);
  font-weight: bold;
  font-size: 1.2rem;
  line-height: 1;
}

/* ==========================================
   ESTILOS ESPECÍFICOS: PÁGINA MAPA
   ========================================== */
.hero-mapa {
  background: linear-gradient(135deg, var(--primary-purple) 0%, var(--primary-purple-dark) 100%);
  color: var(--surface-white);
  padding: 3.5rem 1.5rem;
  text-align: center;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  margin-bottom: 3rem;
}

.hero-mapa-content h1 {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.hero-mapa-content p {
  font-size: 1.1rem;
  opacity: 0.9;
  font-weight: 300;
}

.mapa-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.mapa-card {
  background-color: var(--surface-white);
  border-radius: var(--radius-md);
  padding: 2rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mapa-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.mapa-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary-purple);
  margin-bottom: 0.5rem;
}

.mapa-description {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.mapa-image-container {
  width: 100%;
  background-color: var(--bg-app);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mapa-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* ==========================================
   DISEÑO ADAPTATIVO (RESPONSIVE)
   ========================================== */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--surface-white);
    padding: 1rem;
    box-shadow: var(--shadow-md);
  }

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

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 1.8rem;
  }

  .hero-plan, .hero-mapa {
    padding: 2.5rem 1rem;
  }
  
  .hero-plan-content h1, .hero-mapa-content h1 {
    font-size: 1.8rem;
  }

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

  .project-card, .mapa-card {
    padding: 1.5rem;
  }
}

/* ==========================================
   CORRECCIÓN DEFINITIVA PARA LAS TARJETAS DEL EQUIPO
   ========================================== */
.group-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  position: relative !important;
}

.avatar-container {
  width: 80px !important;
  height: 80px !important;
  margin: 0 auto 0.75rem auto !important;
  position: relative !important;
  flex-shrink: 0 !important;
}

.group-name {
  font-weight: 700 !important;
  font-size: 1.1rem !important;
  color: var(--text-primary) !important;
  margin-top: 0.5rem !important;
}

.group-career {
  font-size: 0.85rem !important;
  color: var(--text-secondary) !important;
  margin-top: 0.4rem !important;
  margin-bottom: 1.25rem !important;
  line-height: 1.3 !important;
  min-height: 2.4em !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}
/* ==========================================
   UNIFICAR ANCHO DE CONTENEDORES
   ========================================== */
.plan-container {
  max-width: 1200px !important; /* Lo igualamos al ancho máximo que usas en el resto de la web */
  margin: 0 auto !important;
  padding: 0 1.5rem !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 2rem !important;
}