/* ===== VARIABLES Y BASE ===== */
:root {
  --forest: #173b35;
  --green: #2d7659;
  --mint: #e7efe8;
  --cream: #f7f6f0;
  --paper: #fffefa;
  --ink: #172b2a;
  --muted: #687572;
  --line: #e5e8e1;
  --gold: #d5a85c;
  --shadow: 0 22px 60px rgba(24, 48, 42, .11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
}

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

button {
  font: inherit;
}

.wrap {
  width: min(1160px, calc(100% - 48px));
  margin: auto;
}

/* ===== NAVEGACIÓN ===== */
header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 246, 240, .92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(23, 59, 53, .08);
}

.nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: Manrope, sans-serif;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -.5px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: white;
  background: var(--forest);
  font-size: 19px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  color: #52615c;
  font-size: 14px;
  font-weight: 600;
}

.nav-links a:hover {
  color: var(--green);
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 999px;
  padding: 13px 21px;
  background: var(--forest);
  color: white;
  font-weight: 700;
  font-size: 14px;
  transition: .2s;
  cursor: pointer;
}

.nav-cta:hover,
.button:hover {
  background: var(--green);
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 12px;
  padding: 9px 12px;
  color: var(--forest);
}

/* ===== HERO ===== */
.hero {
  padding: 78px 0 76px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  align-items: center;
  gap: 66px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 1.8px;
  font-size: 11px;
  font-weight: 800;
}

.eyebrow:before {
  content: "";
  width: 25px;
  height: 1px;
  background: var(--gold);
}

h1,
h2,
h3 {
  font-family: Manrope, sans-serif;
  letter-spacing: -1.5px;
  line-height: 1.12;
}

h1 {
  font-size: clamp(42px, 5vw, 64px);
  margin: 20px 0;
  max-width: 570px;
}

h1 span {
  color: var(--green);
}

.hero-copy {
  color: var(--muted);
  font-size: 17px;
  max-width: 490px;
  line-height: 1.8;
  margin: 0 0 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 13px;
}

.button.secondary {
  background: transparent;
  color: var(--forest);
  border: 1px solid #cbd5cc;
}

.button.secondary:hover {
  background: white;
}

.micro-note {
  margin-top: 24px;
  color: #7b8580;
  font-size: 12px;
}

/* ===== VISUAL / NOTEBOOK ===== */
.visual-wrap {
  position: relative;
  padding: 15px;
}

/* NOTEBOOK REALISTA */
.laptop {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 700px;
  margin: auto;
  perspective: 1200px;
}

/* La base plateada */
.laptop::after {
  content: "";
  display: block;
  width: 114%;
  height: 16px;
  background: linear-gradient(to bottom, #d1d5d4 0%, #a5abab 100%);
  margin-left: -7%;
  border-radius: 3px 3px 16px 16px;
  box-shadow: inset 0 2px 3px rgba(255, 255, 255, 0.4), 0 15px 35px rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 2;
}

/* El trackpad de la base */
.laptop::before {
  content: "";
  display: block;
  width: 18%;
  height: 6px;
  background: #7d8585;
  position: absolute;
  bottom: 5px;
  left: 41%;
  border-radius: 4px;
  z-index: 3;
}

/* El marco de la pantalla */
.video-card {
  position: relative;
  z-index: 1;
  background: #1a1c1f;
  padding: 14px 14px 20px 14px;
  border-radius: 16px 16px 0 0;
  box-shadow:
    inset 0 0 0 2px #33373b,
    inset 0 0 15px rgba(0, 0, 0, 0.8),
    0 10px 25px rgba(0, 0, 0, 0.2);
  transform: rotateX(2deg);
  transform-origin: bottom;
}

/* La pantalla pura (sin texto adentro) */
.video-screen {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  border-radius: 2px;
  background: #000;
  color: white;
}

.slide {
  display: none;
  height: 100%;
  position: relative;
}

.slide.active {
  display: block;
}

.video-ejercicio {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* Escena de cámara adaptada */
.camera-scene {
  height: 100%;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 30px;
  background: radial-gradient(circle at 50% 25%, #58796a, #1b342d 70%);
}

.portrait-placeholder {
  width: 82px;
  height: 82px;
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 30px;
  margin: 0 auto 15px;
  background: rgba(255, 255, 255, .08);
}

.camera-scene h3 {
  font-size: 24px;
  color: #fff;
  margin: 0 0 8px;
  letter-spacing: -.6px;
}

.camera-scene p {
  color: #d4e0d8;
  font-size: 13px;
  max-width: 290px;
  margin: 0 auto;
}

.video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.play-symbol {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .17);
  border: 1px solid rgba(255, 255, 255, .6);
  backdrop-filter: blur(8px);
  font-size: 20px;
  padding-left: 3px;
}

/* CONTROLES (ahora van debajo de la base, separados y limpios) */
.video-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0 0 0;
  color: var(--ink);
  font-size: 13px;
}

.video-bottom>div:nth-child(2) {
  text-align: center;
}

.video-bottom strong {
  color: var(--forest);
}

.video-bottom span {
  color: var(--muted);
  font-size: 12px;
}

.slide-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.arrow {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--forest);
  border: none;
  cursor: pointer;
  transition: .2s;
}

.arrow:hover {
  background: var(--green);
  transform: scale(1.05);
}

.dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 50%;
  background: #cbd5cc;
  padding: 0;
  cursor: pointer;
}

.dot.active {
  width: 22px;
  border-radius: 8px;
  background: var(--green);
}

#control-musica {
  background: var(--mint);
  color: var(--forest);
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: 99px;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  transition: .2s;
}

#control-musica:hover {
  background: #d5e5d8;
}

.video-hint {
  display: none;
}

/* ===== TRUST STRIP ===== */
.trust-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .45);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 23px 0;
}

.trust-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  color: #53635c;
  font-size: 13px;
  font-weight: 600;
}

.trust-icon {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--mint);
  color: var(--green);
}

/* ===== SECCIONES ===== */
section.content-section {
  padding: 88px 0;
}

.section-heading {
  max-width: 640px;
  margin-bottom: 38px;
}

.section-heading h2 {
  font-size: clamp(32px, 4vw, 45px);
  margin: 13px 0;
}

.section-heading p {
  color: var(--muted);
  margin: 0;
}

.subject-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.subject-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 27px;
}

.subject-card.featured {
  background: var(--forest);
  color: white;
  border-color: var(--forest);
}

.subject-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 23px;
}

.subject-tag {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--green);
  font-weight: 800;
}

.featured .subject-tag {
  color: #c9d9ce;
}

.subject-symbol {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--mint);
  color: var(--green);
  font-size: 19px;
}

.featured .subject-symbol {
  background: rgba(255, 255, 255, .12);
  color: #f3d49e;
}

.subject-card h3 {
  font-size: 25px;
  margin: 0 0 13px;
  letter-spacing: -.7px;
}

.subject-card p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

.featured p {
  color: #d0ddd5;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.chip {
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 6px 11px;
  color: #596862;
  font-size: 12px;
}

.featured .chip {
  border-color: rgba(255, 255, 255, .2);
  color: #e1eae4;
}

/* ===== MÉTODO ===== */
.method {
  background: #edf1e9;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.step {
  padding: 24px 0;
  border-top: 1px solid #cbd6ca;
}

.step-number {
  color: var(--green);
  font-family: Manrope, sans-serif;
  font-size: 13px;
  font-weight: 800;
}

.step h3 {
  font-size: 21px;
  margin: 15px 0 8px;
  letter-spacing: -.5px;
}

.step p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
  max-width: 290px;
}

/* ===== SERVICIOS ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service {
  padding: 34px 28px;
  border-radius: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  display: flex;
  flex-direction: column;
}

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

.service.featured-service {
  background: var(--forest);
  border-color: var(--forest);
  color: white;
}

.service.featured-service h3 {
  color: white;
}

.service.featured-service p {
  color: #c9d9ce;
}

.service.featured-service .service-icon {
  background: rgba(255, 255, 255, 0.1);
  color: var(--gold);
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--mint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
}

.service h3 {
  margin: 0 0 10px;
  font-size: 22px;
  letter-spacing: -0.5px;
}

.service p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
  line-height: 1.6;
}

/* ===== CONTACTO ===== */
.contact-band {
  background: var(--forest);
  color: white;
  border-radius: 28px;
  padding: 42px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}

.contact-band h2 {
  font-size: clamp(27px, 3vw, 38px);
  margin: 0 0 10px;
}

.contact-band p {
  margin: 0;
  color: #d0ddd5;
  font-size: 14px;
}

.contact-band .button {
  background: #f0d6a8;
  color: #243a31;
  white-space: nowrap;
}

/* ===== PIE ===== */
footer {
  padding: 28px 0;
  color: #77827c;
  font-size: 12px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

/* =========================================
   ESTILOS DEL ASISTENTE (CHAT)
   ========================================= */
#burbuja-chat {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--forest);
  color: white;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(23, 59, 53, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

#burbuja-chat:hover {
  transform: scale(1.05);
}

#panel-asistente {
  position: fixed;
  right: 24px;
  bottom: 96px;
  z-index: 50;
  width: 380px;
  max-width: calc(100vw - 48px);
  height: min(620px, calc(100vh - 120px));
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 20px 55px rgba(23, 59, 53, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: aparecer 0.3s ease;
}

#panel-asistente[hidden] {
  display: none;
}

@keyframes aparecer {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

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

.panel-header {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
}

.panel-header strong {
  font-size: 0.95rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel-header strong::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.acciones-panel {
  display: flex;
  align-items: center;
  gap: 10px;
}

#nueva-consulta {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.75rem;
  padding: 4px 8px;
  cursor: pointer;
  transition: .2s;
}

#nueva-consulta:hover {
  color: var(--green);
  border-color: var(--green);
}

#cerrar-asistente {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--muted);
  cursor: pointer;
}

#mensajes {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.9rem;
  background: #fafaf8;
}

.mensaje {
  padding: 10px 14px;
  border-radius: 12px;
  max-width: 85%;
  line-height: 1.45;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.mensaje.bot {
  background: white;
  border: 1px solid var(--line);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  color: var(--ink);
}

.mensaje.usuario {
  background: var(--green);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

#opciones-chat {
  padding: 0 16px 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  background: #fafaf8;
}

#opciones-chat[hidden] {
  display: none;
}

#opciones-chat p {
  width: 100%;
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0 0 4px;
}

#opciones-chat button {
  background: white;
  color: var(--green);
  border: 1px solid var(--line);
  padding: 7px 13px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

#opciones-chat button:hover {
  border-color: var(--green);
  background: var(--mint);
}

.opciones-contacto {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 16px;
  background: #fafaf8;
  border-top: 1px solid var(--line);
}

.opciones-contacto button {
  background: white;
  border: 2px solid var(--line);
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: left;
  font-family: inherit;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--forest);
}

.opciones-contacto button:first-child {
  background: var(--forest);
  color: white;
  border-color: var(--forest);
  box-shadow: 0 4px 12px rgba(23, 59, 53, 0.2);
}

.opciones-contacto button:first-child:hover {
  background: var(--green);
  border-color: var(--green);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(23, 59, 53, 0.3);
}

.opciones-contacto button:last-child:hover {
  border-color: var(--green);
  color: var(--green);
  background: var(--mint);
  transform: translateY(-2px);
}

#panel-asistente form {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line);
  background: white;
}

#panel-asistente form[hidden] {
  display: none;
}

#mensaje {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: .2s;
}

#mensaje:focus {
  border-color: var(--green);
}

#formulario button[type="submit"] {
  background: var(--green);
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: .2s;
}

#formulario button[type="submit"]:hover {
  background: var(--forest);
}

#formulario-contacto {
  flex-direction: column;
  gap: 8px;
  padding: 14px;
}

#formulario-contacto input[type="text"],
#formulario-contacto input[type="tel"] {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: .2s;
}

#formulario-contacto input:focus {
  border-color: var(--green);
}

#formulario-contacto label {
  display: flex;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--muted);
  align-items: flex-start;
  cursor: pointer;
}

#formulario-contacto label input {
  margin-top: 3px;
  accent-color: var(--green);
}

.mensaje.escribiendo {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 14px 16px;
}

.mensaje.escribiendo .punto-escritura {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
  display: inline-block;
  animation: rebotar 1.2s infinite ease-in-out both;
}

.mensaje.escribiendo .punto-escritura:nth-child(1) {
  animation-delay: 0s;
}

.mensaje.escribiendo .punto-escritura:nth-child(2) {
  animation-delay: 0.15s;
}

.mensaje.escribiendo .punto-escritura:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes rebotar {

  0%,
  80%,
  100% {
    transform: scale(0.6);
    opacity: 0.5;
  }

  40% {
    transform: scale(1);
    opacity: 1;
  }
}

#formulario-contacto input.input-error {
  border-color: #d9534f;
  background: #fff5f5;
}

#formulario-contacto input.input-error:focus {
  border-color: #d9534f;
  box-shadow: 0 0 0 3px rgba(217, 83, 79, 0.15);
}

/* ===== DESTACADO DE SERVICIOS ===== */
.servicios-destacados {
  background: linear-gradient(145deg, #173b35 0%, #122522 100%);
  border-radius: 40px;
  margin: 40px 20px;
  padding: 60px 0;
  box-shadow: 0 20px 50px rgba(23, 59, 53, 0.2);
}

.servicios-destacados .section-heading h2 {
  color: white;
}

.servicios-destacados .section-heading p {
  color: #c9d9ce;
}

.servicios-destacados .eyebrow {
  color: var(--gold);
}

.servicios-destacados .eyebrow::before {
  background: white;
}

.servicios-destacados .service {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  backdrop-filter: blur(10px);
  transition: all 0.5s ease;
}

.servicios-destacados .service:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--gold);
  transform: translateY(-8px);
}

.servicios-destacados .service h3 {
  color: white;
}

.servicios-destacados .service p {
  color: #c9d9ce;
}

.servicios-destacados .service-icon {
  background: rgba(213, 168, 92, 0.2);
  color: var(--gold);
  box-shadow: 0 0 20px rgba(213, 168, 92, 0.2);
}

/* EL NUEVO EFECTO: La tarjeta que tiene la clase active-card brilla */
.servicios-destacados .service.active-card {
  background: rgba(255, 255, 255, 0.12) !important;
  border: 2px solid var(--gold) !important;
  /* El !important se asegura de que gane */
  transform: scale(1.02) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Le sacamos el estilo fijo de "destacado" a la tarjeta de Facultad,
   porque ahora el destacado lo va a manejar el JS */
.servicios-destacados .service.featured-service {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transform: none;
}

/* ===== RESPONSIVE ===== */
@media(max-width:850px) {
  .hero {
    padding: 55px 0 60px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .hero-copy {
    max-width: 620px;
  }

  .visual-wrap {
    width: min(650px, 100%);
    margin: auto;
  }

  .nav-links {
    gap: 17px;
  }

  .nav-cta {
    display: none;
  }
}

/* ===== CAMBIOS SOLO DESDE MATERIAS HACIA ABAJO ===== */
@media(max-width: 620px) {
  .wrap {
    width: 100%;
    padding: 0 16px;
  }

  .nav {
    min-height: 68px;
  }

  /* Menú */
  .nav-links {
    display: none;
    position: absolute;
    top: 67px;
    left: 0;
    right: 0;
    padding: 18px 16px 22px;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
  }

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

  .nav-links a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
  }

  /* Hero y video */
  .hero {
    padding: 46px 0 48px;
  }

  h1 {
    font-size: 36px;
    line-height: 1.15;
  }

  .hero-copy {
    font-size: 15px;
  }

  .hero-actions {
    flex-direction: column;
    gap: 10px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .visual-wrap {
    padding: 0;
    margin-top: 10px;
  }

  /* Ajuste de la notebook en mobile */
  .laptop {
    max-width: 100%;
  }

  .laptop::after {
    width: 106%;
    margin-left: -3%;
    height: 12px;
    border-radius: 2px 2px 8px 8px;
  }

  .laptop::before {
    height: 3px;
    width: 20%;
    left: 40%;
    bottom: 4px;
  }

  .video-card {
    padding: 8px 8px 14px 8px;
    border-radius: 10px 10px 0 0;
  }

  .video-screen,
  .slide,
  .math-scene,
  .camera-scene {
    min-height: 200px;
  }

  .math-scene {
    padding: 20px 14px;
  }

  .equation {
    font-size: 24px;
  }

  /* CONTROLES EN EL CELU (Alineados y prolijos) */
  .video-bottom {
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 20px 0 0 0;
    text-align: center;
  }

  #control-musica {
    padding: 8px 18px;
    font-size: 13px;
    width: auto;
  }

  .video-bottom>div:nth-child(2) {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .slide-controls {
    width: 100%;
    justify-content: center;
    gap: 16px;
  }

  .dots {
    margin: 0 8px;
  }

  /* Trust strip */
  .trust-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 18px 0;
  }

  .trust-item {
    justify-content: flex-start;
  }

  /* Secciones generales */
  section.content-section {
    padding: 40px 0;
  }

  .section-heading {
    margin-bottom: 20px;
    max-width: 100%;
  }

  .section-heading h2 {
    font-size: 26px;
    margin: 10px 0;
    letter-spacing: -0.8px;
  }

  .section-heading p {
    font-size: 14px;
    line-height: 1.55;
  }

  .eyebrow {
    font-size: 10px;
    letter-spacing: 1.4px;
  }

  /* Materias */
  .subject-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .subject-card {
    padding: 20px;
    border-radius: 16px;
  }

  .subject-card h3 {
    font-size: 20px;
    margin-bottom: 8px;
  }

  .subject-card p {
    font-size: 13px;
  }

  .subject-top {
    margin-bottom: 14px;
  }

  .subject-symbol {
    width: 36px;
    height: 36px;
    font-size: 16px;
    border-radius: 11px;
  }

  .subject-tag {
    font-size: 10px;
  }

  .chips {
    margin-top: 14px;
    gap: 6px;
  }

  .chip {
    font-size: 11px;
    padding: 4px 9px;
  }

  /* Método (Carrusel) */
  .steps {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 12px;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .steps::-webkit-scrollbar {
    display: none;
  }

  .step {
    flex: 0 0 82%;
    scroll-snap-align: start;
    padding: 16px;
    background: var(--paper);
    border-radius: 16px;
    border: 1px solid var(--line);
    border-top: 1px solid var(--line);
  }

  .step h3 {
    font-size: 18px;
    margin: 10px 0 6px;
  }

  .step p {
    font-size: 13px;
  }

  .step-number {
    font-size: 11px;
  }

  /* Servicios (Carrusel) */
  .services-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 12px;
    padding: 10px 20px 20px 20px;
    margin: 0 -16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  /* Forzamos a que en celular TODAS las tarjetas arranquen sin el borde dorado */
  .servicios-destacados .service,
  .servicios-destacados .service.featured-service {
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    transform: none;
    background: rgba(255, 255, 255, 0.05);
  }

  .servicios-destacados .service.active-card {
    border: 2px solid var(--gold) !important;
    background: rgba(255, 255, 255, 0.12) !important;
    transform: scale(1.02) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  }

  .services-grid::-webkit-scrollbar {
    display: none;
  }

  .service {
    flex: 0 0 85%;
    scroll-snap-align: center;
    padding: 24px 20px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: border-color 0.3s ease, transform 0.3s ease;
  }

  .service.active-card {
    border: 2px solid var(--gold);
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  }

  .service-icon {
    width: 48px;
    height: 48px;
    font-size: 22px;
    margin-bottom: 16px;
    border-radius: 12px;
  }

  .service h3 {
    font-size: 19px;
    margin-bottom: 8px;
  }

  .service p {
    font-size: 13px;
  }

  .steps::after,
  .services-grid::after {
    content: "";
    flex: 0 0 10px;
  }

  /* Contacto */
  .contact-band {
    padding: 24px 20px;
    border-radius: 20px;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .contact-band h2 {
    font-size: 24px;
    margin-bottom: 6px;
  }

  .contact-band p {
    font-size: 13px;
  }

  .contact-band .button {
    width: 100%;
    padding: 12px 18px;
    font-size: 14px;
  }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    gap: 6px;
    text-align: center;
    font-size: 11px;
  }

  /* El chat del asistente */
  #panel-asistente {
    position: fixed;
    right: 10px;
    left: 10px;
    bottom: 10px;
    top: var(--chat-top, auto);
    width: auto;
    height: var(--chat-height, 85dvh);
    max-height: var(--chat-height, 85dvh);
    z-index: 100;
    display: flex;
    flex-direction: column;
  }

  .panel-header {
    flex-shrink: 0;
  }

  #mensajes {
    flex-grow: 1;
    overflow-y: auto;
  }

  #panel-asistente form,
  .opciones-contacto {
    flex-shrink: 0;
  }

  #burbuja-chat {
    right: 16px;
    bottom: 16px;
    width: 56px;
    height: 56px;
    font-size: 1.4rem;
  }
}