:root {
  --font-main: "Inter", sans-serif;

  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --bg-dark: #0b1727;

  --text-dark: #1e293b;
  --text-gray: #64748b;
  --text-light: #cbd5e1;
  --text-white: #ffffff;

  --border-color: #e2e8f0;
  --border-dark: #1e293b;

  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 2rem;
  --spacing-xl: 4rem;
  --spacing-xxl: 6rem;

  --header-height: 96px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  font-family: var(--font-main);
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-light);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

ul,
ol {
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  padding: 0;
  cursor: pointer;
  background: transparent;
  border: 0;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(30, 41, 59, 0.35);
  outline-offset: 3px;
}

/* =========================
   UTILIDADES
   ========================= */

.container {
  width: min(100% - 2rem, 1400px);
  margin-inline: auto;
}

.section {
  padding-block: var(--spacing-xxl);
}

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

.uppercase {
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tracking-widest {
  letter-spacing: 0.2em;
}

.font-light {
  font-weight: 300;
}

.font-bold {
  font-weight: 700;
}

.font-black {
  font-weight: 900;
}


/* =========================
   HERO
   ========================= */

.hero {
  display: flex;
  min-height: 100svh;
 /* padding-top: var(--header-height); desactivado por errores*/
}

.hero-content,
.hero-image {
  flex: 1 1 50%;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(3rem, 7vw, var(--spacing-xxl));
  color: var(--text-white);
  background-color: var(--bg-dark);
}

.hero-tag {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: var(--spacing-xl);
  font-size: 0.625rem;
  color: rgba(255, 255, 255, 0.7);
}

.hero-tag::before {
  width: 50px;
  height: 1px;
  content: "";
  background-color: rgba(255, 255, 255, 0.3);
}

.hero-title {
  max-width: 800px;
  margin-bottom: var(--spacing-lg);
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 300;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.hero-desc {
  max-width: 500px;
  margin-bottom: var(--spacing-xl);
  font-size: 1.125rem;
  font-weight: 300;
  color: var(--text-light);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md);
}

.btn-primary,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 50px;
  padding: 1rem 2rem;
  font-size: 0.75rem;
  font-weight: 700;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}

.btn-primary {
  font-weight: 900;
  color: var(--bg-dark);
  background-color: var(--bg-white);
}

.btn-primary:hover {
  background-color: #e2e8f0;
}

.btn-outline {
  color: var(--text-white);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.hero-image {
  min-height: 600px;
  background-image: url("https://images.unsplash.com/photo-1758273241078-8eec353836be?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&q=80&w=2000");
  background-position: center;
  background-size: cover;
  filter: grayscale(100%);
  opacity: 0.9;
}

@media (max-width: 1024px) {
  .hero {
    flex-direction: column;
    min-height: auto;
  }

  .hero-content {
    min-height: calc(100svh - var(--header-height));
  }

  .hero-image {
    min-height: 45vh;
  }
}

@media (max-width: 640px) {
  .hero-content {
    padding: 3rem 1.25rem;
  }

  .hero-title {
    font-size: clamp(2.5rem, 13vw, 3.5rem);
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn-primary,
  .btn-outline {
    width: 100%;
  }
}

/* =========================
   PESTAÑAS
   ========================= */

.tabs-layout {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--spacing-xxl);
}

.tab-btn {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: var(--spacing-lg) 0;
  color: var(--text-gray);
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: 300;
  transition:
    color 0.25s ease,
    border-color 0.25s ease;
}

.tab-btn:hover {
  color: var(--text-dark);
}

.tab-btn.active {
  font-weight: 500;
  color: var(--text-dark);
  border-color: var(--border-dark);
}

.tab-content-panel {
  display: none;
  padding: clamp(2rem, 5vw, var(--spacing-xxl));
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
}

.tab-content-panel.active {
  display: block;
  animation: tabFadeIn 0.3s ease;
}

.tab-content-panel h3 {
  margin-bottom: var(--spacing-lg);
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.tab-content-panel p {
  margin-bottom: var(--spacing-lg);
  color: var(--text-gray);
}

.check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--spacing-md);
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
}

@keyframes tabFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1024px) {
  .tabs-layout {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
  }
}

@media (max-width: 640px) {
  .check-list {
    grid-template-columns: 1fr;
  }
}

/* =========================
   MODALIDADES
   ========================= */

.dark-section {
  color: var(--text-white);
  background-color: var(--bg-dark);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--spacing-lg);
}

.card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: var(--spacing-xl);
  background-color: #1e293b;
  border: 1px solid #334155;
}

/* Transición y efecto de ampliación al pasar el ratón */
.cards-grid .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cards-grid .card:hover {
    transform: translateY(-8px) scale(1.03); /* Eleva ligeramente la tarjeta y la amplía un 3% */
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15); /* Opcional: añade sombra más profunda para dar relieve */
}

.card h3 {
  margin-bottom: var(--spacing-md);
  font-size: 1.5rem;
}

.card p {
  flex-grow: 1;
  margin-bottom: var(--spacing-lg);
  color: var(--text-light);
}

.card-footer {
  padding-top: var(--spacing-md);
  font-size: 0.75rem;
  font-weight: 700;
  border-top: 1px solid #334155;
}

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

@media (max-width: 640px) {
  .card {
    padding: 2rem 1.5rem;
  }
}

/* =========================
   EQUIPO
   ========================= */

.team-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--spacing-xxl);
  align-items: center;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--spacing-lg);
}

.team-item {
  display: flex;
  gap: var(--spacing-md);
}

.team-item h4 {
  margin-bottom: 0.25rem;
  font-size: 0.875rem;
  font-weight: 900;
}

.team-item p {
  font-size: 0.75rem;
  color: var(--text-gray);
}

@media (max-width: 1024px) {
  .team-layout {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
  }
}

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

/* =========================
   FORMULARIO
   ========================= */

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.input-group {
  position: relative;
  padding-top: 1rem;
}

.input-group input,
.input-group select,
.input-group textarea {
  width: 100%;
  padding: 0.75rem 0;
  font-size: 1.125rem;
  font-weight: 300;
  color: var(--text-dark);
  background-color: transparent;
  border: 0;
  border-bottom: 2px solid var(--border-color);
  border-radius: 0;
  outline: none;
  transition: border-color 0.25s ease;
}

.input-group textarea {
  min-height: 120px;
  resize: vertical;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
  border-color: var(--border-dark);
}

.input-group label {
  position: absolute;
  top: 0;
  left: 0;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-gray);
  text-transform: uppercase;
}

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-lg);
  padding-top: var(--spacing-lg);
  border-top: 1px solid var(--border-color);
}

@media (max-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .form-footer {
    flex-direction: column;
    align-items: stretch;
  }
}



/* =========================
   AJUSTES GENERALES
   ========================= */

@media (max-width: 768px) {
  :root {
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;
    --header-height: 80px;
  }

  .logo img {
    height: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}




/* =========================
   ENCABEZADOS DE SECCIÓN
   ========================= */

.section-heading {
  margin-bottom: var(--spacing-xl);
}

.section-kicker,
.panel-kicker {
  display: block;
  margin-bottom: 1rem;
  font-size: 0.75rem;
  color: var(--text-gray);
}

.panel-kicker {
  margin-bottom: 1.5rem;
  font-size: 0.625rem;
}

.section-title {
  margin: 0;
  font-size: clamp(2.25rem, 5vw, 3rem);
  font-weight: 300;
  line-height: 1.2;
}

.section-title strong {
  display: inline;
}

/* =========================
   ICONOS DE TARJETAS
   ========================= */

.card-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 2rem;
  color: var(--text-gray);
}

.card-featured {
  border-color: #475569;
}

/* =========================
   EQUIPO
   ========================= */

.team-section {
  border-bottom: 1px solid var(--border-color);
}

.team-description {
  margin-top: 2rem;
  font-size: 1.125rem;
  font-weight: 300;
  color: var(--text-gray);
}

.team-item > svg {
  flex: 0 0 auto;
  color: var(--text-gray);
}

.team-item h3 {
  margin-bottom: 0.25rem;
  font-size: 0.875rem;
  font-weight: 900;
}

/* =========================
   ADMISIONES
   ========================= */

.admissions-container {
  max-width: 1000px;
}

.admissions-title {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 900;
  text-transform: uppercase;
}

.admissions-description {
  font-size: 1.125rem;
  font-weight: 300;
  color: var(--text-gray);
}

.form-field-full {
  margin-bottom: 2rem;
}

.form-confidentiality {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-gray);
}

.form-confidentiality svg {
  width: 16px;
  height: 16px;
}

.form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.25rem 3rem;
  font-size: 0.875rem;
  font-weight: 900;
  color: var(--text-white);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background-color: var(--bg-dark);
  transition:
    background-color 0.25s ease,
    transform 0.25s ease;
}

.form-submit:hover,
.form-submit:focus-visible {
  background-color: #1e293b;
  transform: translateY(-2px);
}

.form-submit svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 768px) {
  .form-submit {
    width: 100%;
  }
}