/* Campus Virtual — mobile first */
:root {
  --primary: #18c77a;
  --secondary: #2196f3;
  --accent: #ff8a00;
  --background: #08131f;
  --white: #ffffff;
  --text-light: #d5dbe3;
  --glass: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.18);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  --radius: 24px;
  --transition: 0.35s ease;
}

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

/* Base común para Font Awesome: evita saltos de línea base y cajas irregulares. */
i[class^="fa-"],
i[class*=" fa-"] {
  display: inline-grid;
  flex: 0 0 auto;
  width: 1em;
  height: 1em;
  place-items: center;
  line-height: 1;
  text-align: center;
  vertical-align: -0.125em;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-width: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--background);
  color: var(--white);
  font-family: "Poppins", sans-serif;
  -webkit-user-select: none;
  user-select: none;
}

input,
textarea,
select,
[contenteditable="true"] {
  -webkit-user-select: text;
  user-select: text;
}

html {
  scroll-padding-top: calc(var(--site-header-height, 10rem) + 1rem);
}

/* La altura real del menú gobierna el espacio inicial en todos los tamaños. */
body > main > .landing,
body > main > .hero {
  padding-top: calc(var(--site-header-height, 10rem) + 2rem);
}

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

img {
  -webkit-user-drag: none;
}

.bot-field {
  position: fixed !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  z-index: -3;
  background: linear-gradient(120deg, #18c77a, #2196f3, #ff8a00, #18c77a);
  background-size: 400% 400%;
  animation: bg-move 18s infinite;
}

body::after {
  z-index: -2;
  background: rgba(5, 15, 30, 0.55);
}

.animated-background {
  position: fixed;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  animation: float 15s infinite ease-in-out;
}

.blob1 {
  width: 13rem;
  height: 13rem;
  top: 5%;
  left: -3rem;
  background: #18c77a55;
}
.blob2 {
  width: 11rem;
  height: 11rem;
  top: 35%;
  right: -3rem;
  background: #2196f355;
}
.blob3 {
  width: 12rem;
  height: 12rem;
  bottom: 5%;
  left: 25%;
  background: #ff8a0055;
}

.glass-card {
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  background: var(--glass);
  box-shadow: var(--shadow);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}

header {
  font-family: "Poppins", sans-serif;
  line-height: 1.4;
  position: fixed;
  z-index: 1000;
  top: 0;
  right: 0;
  left: 0;
  width: auto;
  padding: 0.75rem 1rem;
  background: rgba(5, 15, 30, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.logo {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-size: clamp(1rem, 4vw, 1.25rem);
  font-weight: 700;
  text-align: center;
  color: var(--white);
  text-decoration: none;
}

.logo i {
  color: var(--primary);
}

.logo img {
  display: block;
  width: clamp(3rem, 10vw, 3.6rem);
  height: clamp(3rem, 10vw, 3.6rem);
  flex: 0 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 9px rgba(0, 0, 0, 0.2));
}

.logo span {
  min-width: 0;
  line-height: 1.1;
}

nav {
  display: flex;
  max-width: 100%;
  justify-content: center;
  gap: 0.35rem 1rem;
  margin-top: 0.55rem;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}

nav::-webkit-scrollbar {
  display: none;
}

.header-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.language-picker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--glass-border);
  border-radius: 2rem;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.language-picker i {
  color: var(--primary);
}

.language-picker select {
  max-width: 10.5rem;
  border: 0;
  outline: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
}

.language-picker option {
  background: var(--background);
  color: var(--white);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

nav a,
footer a {
  color: var(--white);
  font-weight: 500;
  text-decoration: none;
}

nav a {
  position: relative;
  flex: 0 0 auto;
  padding: 0.45rem 0.2rem;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.4;
}

header nav a[aria-current="page"] {
  color: var(--primary);
}

header nav a[aria-current="page"]::after {
  position: absolute;
  right: 0.2rem;
  bottom: 0;
  left: 0.2rem;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  content: "";
}
nav a:hover,
nav a:focus-visible,
footer a:hover,
footer a:focus-visible {
  color: var(--primary);
}

.landing,
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 2.5rem;
  min-height: 100svh;
  padding: 8.75rem 1.25rem 4rem;
  text-align: center;
}

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

.hero-tag {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
  padding: 0.55rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.8rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
}

.landing h1 span,
.hero h1 span {
  background: linear-gradient(
    90deg,
    var(--primary),
    var(--secondary),
    var(--accent)
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;

  /* ¡AÑADE ESTO! Da espacio para que no se corten los bordes de las letras */
  padding-right: 0.05em;
  padding-left: 0.05em;
}

.landing h1 span,
.hero h1 span {
  background: linear-gradient(
    90deg,
    var(--primary),
    var(--secondary),
    var(--accent)
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  /* color: transparent; -> Ya cubierto por -webkit-text-fill-color, pero se puede dejar como fallback */
  color: transparent;

  /* Extra de seguridad para evitar saltos extraños si el texto se divide en dos líneas */
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.landing-text > p,
.hero-content > p:not(.notice),
.campus-card > p {
  max-width: 38rem;
  margin-bottom: 1.5rem;
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.75;
}

.hero-buttons {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 0.9rem;
}

.btn-primary {
  display: inline-flex;
  width: 100%;
  min-height: 3.5rem;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}

.btn-primary > i,
.btn-secondary > i {
  width: 1.25em;
  min-width: 1.25em;
}

button.btn-primary {
  border: 0;
  font: inherit;
  cursor: pointer;
}

.campus-access-trigger {
  margin: 0;
}

.modal-open {
  overflow: hidden;
}

.login-modal {
  position: fixed;
  z-index: 2000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  visibility: hidden;
  opacity: 0;
  transition:
    opacity var(--transition),
    visibility var(--transition);
}

.login-modal.is-open {
  visibility: visible;
  opacity: 1;
}

.login-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 10, 21, 0.78);
  backdrop-filter: blur(8px);
}

.login-card {
  position: relative;
  z-index: 1;
  width: min(100%, 29rem);
  padding: 2rem 1.35rem;
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  text-align: center;
  transform: translateY(1rem) scale(0.98);
  transition: transform var(--transition);
}

.login-modal.is-open .login-card {
  transform: translateY(0) scale(1);
}

.login-close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  cursor: pointer;
}

.login-card__icon {
  display: grid;
  width: 4.25rem;
  height: 4.25rem;
  place-items: center;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  font-size: 1.75rem;
}

.login-card__eyebrow {
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.login-card h2 {
  margin: 0.35rem 0 0.7rem;
  font-size: clamp(1.55rem, 6vw, 2rem);
}

.login-card > p:not(.login-card__eyebrow) {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.65;
}

.login-form {
  display: grid;
  gap: 0.55rem;
  margin-top: 1.5rem;
  text-align: left;
}

.login-form label {
  margin-top: 0.45rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.login-input {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0 1rem;
  border: 1px solid var(--glass-border);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.08);
}

.login-input i {
  width: 1.25rem;
  color: var(--primary);
}

.login-input input {
  width: 100%;
  min-width: 0;
  min-height: 3.15rem;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--white);
  font: inherit;
}

.password-toggle {
  display: inline-grid;
  width: 2.5rem;
  min-width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text-light);
  cursor: pointer;
}

.password-toggle:hover,
.password-toggle:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.login-input:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(24, 199, 122, 0.16);
}

.login-error {
  min-height: 1.25rem;
  color: #ffbd75;
  font-size: 0.8rem;
  line-height: 1.35;
}

.login-attempts,
.login-caps-warning {
  margin-top: 0.35rem;
  font-size: 0.78rem;
  line-height: 1.45;
}

.login-attempts {
  color: var(--text-light);
}

.login-caps-warning {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: #ffd37d;
  font-weight: 700;
}

.login-caps-warning i {
  color: var(--accent);
}

.login-help {
  margin-top: 0.25rem;
}

.login-form .login-help {
  width: 100%;
}

.login-help[hidden],
.login-caps-warning[hidden] {
  display: none;
}

.login-form.is-locked .login-input,
.login-form.is-locked .btn-primary {
  opacity: 0.55;
}

.login-form .btn-primary {
  margin-top: 0.25rem;
}

.btn-secondary {
  display: inline-flex;
  width: 100%;
  min-height: 3.5rem;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition:
    transform var(--transition),
    background var(--transition);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  transform: translateY(-0.3rem);
  background: rgba(255, 255, 255, 0.16);
}

.notice {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 1.1rem;
  font-size: 0.8rem;
  line-height: 1.55;
}

.notice > i {
  flex: 0 0 auto;
  margin-top: 0.18em;
}

.carousel {
  position: relative;
  width: 100%;
  height: clamp(16rem, 70vw, 23rem);
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s;
}
.slide.active {
  opacity: 1;
}
.slide img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
  object-fit: cover;
}

.caption {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  padding: 0.65rem 1rem;
  border-radius: 1.5rem;
  background: rgba(0, 0, 0, 0.5);
  font-size: 0.85rem;
  font-weight: 600;
}

.dots {
  position: absolute;
  right: 1rem;
  bottom: 0.6rem;
  display: flex;
  gap: 0.5rem;
}
.dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--white);
  cursor: pointer;
  opacity: 0.45;
}
.dot.active {
  opacity: 1;
}

.campus-card {
  width: 100%;
  padding: 1.75rem 1.25rem;
  text-align: center;
}
.campus-card > i {
  color: var(--primary);
  font-size: 3.3rem;
}
.campus-card h2 {
  margin: 1rem 0;
  font-size: 1.5rem;
}

.steps {
  display: grid;
  gap: 0.7rem;
  margin-top: 1.25rem;
}
.steps div {
  padding: 0.85rem;
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.9rem;
}
.steps i {
  margin-right: 0.5rem;
  color: var(--primary);
  font-size: 1.1rem;
}

.features,
.areas {
  padding: 3.75rem 1.25rem;
  text-align: center;
}

.features > h2,
.areas > h2 {
  margin-bottom: 2rem;
  font-size: clamp(1.8rem, 8vw, 2.4rem);
}

.features:not(#funciona) {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

.feature-grid,
.area-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

.tutorial-card {
  display: grid;
  grid-template-areas:
    "video"
    "content";
  gap: 1rem;
  margin-top: 1.25rem;
  padding: 1.5rem 1.25rem;
  text-align: center;
}

.tutorial-video-wrap {
  grid-area: video;
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
  background:
    radial-gradient(
      circle at center,
      rgba(255, 255, 255, 0.12),
      transparent 48%
    ),
    rgba(0, 0, 0, 0.28);
}

.tutorial-video {
  display: block;
  width: 100%;
  height: 100%;
  background: #101820;
  object-fit: cover;
}

.tutorial-card__content {
  grid-area: content;
  align-self: center;
}

.tutorial-video-play {
  display: inline-block;
  margin-right: 0.4rem;
  font-size: 1rem;
  line-height: 1;
  vertical-align: -0.05em;
}

.tutorial-video-play i {
  display: block;
  background: linear-gradient(
    120deg,
    #ffb347,
    #ff7a59,
    #e65cc5,
    #73d7ff,
    #ffb347
  );
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: tutorial-play-signal 2.4s ease-in-out infinite;
}

.tutorial-subtitle-note {
  margin-top: 0.75rem;
  color: var(--text-light);
  font-size: 0.875rem;
  line-height: 1.5;
}

@keyframes tutorial-play-signal {
  0%,
  100% {
    opacity: 0.22;
    transform: scale(0.9);
    background-position: 0% 50%;
  }
  50% {
    opacity: 1;
    transform: scale(1.12);
    background-position: 100% 50%;
  }
}

.tutorial-card__eyebrow {
  margin-bottom: 0.35rem;
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tutorial-card h3 {
  margin-bottom: 0.45rem;
}

.features:not(#funciona) .glass-card,
.feature-grid .glass-card,
.area-grid .glass-card {
  padding: 1.5rem 1.25rem;
}

.features:not(#funciona) .glass-card > i,
.feature-grid .glass-card > i,
.area-grid .glass-card > i {
  display: inline-grid;
  width: 1em;
  height: 1em;
  place-items: center;
  margin-bottom: 0.8rem;
  color: var(--secondary);
  font-size: 2.4rem;
}

.features h3,
.areas h3 {
  margin-bottom: 0.6rem;
  font-size: 1.1rem;
}
.features p {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.65;
}

.project {
  padding: 0 1.25rem 3.75rem;
}

.project .glass-card {
  display: grid;
  gap: 1rem;
  max-width: 68rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem;
  text-align: center;
}

.project .glass-card > i {
  color: var(--accent);
  font-size: 2.25rem;
}
.project h2 {
  margin-bottom: 0.45rem;
  font-size: clamp(1.45rem, 6vw, 2rem);
}
.project p {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.65;
}
.project .btn-primary {
  width: 100%;
}

/* ===========================
   FOOTER
=========================== */

footer {
  margin-top: 5rem;
  padding: 4rem 5% 2rem;
  background: var(--glass);
  border-top: 1px solid var(--glass-border);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
}

.footer-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.footer-column h2 {
  font-size: 1.6rem;
  margin-bottom: 0.3rem;
  color: #fff;
}

.footer-column h3 {
  font-size: 1.15rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.footer-column p {
  color: var(--text-light);
  line-height: 1.8;
  font-size: 0.95rem;
}

.footer-column strong {
  color: #fff;
}

.footer-column a {
  color: var(--secondary);
  text-decoration: none;
  transition: 0.3s;
}

.footer-column a:hover {
  color: var(--primary);
}

.footer-logo {
  width: 140px;
  max-width: 100%;
  border-radius: 16px;
  background: #fff;
  padding: 0.5rem;
  box-shadow: var(--shadow);
}

.royal-logo {
  width: 120px;
  background: white;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0;
}

.footer-links li {
  margin: 0;
}

.footer-links a {
  color: var(--text-light);
  transition: 0.3s;
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: 6px;
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
}

.footer-bottom p {
  color: #cbd5e1;
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-bottom .footer-author {
  margin-top: 0.45rem;
}

.footer-author a {
  color: inherit;
  font-weight: 700;
  text-underline-offset: 0.2em;
}

.footer-author a:hover,
.footer-author a:focus-visible {
  color: var(--primary);
}

.scrollTop {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 50;
  width: 2.8rem;
  height: 2.8rem;
  border: 0;
  border-radius: 50%;
  background: var(--primary);
  color: var(--background);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(1rem);
  transition: var(--transition);
}

.scrollTop.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.reveal {
  opacity: 0;
  transform: translateY(2rem);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.btn-primary:hover,
.btn-primary:focus-visible,
.glass-card:hover {
  transform: translateY(-0.3rem);
  box-shadow: 0 15px 35px #0005;
}

.btn-primary.btn-disabled {
  cursor: not-allowed;
  opacity: 0.65;
  pointer-events: none;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

@media (min-width: 600px) {
  header {
    padding: 1rem 5%;
  }
  .landing,
  .hero {
    padding-right: 5%;
    padding-left: 5%;
  }
  .features,
  .areas {
    padding-right: 5%;
    padding-left: 5%;
  }
  .project {
    padding-right: 5%;
    padding-left: 5%;
  }
  .feature-grid,
  .area-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .features:not(#funciona) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .carousel {
    height: clamp(20rem, 56vw, 28rem);
  }
}

@media (min-width: 768px) {
  header {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .logo {
    justify-content: flex-start;
    font-size: 1.35rem;
  }

  .logo img {
    width: 4rem;
    height: 4rem;
  }
  .header-actions {
    flex-direction: row;
    gap: 1rem;
  }
  nav {
    margin-top: 0;
    gap: 1.5rem;
    overflow: visible;
  }
  nav a {
    font-size: 0.95rem;
  }
  .landing,
  .hero {
    gap: 3rem;
    padding-top: 7.5rem;
    padding-bottom: 5rem;
  }

  .hero h1,
  .landing h1 {
    /* Reducido proporcionalmente: antes (3rem, 6vw, 4.5rem) */
    font-size: clamp(2.2rem, 5vw, 3.5rem);
  }

  .hero-tag {
    font-size: 0.9rem;
  }
  .landing-text > p,
  .hero-content > p:not(.notice),
  .campus-card > p {
    font-size: 1rem;
  }
  .campus-card {
    max-width: 34rem;
    justify-self: center;
    padding: 2.5rem;
  }
  .feature-grid,
  .area-grid {
    gap: 1.5rem;
  }
  .features,
  .areas {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
  .project {
    padding-bottom: 5rem;
  }
}

@media (min-width: 1024px) {
  .landing,
  .hero {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4rem;
    text-align: left;
  }
  .landing-text,
  .hero-content {
    align-items: flex-start;
  }
  .hero-buttons {
    width: auto;
    min-width: 18rem;
  }
  .hero-content > p:not(.notice) {
    margin-right: 0;
  }
  .notice {
    justify-content: flex-start;
    text-align: left;
  }
  .carousel {
    height: 32rem;
  }
  .campus-card {
    max-width: none;
    justify-self: stretch;
    padding: 3rem;
  }
  .feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.875rem;
  }
  .area-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
  }
  .features,
  .areas {
    padding-right: 8%;
    padding-left: 8%;
  }
  .project {
    padding-right: 8%;
    padding-left: 8%;
  }
  .project .glass-card {
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    padding: 2rem 2.5rem;
    text-align: left;
  }
  .project .btn-primary {
    width: auto;
    min-width: 13rem;
  }
  .glass-card:hover {
    transform: translateY(-0.5rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@keyframes bg-move {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}
@keyframes float {
  50% {
    transform: translateY(-3rem) scale(1.1);
  }
}

::-webkit-scrollbar {
  width: 0.6rem;
}
::-webkit-scrollbar-thumb {
  border-radius: 1.25rem;
  background: linear-gradient(var(--primary), var(--secondary));
}

/* ===========================
   FOOTER RESPONSIVE
=========================== */

@media (min-width: 768px) {
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .footer-container {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    align-items: start;
  }

  .footer-column:first-child {
    padding-right: 2rem;
  }
}

/* ===========================
   FOOTER CAMPUS VIRTUAL
=========================== */

#campus-footer {
  max-width: 1200px;
  margin: 4rem auto 2rem;
  padding: 2.5rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  box-shadow: var(--shadow);
}

#campus-footer .footer-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

#campus-footer .footer-column {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

#campus-footer .footer-column h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

#campus-footer .footer-column h3 {
  color: var(--primary);
  font-size: 1.1rem;
}

#campus-footer .footer-column p {
  color: var(--text-light);
  line-height: 1.6;
}

#campus-footer .footer-column a {
  color: var(--text-light);
  text-decoration: none;
  transition: color var(--transition);
}

#campus-footer .footer-column a:hover {
  color: var(--primary);
}

#campus-footer .footer-logo {
  width: 110px;
  border-radius: 12px;
}

#campus-footer .royal-logo {
  width: 90px;
  background: #fff;
  padding: 0.35rem;
}

#campus-footer .footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0;
}

#campus-footer .footer-bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

@media (min-width: 768px) {
  #campus-footer .footer-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  #campus-footer .footer-container {
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
  }
}

/* Elimina cualquier estilo por defecto de enlace en las tarjetas CON LINKS */
.area-card-link {
  text-decoration: none; /* Quita el subrayado clásico */
  color: inherit; /* Hereda el color de texto de la tarjeta original */
  display: flex; /* Si tus .glass-card usaban flex para centrar iconos, esto lo mantiene */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer; /* Asegura que salga la mano al pasar por encima */
  outline: none; /* Evita el recuadro azul de enfoque al hacer clic */
}

/* Evita que los navegadores pinten de color diferente los enlaces ya visitados */
.area-card-link:visited,
.area-card-link:active,
.area-card-link:focus {
  color: inherit;
  text-decoration: none;
}

/*=========================
 AULAS Y ACORDEÓN (CLASES.HTML)
=========================*/

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.accordion-container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* El elemento del acordeón hereda el look de tarjeta de cristal */
.accordion-item {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  overflow: hidden;
  transition:
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.accordion-item:hover {
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

/* Cabecera del acordeón */
.accordion-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  outline: none;
  font-family: "Poppins", sans-serif;
  color: inherit;
  transition: background-color 0.3s ease;
}

.accordion-header:hover {
  background-color: rgba(255, 255, 255, 0.03);
}

.accordion-title-wrapper {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1.3rem;
  font-weight: 600;
  text-align: left;
}

/* Icono de la etapa */
.icon-stage {
  font-size: 1.6rem;
  background: linear-gradient(
    135deg,
    var(--primary, #4facfe),
    var(--secondary, #00f2fe)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Flecha de control */
.icon-arrow {
  font-size: 1.1rem;
  opacity: 0.7;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Contenido del acordeón (Manejado dinámicamente con CSS de transición de altura) */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reajustamos la cuadrícula de aulas dentro del acordeón */
.classroom-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  padding: 0 30px 30px 30px;
  align-items: stretch;
}

/* Tarjetas individuales de Classroom */
.classroom-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px;
  min-width: 0;
  text-align: center;
  border-radius: 12px;
  background: rgba(
    255,
    255,
    255,
    0.04
  ); /* Un toque más oscuro que el fondo del acordeón */
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition:
    transform 0.3s ease,
    background-color 0.3s ease;
}

.classroom-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.08);
}

.classroom-card > i {
  font-size: 2.8rem;
  margin-bottom: 15px;
  background: linear-gradient(
    135deg,
    var(--primary, #4facfe),
    var(--secondary, #00f2fe)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-grid;
  width: 1.2em;
  height: 1.2em;
  place-items: center;
}

.classroom-card h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
  font-weight: 600;
}

.classroom-card p {
  margin-bottom: 20px;
  font-size: 0.95rem;
  opacity: 0.85;
  line-height: 1.5;
}

.classroom-card .btn-primary {
  width: 100%;
  margin-top: auto;
  justify-content: center;
}

/* Centrado cuando solo hay una tarjeta en el contenedor (como Bachillerato) */
.single-center-card {
  max-width: 350px;
  margin: 0 auto;
  grid-column: 1 / -1;
}

/* Clases de estado activo controladas por JS */
.accordion-item.active .icon-arrow {
  transform: rotate(180deg);
}

/* ===========================
   AJUSTES DE COMPOSICIÓN RESPONSIVE
   Mobile first: base para móvil, ampliaciones progresivas.
=========================== */

:root {
  --page-gutter: 1.25rem;
  --content-width: 75rem;
}

/* Contención común: los hijos de flex y grid pueden reducirse sin forzar
   desplazamiento horizontal en pantallas estrechas. */
.landing > *,
.hero > *,
.feature-grid > *,
.area-grid > *,
.footer-container > *,
.header-actions,
.campus-card,
.support-card,
.team-card,
.accordion-item,
.classroom-card,
.tutorial-card > * {
  min-width: 0;
}

p,
li,
h1,
h2,
h3,
h4,
a,
button {
  overflow-wrap: anywhere;
}

.landing,
.hero,
.features,
.areas,
.project {
  padding-right: var(--page-gutter);
  padding-left: var(--page-gutter);
}

.landing h1,
.hero h1 {
  max-width: 18ch;
  margin: 0 auto 1.15rem;
  font-size: clamp(2rem, 9vw, 3rem);
  line-height: 1.12;
  text-wrap: balance;
}

.landing-text > p,
.hero-content > p:not(.notice),
.campus-card > p,
.project p,
.features p,
.areas p {
  margin-right: auto;
  margin-left: auto;
  text-wrap: pretty;
}

.features > h2,
.areas > h2,
.section-title {
  max-width: 22ch;
  margin-right: auto;
  margin-left: auto;
  line-height: 1.2;
  text-wrap: balance;
}

.section-title {
  margin-bottom: 1.75rem;
}

#campus-footer {
  width: calc(100% - (var(--page-gutter) * 2));
  margin: 3rem auto 1.25rem;
  padding: 1.5rem;
  text-align: center;
}

#campus-footer .footer-column {
  align-items: center;
}

#campus-footer .footer-column p {
  max-width: 36rem;
}

.accordion-container {
  gap: 0.9rem;
}

.accordion-header {
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
}

.accordion-title-wrapper {
  min-width: 0;
  gap: 0.7rem;
  font-size: 1rem;
  line-height: 1.35;
}

.icon-stage {
  flex: 0 0 auto;
  width: 1.5em;
  font-size: 1.35rem;
}

.icon-arrow {
  flex: 0 0 auto;
  width: 1.25em;
  padding-top: 0.15rem;
  text-align: center;
}

.classroom-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 0.9rem;
  padding: 0 1rem 1rem;
}

.classroom-card {
  padding: 1.25rem;
}

.classroom-card h3 {
  font-size: 1.1rem;
  line-height: 1.35;
}

@media (min-width: 600px) {
  :root {
    --page-gutter: 5%;
  }

  #campus-footer {
    margin-top: 4rem;
    padding: 2rem;
  }

  .accordion-header {
    align-items: center;
    padding: 1.25rem 1.5rem;
  }

  .accordion-title-wrapper {
    font-size: 1.15rem;
  }

  .classroom-grid {
    grid-template-columns: minmax(0, 1fr);
    padding: 0 1.5rem 1.5rem;
  }

  /* Aulas en línea: lectura rápida, sin bloques pequeños. */
  .classroom-card:not(.single-center-card) {
    display: grid;
    grid-template-columns: 4.5rem minmax(0, 1fr) minmax(10.5rem, 11.5rem);
    column-gap: 1.5rem;
    align-items: center;
    min-height: 10.75rem;
    padding: 1.75rem 2rem;
    text-align: left;
  }

  .classroom-card:not(.single-center-card) > i {
    grid-row: 1 / span 2;
    margin: 0;
    font-size: 3rem;
  }

  .classroom-card:not(.single-center-card) h3,
  .classroom-card:not(.single-center-card) p {
    grid-column: 2;
    margin-right: 0;
    margin-left: 0;
  }

  .classroom-card:not(.single-center-card) h3 {
    margin-bottom: 0.4rem;
    font-size: 1.3rem;
  }

  .classroom-card:not(.single-center-card) p {
    margin-bottom: 0;
    font-size: 1rem;
  }

  .classroom-card:not(.single-center-card) .btn-primary {
    grid-column: 3;
    grid-row: 1 / span 2;
    width: auto;
    min-width: 10.5rem;
    min-height: 4.5rem;
    margin: 0;
  }
}

@media (min-width: 768px) {
  .landing h1,
  .hero h1 {
    max-width: 20ch;
  }

  #campus-footer {
    text-align: left;
  }

  #campus-footer .footer-column {
    align-items: flex-start;
  }

  .section-title {
    margin-bottom: 2.25rem;
  }
}

@media (min-width: 1024px) {
  :root {
    --page-gutter: 8%;
  }

  .landing h1,
  .hero h1 {
    margin-right: 0;
    margin-left: 0;
  }

  .landing-text > p,
  .hero-content > p:not(.notice) {
    margin-left: 0;
  }

  .classroom-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
    padding: 0 1.875rem 1.875rem;
  }

  .classroom-card {
    min-height: 100%;
    padding: 1.5rem;
  }

  .classroom-card:not(.single-center-card) {
    grid-template-columns: 5rem minmax(0, 1fr) 12rem;
    min-height: 11.5rem;
    padding: 2rem 2.5rem;
  }

  .classroom-grid {
    padding: 0 2.25rem 2.25rem;
  }

  /* Cursos: solo dos especialidades, centradas en pantallas grandes. */
  .page-courses .classroom-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 52rem;
    margin: 0 auto;
  }
}

/* Título de cursos: los dos fragmentos deben conservar su caja de texto.
   El HTML original aplica display: contents al primero y rompe el ajuste
   visual del degradado y de las líneas. */
.page-courses .hero h1 {
  width: 100%;
  max-width: 23ch;
  text-align: center;
}

.page-courses .hero h1 span {
  display: inline !important;
}

@media (min-width: 768px) {
  .page-courses .hero h1 {
    max-width: 25ch;
  }
}

@media (min-width: 1024px) {
  .page-courses .hero h1 {
    max-width: 26ch;
    text-align: left;
  }
}

/* Cursos: dos tarjetas amplias, independientes del formato de aulas en línea. */
.page-courses .classroom-grid {
  grid-template-columns: minmax(0, 1fr);
  max-width: 76rem;
  margin: 0 auto;
  gap: 1.25rem;
  padding: 0 1rem 1.5rem;
}

.page-courses .classroom-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 21rem;
  padding: clamp(2rem, 7vw, 3.5rem) clamp(1.5rem, 6vw, 3rem);
  text-align: center;
}

.page-courses .classroom-card > i {
  grid-row: auto;
  grid-column: auto;
  margin: 0 0 1.25rem;
  font-size: clamp(3rem, 8vw, 4.25rem);
}

.page-courses .classroom-card h3,
.page-courses .classroom-card p {
  grid-column: auto;
  max-width: 34rem;
  margin-right: auto;
  margin-left: auto;
}

.page-courses .classroom-card h3 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.3rem, 3vw, 1.65rem);
}

.page-courses .classroom-card p {
  margin-bottom: 1.75rem;
  font-size: 1rem;
}

.page-courses .classroom-card .btn-primary {
  grid-row: auto;
  grid-column: auto;
  width: min(100%, 17rem);
  min-width: 0;
  margin-top: auto;
}

@media (min-width: 700px) {
  .page-courses .classroom-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    padding: 0 2rem 2rem;
  }

  .page-courses .classroom-card {
    min-height: 27rem;
  }
}

@media (min-width: 1024px) {
  /* En escritorio, los dos cursos aprovechan el ancho disponible. */
  .page-courses .accordion-container {
    max-width: 84rem;
  }

  .page-courses .classroom-grid {
    max-width: 82rem;
    gap: clamp(2rem, 4vw, 3.5rem);
    padding: 0 clamp(2rem, 5vw, 4rem) clamp(2.5rem, 5vw, 4rem);
  }

  .page-courses .classroom-card {
    min-height: 24rem;
    padding: clamp(2.25rem, 3.5vw, 3rem);
  }

  .page-courses .classroom-card p {
    max-width: 30rem;
    font-size: 1.05rem;
  }
}

/* Páginas legales */
/* Los acordeones deben ocupar la fila completa, no una columna de la rejilla general. */
.features > .section-title,
.features > .accordion-container {
  grid-column: 1 / -1;
}

/* Evita que la rejilla de características comprima los dos cursos en escritorio. */
.page-courses .features {
  display: block;
}

/* Ayuda y equipo (clases.html) */
.campus-support,
.campus-team {
  width: min(100% - (var(--page-gutter) * 2), 1000px);
  margin: 0 auto;
}

.campus-support {
  padding: 1rem 0 2rem;
}

.support-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  text-align: center;
}

.support-icon,
.team-card > i {
  color: var(--primary);
  font-size: 2.25rem;
}

.support-card h2,
.team-card h3 {
  margin-bottom: 0.45rem;
}

.support-card p,
.team-card p {
  color: var(--text-light);
  line-height: 1.6;
}

.support-card .btn-primary {
  justify-content: center;
  width: 100%;
}

.campus-team {
  padding: 2.5rem 0 1rem;
}

.team-heading {
  max-width: 700px;
  margin: 0 auto 1.75rem;
  text-align: center;
}

.team-heading .hero-tag {
  width: fit-content;
  margin: 0 auto 0.8rem;
}

.team-heading__title {
  display: flex;
  width: fit-content;
  margin: 0 auto 0.75rem;
  gap: 0.8rem;
  align-items: center;
  text-align: left;
}

.team-heading__title .hero-tag {
  margin: 0 0 0.22rem;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.team-heading__title .section-title {
  margin: 0;
  line-height: 1.12;
}

.team-heading__icon {
  display: grid;
  width: 3rem;
  height: 3rem;
  flex: 0 0 3rem;
  place-items: center;
  border: 1px solid rgba(24, 199, 122, 0.5);
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(24, 199, 122, 0.2), rgba(24, 199, 122, 0.08));
  color: #2be391;
  font-size: 1.2rem;
}

@media (max-width: 480px) {
  .team-heading__title {
    gap: 0.65rem;
  }

  .team-heading__icon {
    width: 2.65rem;
    height: 2.65rem;
    flex-basis: 2.65rem;
    font-size: 1.05rem;
  }

  .team-heading__title .hero-tag {
    font-size: 0.68rem;
  }

  .team-heading__title .section-title {
    font-size: clamp(1.45rem, 7vw, 1.8rem);
  }
}

.team-heading > p:last-child {
  color: var(--text-light);
  line-height: 1.6;
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-rows: auto;
  gap: 1rem;
  align-items: stretch;
}

.team-card {
  width: 100%;
  height: 100%;
  overflow: hidden;
  padding: 0;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
}

.team-card:not([open]):hover {
  transform: translateY(-7px);
  border-color: rgba(24, 199, 122, 0.45);
  box-shadow:
    0 20px 45px rgba(0, 0, 0, 0.28),
    0 0 28px rgba(24, 199, 122, 0.1);
}

.team-card summary {
  display: flex;
  height: 100%;
  min-height: 0;
  box-sizing: border-box;
  padding: 1rem;
  cursor: pointer;
  list-style: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.team-card[open] {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  width: 100%;
  max-width: none;
  height: 100dvh;
  padding: clamp(1.25rem, 3vw, 2.75rem);
  overflow: hidden;
  grid-template-columns: minmax(15rem, 20rem) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  align-items: center;
  gap: clamp(1rem, 4vw, 4rem);
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(
      circle at 15% 20%,
      rgba(24, 199, 122, 0.2),
      transparent 28rem
    ),
    linear-gradient(145deg, #071b2a, #07364a 58%, #08212f);
  box-shadow: none;
  transform: none;
}

.team-card[open] summary {
  height: 100%;
  min-height: 0;
  padding: clamp(1rem, 3vw, 2.5rem);
  cursor: default;
  border: 2px solid transparent;
  border-radius: 1.5rem;
  background:
    linear-gradient(rgba(7, 27, 42, 0.78), rgba(7, 35, 48, 0.78))
      padding-box,
    linear-gradient(
        120deg,
        var(--secondary),
        var(--primary),
        var(--accent),
        var(--secondary)
      )
      border-box;
  background-size:
    100% 100%,
    300% 300%;
  animation: team-profile-gradient 8s ease-in-out infinite;
}

@keyframes team-profile-gradient {
  0%,
  100% {
    background-position:
      0 0,
      0% 50%;
  }
  50% {
    background-position:
      0 0,
      100% 50%;
  }
}

.team-card[open] summary img {
  width: clamp(9rem, 18vw, 14rem);
  height: clamp(9rem, 18vw, 14rem);
}

.team-card[open] .team-card__identity strong {
  font-size: clamp(1.6rem, 3vw, 2.5rem);
}

.team-card[open] .team-card__identity span {
  font-size: clamp(1rem, 1.6vw, 1.25rem);
}

.team-card[open] .team-card__action {
  display: none;
}

.team-card summary::-webkit-details-marker {
  display: none;
}

.team-card summary:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: -4px;
}

.team-card img {
  width: 6.5rem;
  height: 6.5rem;
  margin-bottom: 0.7rem;
  border: 4px solid rgba(255, 255, 255, 0.88);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.team-card img.team-card__portrait--director {
  object-position: center 82%;
  transform: scale(1.25);
}

.team-card img.team-card__portrait--iratxe {
  object-position: center center;
  transform: scale(1.2);
}

.team-card__identity {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.team-card__identity small {
  display: grid;
  min-height: 0;
  place-items: center;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.team-card__identity strong {
  display: grid;
  min-height: 0;
  place-items: center;
  margin: 0.25rem 0;
  color: var(--white);
  font-size: 1.3rem;
}

.team-card__identity span {
  display: grid;
  min-height: 0;
  place-items: start center;
  color: var(--text-light);
  line-height: 1.45;
}

.team-card__action {
  margin-top: 0.7rem;
  color: var(--primary);
  font-size: 0.88rem;
  font-weight: 700;
}

.team-card__action i {
  margin-left: 0.3rem;
  transition: transform 200ms ease;
}

.team-card[open] .team-card__action i {
  transform: rotate(180deg);
}

.team-card__details {
  position: relative;
  padding: 0 1.35rem 1.35rem;
  border-top: 1px solid var(--glass-border);
}

.team-card[open] .team-card__details {
  height: calc(100dvh - (2 * clamp(1.25rem, 3vw, 2.75rem)));
  max-height: calc(100dvh - (2 * clamp(1.25rem, 3vw, 2.75rem)));
  min-height: 0;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: var(--primary) rgba(255, 255, 255, 0.08);
  border: 1px solid var(--glass-border);
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.08);
}

.team-card__details h4 {
  margin: 0 3rem 1.5rem 0;
  color: var(--white);
  font-size: clamp(1.5rem, 3vw, 2.4rem);
}

.team-card[open] .team-card__details p {
  margin: 0;
  padding: 1rem 0;
  border-bottom: 1px solid var(--glass-border);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
}

.team-card[open] .team-card__details p:last-child {
  border-bottom: 0;
}

.team-card__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  cursor: pointer;
}

.team-card[open] .team-card__close {
  display: grid;
  place-items: center;
}

.team-card__close:hover,
.team-card__close:focus-visible {
  border-color: var(--primary);
  background: rgba(24, 199, 122, 0.2);
}

body.team-profile-open {
  overflow: hidden;
}

.team-card__details p {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  align-items: start;
  column-gap: 0.65rem;
  margin-top: 0.9rem;
  text-align: left;
  overflow-wrap: anywhere;
}

.team-card__details .team-card__summary {
  display: block;
  width: 100%;
  max-width: none;
  line-height: 1.7;
  text-wrap: pretty;
}

.team-card__details i {
  grid-row: 1 / span 2;
  width: 2rem;
  padding-top: 0.15rem;
  color: var(--primary);
  text-align: center;
}

.team-card__details strong {
  display: block;
  margin: 0 0 0.35rem;
  color: var(--white);
}

.team-card__copy {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.team-card__profile-section {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: 0.65rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--glass-border);
}

.team-card__profile-section > i {
  width: 2rem;
  padding-top: 0.15rem;
  color: var(--primary);
  text-align: center;
}

.team-card__profile-section h5 {
  margin: 0 0 0.9rem;
  color: var(--white);
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
}

.team-card__profile-section h6 {
  margin: 1rem 0 0.2rem;
  color: rgba(255, 255, 255, 0.96);
  font-size: 0.98rem;
  line-height: 1.5;
}

.team-card__profile-section h5 + h6 {
  margin-top: 0;
}

.team-card[open] .team-card__profile-section p {
  display: block;
  padding: 0;
  border: 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.team-card[open] .team-card__profile-section .team-card__period {
  margin-bottom: 0.55rem;
  color: var(--primary);
  font-weight: 700;
}

.team-card__profile-section ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem 1.5rem;
  margin: 0;
  padding-left: 1.2rem;
  color: var(--text-light);
}

.team-card__profile-section li {
  padding-left: 0.15rem;
  line-height: 1.55;
}

.team-card__profile-section li::marker {
  color: var(--primary);
}

.team-card__profile-section strong {
  display: inline;
  margin: 0;
}

@media (max-width: 700px) {
  .team-card__profile-section {
    grid-template-columns: 1.5rem minmax(0, 1fr);
    gap: 0.55rem;
  }

  .team-card__profile-section > i {
    width: 1.5rem;
  }

  .team-card__profile-section ul {
    grid-template-columns: 1fr;
    gap: 0.3rem;
    padding-left: 1.05rem;
    font-size: 0.9rem;
  }

  .team-card__profile-section h6 {
    font-size: 0.93rem;
  }
}

.team-card__copy b {
  color: var(--white);
  font-weight: 700;
}

.team-card__copy em,
.team-card__summary em {
  color: rgba(255, 255, 255, 0.92);
}

.team-card__summary > strong {
  display: inline;
  margin: 0;
}

.team-card__story {
  position: relative;
  max-width: 78ch;
  margin-right: auto;
  margin-bottom: 1rem;
  margin-left: auto;
  padding: clamp(1rem, 2vw, 1.35rem) clamp(1.15rem, 2.5vw, 1.75rem);
  border-left: 3px solid rgba(24, 199, 122, 0.7);
  border-radius: 0.35rem 1rem 1rem 0.35rem;
  background: rgba(255, 255, 255, 0.035);
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
}

.team-card__story::before {
  position: absolute;
  top: 0.25rem;
  right: 1rem;
  color: rgba(255, 255, 255, 0.12);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4rem;
  line-height: 1;
  content: "“";
  pointer-events: none;
}

.team-card__story h5 {
  position: relative;
  margin: 0 0 0.45rem;
  color: var(--primary);
  font-family: inherit;
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  font-style: normal;
  letter-spacing: 0.02em;
}

.team-card[open] .team-card__story p {
  display: block;
  padding: 0.32rem 0;
  border-bottom: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(0.84rem, 1.15vw, 0.94rem);
  line-height: 1.55;
  text-wrap: pretty;
}

.team-card__story p strong {
  display: inline;
  margin: 0;
  color: rgba(255, 255, 255, 0.96);
  font-weight: 700;
}

.team-profile {
  color: var(--text-light);
  line-height: 1.65;
}

.team-profile__header {
  padding-right: 3rem;
}

.team-profile__header h4 {
  margin-bottom: 0.35rem;
}

.team-card[open] .team-profile__header p {
  display: block;
  width: auto;
  padding: 0;
  border: 0;
}

.team-profile__role {
  color: var(--primary);
  font-weight: 700;
}

.team-profile__department {
  margin-top: 0.2rem !important;
  font-size: 0.95rem !important;
}

.team-profile section {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--glass-border);
}

.team-profile section:last-child {
  border-bottom: 0;
}

.team-profile h5,
.team-profile h6 {
  color: var(--white);
}

.team-profile h5 {
  margin: 0 0 0.65rem;
  color: var(--primary);
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
}

.team-profile h6 {
  margin: 0.85rem 0 0.25rem;
  font-size: 1rem;
}

.team-card[open] .team-profile section p,
.team-card[open] .team-profile__entry p {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 1rem;
}

.team-profile ul {
  margin: 0;
  padding-left: 1.35rem;
}

.team-profile li + li {
  margin-top: 0.45rem;
}

.team-profile li::marker {
  color: var(--primary);
}

.team-profile strong {
  display: inline;
  margin: 0;
}

.team-profile__entry + .team-profile__entry {
  margin-top: 0.8rem;
}

.team-profile__publications li {
  padding-left: 0.2rem;
}

@media (min-width: 700px) {
  .support-card {
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 1.75rem 2rem;
    text-align: left;
  }

  .support-card .btn-primary {
    width: auto;
  }

  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 1fr;
  }

  .team-grid > .team-card:last-child:nth-child(odd) {
    width: calc((100% - 1rem) / 2);
    grid-column: 1 / -1;
    justify-self: center;
  }

  .team-card summary {
    min-height: 22rem;
    padding: 1.35rem;
  }

  .team-card img {
    width: 9rem;
    height: 9rem;
    margin-bottom: 1.1rem;
  }

  .team-card__identity small {
    min-height: 2.8em;
  }

  .team-card__identity strong {
    min-height: 2.5em;
    margin: 0.35rem 0;
  }

  .team-card__identity span {
    min-height: 4.35em;
  }

  .team-card__action {
    margin-top: 1.1rem;
  }
}

@media (min-width: 1024px) {
  .team-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .team-grid > .team-card:last-child:nth-child(odd) {
    width: 100%;
    grid-column: auto;
  }
}

@media (max-width: 699px) {
  .team-card summary {
    display: grid;
    grid-template-columns: 5.25rem minmax(0, 1fr);
    height: auto;
    gap: 0.75rem;
    align-items: center;
    text-align: left;
  }

  .team-card img {
    width: 5.25rem;
    height: 5.25rem;
    margin: 0;
    grid-row: 1 / span 2;
  }

  .team-card__identity {
    gap: 0.15rem;
    align-items: flex-start;
  }

  .team-card__identity small,
  .team-card__identity strong,
  .team-card__identity span {
    place-items: start;
    text-align: left;
  }

  .team-card__identity small {
    font-size: 0.7rem;
    line-height: 1.3;
  }

  .team-card__identity strong {
    font-size: 1.05rem;
    line-height: 1.25;
  }

  .team-card__identity span {
    font-size: 0.85rem;
    line-height: 1.35;
  }

  .team-card__action {
    grid-column: 2;
    justify-self: start;
    margin-top: 0.2rem;
  }
}

@media (max-width: 1023px), (max-height: 600px) {
  .team-card[open] {
    display: block;
    padding: clamp(0.65rem, 3vw, 1rem);
    overflow-y: auto;
  }

  .team-card[open] summary,
  .team-card[open] .team-card__details {
    margin-bottom: 1rem;
  }

  .team-card[open] summary {
    display: grid;
    grid-template-columns: 4.5rem minmax(0, 1fr);
    min-height: 0;
    height: auto;
    gap: 0.75rem;
    padding: 0.75rem;
    align-items: center;
    text-align: left;
  }

  .team-card[open] summary img {
    width: 4.5rem;
    height: 4.5rem;
    margin: 0;
    border-width: 3px;
  }

  .team-card[open] .team-card__identity {
    gap: 0.15rem;
    align-items: flex-start;
  }

  .team-card[open] .team-card__identity small,
  .team-card[open] .team-card__identity strong,
  .team-card[open] .team-card__identity span {
    min-height: 0;
    place-items: start;
    text-align: left;
  }

  .team-card[open] .team-card__identity small {
    font-size: 0.68rem;
    line-height: 1.3;
  }

  .team-card[open] .team-card__identity strong {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.25;
  }

  .team-card[open] .team-card__identity span {
    font-size: 0.82rem;
    line-height: 1.35;
  }

  .team-card[open] .team-card__details {
    height: auto;
    max-height: none;
    padding: 1rem;
    overflow: visible;
    border-radius: 1rem;
  }

  .team-profile__header {
    padding-right: 2.5rem;
  }

  .team-profile section {
    padding: 0.9rem 0;
  }

  .team-profile h5 {
    line-height: 1.3;
  }

  .team-card__details h4 {
    margin: 0 3rem 0.75rem 0;
    font-size: clamp(1.35rem, 7vw, 1.75rem);
    line-height: 1.2;
  }

  .team-card[open] .team-card__details p {
    padding: 0.65rem 0;
    font-size: clamp(0.92rem, 3.8vw, 1rem);
  }

  .team-card__details p {
    grid-template-columns: 1.5rem minmax(0, 1fr);
    column-gap: 0.55rem;
  }

  .team-card__details i {
    width: 1.5rem;
  }
}

/* Márgenes de seguridad para retratos y contenido de las fichas técnicas. */
.team-card summary img {
  flex: 0 0 auto;
  transform-origin: center;
}

.team-card__identity,
.team-card__details,
.team-card__profile-section > div {
  min-width: 0;
}

.team-card__identity {
  overflow-wrap: anywhere;
}

.team-card[open] summary img.team-card__portrait--director,
.team-card[open] summary img.team-card__portrait--iratxe {
  transform: scale(1.05);
}

@media (max-width: 699px) {
  .team-card summary {
    grid-template-columns: 6.25rem minmax(0, 1fr);
    column-gap: 1rem;
  }

  .team-card summary img {
    justify-self: center;
  }
}

@media (max-width: 1023px), (max-height: 600px) {
  .team-card[open] summary {
    grid-template-columns: 5.25rem minmax(0, 1fr);
    column-gap: 0.9rem;
  }

  .team-card[open] summary img.team-card__portrait--director,
  .team-card[open] summary img.team-card__portrait--iratxe {
    transform: none;
  }

  .team-card__profile-section {
    padding-right: 0.15rem;
  }
}

/* Preguntas frecuentes */
.campus-faq {
  position: relative;
  z-index: 1;
  width: min(100% - (var(--page-gutter) * 2), 1000px);
  margin: 3rem auto 1rem;
  padding: 2rem 0;
}

.campus-faq__heading {
  position: relative;
  z-index: 10;
  max-width: 42rem;
  margin: 0 auto 1.75rem;
  text-align: center;
}

.faq-help-trigger {
  position: relative;
  z-index: 20;
  display: inline-block;
  margin-bottom: 1rem;
}

.faq-help-trigger > .hero-tag {
  gap: 0.4rem;
  margin: 0;
  cursor: pointer;
  list-style: none;
}

.faq-help-trigger > .hero-tag::-webkit-details-marker {
  display: none;
}

.faq-help-trigger > .hero-tag .fa-chevron-down {
  font-size: 0.7rem;
  transition: transform var(--transition);
}

.faq-help-trigger[open] > .hero-tag .fa-chevron-down {
  transform: rotate(180deg);
}

.faq-help-content {
  position: absolute;
  z-index: 30;
  top: calc(100% + 0.6rem);
  left: 50%;
  width: min(26rem, calc(100vw - (var(--page-gutter) * 2)));
  padding: 1.25rem;
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
  background: rgba(8, 19, 31, 0.96);
  box-shadow: var(--shadow);
  color: var(--text-light);
  text-align: left;
  transform: translateX(-50%);
}

.faq-help-content h3 {
  margin-bottom: 0.65rem;
  color: var(--white);
  font-size: 1rem;
}

.faq-help-content ul {
  display: grid;
  gap: 0.55rem;
  padding-left: 1.2rem;
  line-height: 1.55;
}

.faq-help-content a {
  color: var(--primary);
  font-weight: 600;
}

.campus-faq__heading h2 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.8rem, 6vw, 2.4rem);
}

.campus-faq__heading p,
.campus-faq__list p {
  color: var(--text-light);
  line-height: 1.65;
}

.campus-faq__list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.75rem;
}

@media (max-width: 599px) {
  .faq-help-content {
    width: min(22rem, calc(100vw - 2rem));
    padding: 1rem;
    font-size: 0.9rem;
  }

  .faq-help-content ul {
    gap: 0.45rem;
    padding-left: 1.05rem;
  }
}

.campus-faq__list details {
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
  background: var(--glass);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.campus-faq__list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.campus-faq__list summary::-webkit-details-marker {
  display: none;
}

.campus-faq__list summary::after {
  flex: 0 0 auto;
  color: var(--primary);
  content: "+";
  font-size: 1.5rem;
  line-height: 1;
}

.campus-faq__list details[open] summary::after {
  content: "−";
}

.campus-faq__list details p {
  padding: 0 1.25rem 1.25rem;
}

.campus-faq a {
  color: var(--primary);
  font-weight: 600;
}

.campus-faq--legal {
  width: 100%;
  margin-bottom: 0;
}

.legal-page {
  width: min(100% - (var(--page-gutter) * 2), 56rem);
  margin: 0 auto;
  padding: 7rem 0 4rem;
}

header > .language-picker {
  display: flex;
  width: fit-content;
  margin: 0.5rem auto 0;
}

@media (min-width: 768px) {
  header > .language-picker {
    margin: 0;
  }
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.25rem;
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
}

.legal-back:hover,
.legal-back:focus-visible {
  color: var(--primary);
}

.legal-content {
  padding: 1.5rem;
}
.legal-kicker {
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.legal-content h1 {
  margin: 0.4rem 0 0.75rem;
  font-size: clamp(2rem, 9vw, 3rem);
  line-height: 1.12;
  text-wrap: balance;
}
.legal-content h2 {
  margin-top: 2rem;
  margin-bottom: 0.7rem;
  font-size: clamp(1.2rem, 5vw, 1.5rem);
  line-height: 1.25;
}
.legal-content p,
.legal-content li {
  color: var(--text-light);
  line-height: 1.75;
}
.legal-content ul {
  padding-left: 1.25rem;
}
.legal-content li + li {
  margin-top: 0.5rem;
}
.legal-content a {
  color: var(--primary);
}
.legal-updated {
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}
.legal-table-wrap {
  overflow-x: auto;
  margin: 1rem 0;
}
.legal-content table {
  width: 100%;
  min-width: 40rem;
  border-collapse: collapse;
  color: var(--text-light);
  text-align: left;
}
.legal-content th,
.legal-content td {
  padding: 0.8rem;
  border: 1px solid var(--glass-border);
  vertical-align: top;
}
.legal-content th {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

@media (min-width: 768px) {
  .legal-content {
    padding: 2.5rem;
  }
}

/* Navegación y composición responsive: móvil → tablet → escritorio */
@media (max-width: 767px) {
  header {
    padding: 0.65rem var(--page-gutter);
  }

  .header-actions,
  nav {
    width: 100%;
  }

  nav {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.35rem 0.4rem;
    padding: 0 0.25rem;
    scroll-padding-inline: 0.25rem;
  }

  header nav a {
    display: inline-flex;
    min-height: 2.75rem;
    align-items: center;
  }

  .landing,
  .hero {
    min-height: auto;
    padding-top: 10.5rem;
    padding-bottom: 3rem;
  }

  .features,
  .areas,
  .project {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .support-card,
  .campus-card,
  .tutorial-card,
  #campus-footer {
    padding-right: clamp(1rem, 5vw, 1.5rem);
    padding-left: clamp(1rem, 5vw, 1.5rem);
  }

  .footer-column a,
  .support-card a {
    max-width: 100%;
  }
}

@media (max-width: 359px) {
  :root {
    --page-gutter: 1rem;
  }

  .logo {
    gap: 0.4rem;
    font-size: 0.95rem;
  }

  .logo img {
    width: 2.7rem;
    height: 2.7rem;
  }

  nav {
    gap: 0.65rem;
  }

  nav a {
    font-size: 0.8rem;
  }

  .landing h1,
  .hero h1 {
    font-size: clamp(1.85rem, 9vw, 2.35rem);
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  header {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1rem;
  }

  header .logo {
    width: 100%;
    justify-content: center;
  }

  .header-actions {
    justify-content: center;
    width: 100%;
  }

  nav {
    gap: 0.75rem;
  }

  .landing,
  .hero {
    padding-top: 9.5rem;
  }
}

@media (min-width: 1100px) {
  header {
    padding-right: clamp(1rem, 3vw, 3rem);
    padding-left: clamp(1rem, 3vw, 3rem);
  }

  header .logo img {
    width: 4.25rem;
    height: 4.25rem;
  }

  .header-actions {
    flex-wrap: nowrap;
  }

  nav {
    gap: 1.25rem;
  }

  .tutorial-card {
    grid-template-columns: minmax(18rem, 1.15fr) minmax(0, 1fr);
    grid-template-areas: "video content";
    align-items: center;
    padding: 1.75rem 2rem;
    text-align: left;
  }
}

@media (min-width: 700px) and (max-width: 1099px) {
  .tutorial-card {
    grid-template-columns: minmax(16rem, 1fr) minmax(0, 1fr);
    grid-template-areas: "video content";
    align-items: center;
    padding: 1.75rem 2rem;
    text-align: left;
  }
}

/* ==========================================================
   SISTEMA RESPONSIVE FINAL — MOBILE FIRST
   Base: móvil · 600px: tablet · 1024px: escritorio
========================================================== */

:root {
  --page-gutter: clamp(1rem, 4vw, 1.35rem);
}

body,
body > main,
header,
footer,
section,
.glass-card {
  min-width: 0;
  max-width: 100%;
}

header {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.65rem var(--page-gutter);
}

header .logo,
.header-actions,
nav {
  width: 100%;
}

.header-actions {
  flex-direction: column;
}

nav {
  justify-content: flex-start;
  gap: 0.35rem 0.8rem;
  margin-top: 0;
  padding-bottom: 0.15rem;
  overflow-x: auto;
}

nav a {
  min-height: 2.75rem;
  align-items: center;
}

.landing,
.hero {
  grid-template-columns: minmax(0, 1fr);
  min-height: auto;
  gap: 2rem;
  padding: calc(var(--site-header-height, 9rem) + 1.5rem) var(--page-gutter) 3rem;
  text-align: center;
}

.landing-text,
.hero-content {
  align-items: center;
}

.landing h1,
.hero h1 {
  font-size: clamp(1.9rem, 9vw, 2.8rem);
}

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

.btn-primary,
.btn-secondary,
.support-card .btn-primary,
.project .btn-primary {
  width: 100%;
}

.features,
.areas,
.project {
  padding-right: var(--page-gutter);
  padding-left: var(--page-gutter);
}

.features:not(#funciona),
.feature-grid,
.area-grid,
.classroom-grid,
.team-grid,
.footer-container {
  grid-template-columns: minmax(0, 1fr);
}

.tutorial-card {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "video" "content";
  padding: 1.25rem;
  text-align: center;
}

.accordion-header {
  padding: 1rem;
}

.classroom-grid {
  gap: 0.85rem;
  padding: 0 0.9rem 0.9rem;
}

.classroom-card,
.page-courses .classroom-card {
  display: flex;
  min-height: 0;
  padding: 1.2rem;
  text-align: center;
}

.campus-support,
.campus-team,
.campus-faq,
#campus-footer {
  width: min(calc(100% - (2 * var(--page-gutter))), var(--content-width, 75rem));
}

.support-card {
  grid-template-columns: minmax(0, 1fr);
  padding: 1.25rem;
  text-align: center;
}

.team-card > summary {
  display: grid;
  grid-template-columns: 6.25rem minmax(0, 1fr);
  min-height: 0;
  height: auto;
  gap: 0.35rem 1rem;
  padding: 1rem;
  text-align: left;
}

.team-card > summary img {
  width: 5.25rem;
  height: 5.25rem;
  margin: 0;
  grid-row: 1 / span 2;
  justify-self: center;
}

.team-card__identity,
.team-card__identity small,
.team-card__identity strong,
.team-card__identity span {
  min-height: 0;
  place-items: start;
  text-align: left;
}

.team-card__action {
  grid-column: 2;
  justify-self: start;
}

.team-card[open] {
  display: block;
  padding: 0.65rem;
  overflow-y: auto;
}

.team-card[open] > summary {
  grid-template-columns: 5.25rem minmax(0, 1fr);
  margin-bottom: 0.65rem;
  padding: 0.75rem;
}

.team-card[open] > summary img {
  width: 4.5rem;
  height: 4.5rem;
  transform: none;
}

.team-card[open] .team-card__details {
  height: auto;
  max-height: none;
  padding: 1rem;
  overflow: visible;
}

.team-card__details h4 {
  margin-right: 3rem;
  font-size: clamp(1.35rem, 7vw, 1.75rem);
}

.team-card__details p,
.team-card__profile-section {
  grid-template-columns: 1.5rem minmax(0, 1fr);
}

.team-card__profile-section ul {
  grid-template-columns: minmax(0, 1fr);
}

.footer-container {
  gap: 2rem;
}

@media (min-width: 600px) {
  :root {
    --page-gutter: clamp(1.5rem, 5vw, 3rem);
  }

  .hero-buttons {
    width: auto;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .btn-primary,
  .btn-secondary,
  .support-card .btn-primary,
  .project .btn-primary {
    width: auto;
  }

  .feature-grid,
  .area-grid,
  .team-grid,
  .footer-container,
  .page-courses .classroom-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .classroom-grid {
    padding: 0 1.5rem 1.5rem;
  }

  .team-card > summary {
    display: flex;
    min-height: 22rem;
    padding: 1.35rem;
    text-align: center;
  }

  .team-card > summary img {
    width: 9rem;
    height: 9rem;
    margin-bottom: 1.1rem;
  }

  .team-card__identity,
  .team-card__identity small,
  .team-card__identity strong,
  .team-card__identity span {
    place-items: center;
    text-align: center;
  }

  .team-card__action {
    align-self: center;
  }
}

@media (min-width: 768px) {
  .landing,
  .hero {
    min-height: 100svh;
    padding-top: calc(var(--site-header-height, 8rem) + 2rem);
  }

  .features:not(#funciona) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .features:not(#funciona) > :last-child:nth-child(odd) {
    width: calc((100% - 1rem) / 2);
    grid-column: 1 / -1;
    justify-self: center;
  }

  .support-card {
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 1.75rem 2rem;
    text-align: left;
  }

  .tutorial-card {
    grid-template-columns: minmax(16rem, 1fr) minmax(0, 1fr);
    grid-template-areas: "video content";
    text-align: left;
  }
}

@media (min-width: 1024px) {
  header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem clamp(1.5rem, 3vw, 3rem);
  }

  header .logo {
    width: auto;
    justify-content: flex-start;
  }

  .header-actions {
    width: auto;
    flex-direction: row;
  }

  nav {
    width: auto;
    justify-content: center;
    overflow: visible;
  }

  .landing,
  .hero {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(2.5rem, 5vw, 5rem);
    text-align: left;
  }

  .landing-text,
  .hero-content {
    align-items: flex-start;
  }

  .landing h1,
  .hero h1,
  .landing-text > p,
  .hero-content > p:not(.notice) {
    margin-right: 0;
    margin-left: 0;
  }

  .hero-buttons {
    justify-content: flex-start;
  }

  .feature-grid,
  .area-grid,
  .team-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .features:not(#funciona) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .features:not(#funciona) > :last-child:nth-child(odd) {
    width: auto;
    grid-column: auto;
  }

  .footer-container {
    grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr));
  }

  .team-card[open] {
    display: grid;
    grid-template-columns: minmax(15rem, 20rem) minmax(0, 1fr);
    gap: clamp(1rem, 4vw, 4rem);
    padding: clamp(1.25rem, 3vw, 2.75rem);
    overflow: hidden;
  }

  .team-card[open] > summary {
    display: flex;
    height: 100%;
    margin: 0;
    padding: clamp(1rem, 3vw, 2.5rem);
  }

  .team-card[open] > summary img {
    width: clamp(9rem, 18vw, 14rem);
    height: clamp(9rem, 18vw, 14rem);
    transform: scale(1.05);
  }

  .team-card[open] .team-card__identity strong {
    font-size: clamp(1.5rem, 2.2vw, 2rem);
    line-height: 1.25;
  }

  .team-card[open] .team-card__details {
    height: calc(100dvh - (2 * clamp(1.25rem, 3vw, 2.75rem)));
    max-height: calc(100dvh - (2 * clamp(1.25rem, 3vw, 2.75rem)));
    padding: clamp(1.5rem, 3vw, 2.5rem);
    overflow-y: auto;
  }
}
