:root {
  --navy-950: #061624;
  --navy-900: #081e33;
  --navy-800: #0c2d4a;
  --navy-700: #123f66;
  --gold: #c9a227;
  --gold-soft: #e4c968;
  --cream: #f7f3e8;
  --paper: #fbfcfe;
  --ink: #102235;
  --muted: #617083;
  --line: #dfe6ee;
  --green: #1a9b70;
  --red: #bf4052;
  --shadow: 0 20px 60px rgba(4, 24, 43, .12);
  --radius: 26px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
button, a { font: inherit; }
a { color: inherit; }
img, video, canvas { max-width: 100%; }
.hidden { display: none !important; }
.hidden-canvas { position: fixed; left: -9999px; top: -9999px; width: 96px; height: 96px; }

.skip-link {
  position: fixed; z-index: 1000; top: 10px; left: 10px;
  transform: translateY(-150%); padding: 10px 14px; border-radius: 10px;
  background: white; color: var(--navy-900); text-decoration: none; font-weight: 700;
}
.skip-link:focus { transform: none; }

.section-shell, .nav-shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(6, 22, 36, .94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav-shell { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: white; text-decoration: none; }
.brand-mark {
  display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid rgba(228,201,104,.55);
  border-radius: 50%; color: var(--gold-soft); font-family: Georgia, serif; font-weight: 800; font-size: 12px; letter-spacing: .06em;
}
.brand-copy { display: flex; flex-direction: column; line-height: 1.25; }
.brand-copy strong { font-family: Georgia, "Times New Roman", serif; font-size: 16px; }
.brand-copy span { color: rgba(255,255,255,.63); font-size: 11px; margin-top: 3px; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a { color: rgba(255,255,255,.8); text-decoration: none; font-size: 14px; font-weight: 650; }
.main-nav a:hover { color: white; }
.main-nav .nav-cta { color: var(--navy-950); background: var(--gold-soft); padding: 10px 16px; border-radius: 999px; }
.menu-toggle { display: none; width: 42px; height: 42px; border: 0; background: transparent; cursor: pointer; }
.menu-toggle span { display: block; width: 22px; height: 2px; margin: 5px auto; background: white; }

.hero {
  min-height: min(760px, calc(100vh - 76px)); display: grid; grid-template-columns: 1.08fr .92fr;
  align-items: center; gap: 70px; padding-top: 80px; padding-bottom: 86px;
}
body::before {
  content: ""; position: absolute; pointer-events: none; left: 0; right: 0; top: 76px; height: 720px;
  background:
    radial-gradient(circle at 78% 24%, rgba(201,162,39,.18), transparent 26%),
    radial-gradient(circle at 12% 8%, rgba(18,63,102,.12), transparent 25%),
    linear-gradient(180deg, #f8fafc 0%, #fbfcfe 100%);
  z-index: -1;
}
.eyebrow { margin: 0 0 13px; color: var(--navy-700); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 800; }
.hero h1, .section-heading h2, .credits-section h2 {
  font-family: Georgia, "Times New Roman", serif; color: var(--navy-900); letter-spacing: -.025em;
}
.hero h1 { max-width: 760px; margin: 0; font-size: clamp(42px, 5.8vw, 75px); line-height: 1.02; }
.hero-lead { max-width: 650px; margin: 25px 0 0; font-size: clamp(17px, 1.6vw, 21px); color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 999px;
  padding: 13px 21px; text-decoration: none; font-weight: 760; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--navy-900); color: white; box-shadow: 0 10px 25px rgba(8,30,51,.2); }
.button-primary:hover { background: var(--navy-800); }
.button-secondary { background: white; border: 1px solid var(--line); color: var(--navy-900); }
.hero-note { margin: 18px 0 0; color: #7d8997; font-size: 13px; }

.hero-visual { min-height: 500px; display: grid; place-items: center; }
.face-orbit { position: relative; width: min(440px, 90vw); aspect-ratio: 1; display: grid; place-items: center; }
.orbit { position: absolute; border: 1px solid rgba(8,30,51,.14); border-radius: 50%; }
.orbit-a { inset: 5%; animation: spin 22s linear infinite; border-style: dashed; }
.orbit-b { inset: 16%; border-color: rgba(201,162,39,.35); }
.face-card {
  position: relative; width: 235px; aspect-ratio: .83; border-radius: 42% 42% 46% 46%;
  background: linear-gradient(150deg, #0c2d4a, #061624); box-shadow: var(--shadow), inset 0 0 0 1px rgba(255,255,255,.08);
  overflow: hidden;
}
.face-outline { position: absolute; inset: 28px 32px 30px; border: 2px solid rgba(228,201,104,.6); border-radius: 48% 48% 44% 44%; }
.eye { position: absolute; top: 39%; width: 30px; height: 8px; border-top: 3px solid var(--gold-soft); border-radius: 50%; }
.eye.left { left: 25%; } .eye.right { right: 25%; }
.mouth { position: absolute; left: 50%; bottom: 24%; width: 50px; height: 20px; transform: translateX(-50%); border-bottom: 3px solid var(--gold-soft); border-radius: 0 0 50% 50%; }
.scan-line { position: absolute; left: 12%; right: 12%; height: 1px; background: linear-gradient(90deg, transparent, #7fe8ce, transparent); box-shadow: 0 0 12px #7fe8ce; animation: scan 3.5s ease-in-out infinite; }
.emotion-chip { position: absolute; padding: 8px 12px; border-radius: 999px; background: rgba(255,255,255,.94); border: 1px solid var(--line); box-shadow: 0 8px 26px rgba(8,30,51,.1); color: var(--navy-800); font-size: 12px; font-weight: 800; }
.chip-1 { right: -1%; top: 24%; } .chip-2 { left: 0; bottom: 25%; } .chip-3 { right: 2%; bottom: 13%; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes scan { 0%,100% { top: 26%; opacity: .45; } 50% { top: 74%; opacity: 1; } }

.section { padding: 92px 0; }
.project-section { background: white; border-top: 1px solid #edf1f5; border-bottom: 1px solid #edf1f5; }
.section-heading { max-width: 780px; margin-bottom: 40px; }
.section-heading.compact { max-width: 720px; }
.section-heading h2 { margin: 0 0 16px; font-size: clamp(34px, 4vw, 50px); line-height: 1.08; }
.section-heading p:not(.eyebrow) { color: var(--muted); font-size: 17px; margin: 0; }
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.info-card { padding: 28px; min-height: 220px; border-radius: 22px; background: #f7f9fc; border: 1px solid #e8edf3; }
.card-number { display: inline-flex; margin-bottom: 36px; color: var(--gold); font-family: Georgia, serif; font-size: 14px; font-weight: 800; }
.info-card h3 { margin: 0 0 8px; color: var(--navy-900); font-size: 21px; }
.info-card p { margin: 0; color: var(--muted); }
.emotion-band { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 28px; }
.emotion-band span { padding: 11px 8px; border: 1px solid var(--line); border-radius: 12px; text-align: center; color: var(--navy-700); font-size: 12px; font-weight: 750; background: white; }

.how-section { background: var(--cream); }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { display: flex; gap: 17px; padding: 24px; background: rgba(255,255,255,.62); border: 1px solid rgba(8,30,51,.08); border-radius: 20px; }
.step > span { flex: 0 0 38px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--navy-900); color: white; font-weight: 800; }
.step h3 { margin: 2px 0 7px; color: var(--navy-900); font-size: 17px; }
.step p { margin: 0; color: var(--muted); font-size: 14px; }

.demo-section { background: #f6f8fb; }
.demo-shell { max-width: 1220px; }
.demo-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, .75fr); gap: 20px; align-items: stretch; }
.camera-card, .result-card { background: white; border: 1px solid #dfe6ee; border-radius: var(--radius); box-shadow: 0 18px 50px rgba(8,30,51,.08); overflow: hidden; }
.camera-topbar { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 0 18px; border-bottom: 1px solid #edf1f5; }
.camera-state { display: flex; align-items: center; gap: 9px; color: #526173; font-size: 13px; font-weight: 720; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: #b6c1cd; box-shadow: 0 0 0 4px rgba(182,193,205,.16); }
.status-dot.active { background: var(--green); box-shadow: 0 0 0 4px rgba(26,155,112,.14); }
.status-dot.error { background: var(--red); box-shadow: 0 0 0 4px rgba(191,64,82,.14); }
.ghost-button { border: 1px solid var(--line); background: white; border-radius: 999px; padding: 7px 13px; color: #4b5968; font-size: 12px; font-weight: 750; cursor: pointer; }
.ghost-button:disabled { opacity: .45; cursor: default; }
.camera-stage { position: relative; min-height: 510px; background: #071b2b; overflow: hidden; display: grid; place-items: center; }
.camera-stage video, .camera-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.camera-stage video { background: #071b2b; }
.camera-stage canvas { pointer-events: none; }
.camera-placeholder, .loading-panel { position: relative; z-index: 4; width: min(410px, calc(100% - 32px)); padding: 34px; border-radius: 22px; text-align: center; background: rgba(7,27,43,.82); border: 1px solid rgba(255,255,255,.12); color: white; backdrop-filter: blur(12px); }
.camera-placeholder h3 { margin: 14px 0 6px; font-size: 22px; }
.camera-placeholder p { margin: 0 0 20px; color: rgba(255,255,255,.66); }
.camera-placeholder .button-primary { background: var(--gold-soft); color: var(--navy-950); box-shadow: none; }
.camera-icon { width: 66px; height: 48px; margin: 0 auto; border: 2px solid rgba(255,255,255,.78); border-radius: 13px; position: relative; }
.camera-icon::after { content:""; position:absolute; width:16px; height:16px; border:2px solid var(--gold-soft); border-radius:50%; left:50%; top:50%; transform:translate(-50%,-50%); }
.camera-icon::before { content:""; position:absolute; width:13px; height:10px; border-radius:4px 4px 0 0; border:2px solid rgba(255,255,255,.78); border-bottom:0; top:-9px; left:12px; }
.loading-panel { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.loading-panel small { color: rgba(255,255,255,.62); }
.spinner { width: 31px; height: 31px; border-radius: 50%; border: 3px solid rgba(255,255,255,.22); border-top-color: var(--gold-soft); animation: spin 1s linear infinite; margin-bottom: 6px; }
.camera-message { margin: 14px 16px 16px; padding: 12px 14px; border-radius: 12px; background: #fff0f2; color: #8e2d3b; border: 1px solid #f1c9cf; font-size: 13px; }

.result-card { padding: 27px; display: flex; flex-direction: column; }
.result-kicker { margin: 0; color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.result-name { margin-top: 8px; color: var(--navy-900); font-family: Georgia, serif; font-size: clamp(34px, 4vw, 50px); line-height: 1; }
.result-name.accepted { color: #0d7655; }
.result-name.uncertain { color: #9a6b05; }
.result-confidence { margin-top: 9px; color: var(--muted); font-size: 13px; }
.confidence-meter { height: 7px; background: #edf1f5; overflow: hidden; border-radius: 999px; margin: 15px 0 24px; }
.confidence-meter span { display: block; height: 100%; width: 0; background: var(--gold); border-radius: inherit; transition: width .2s ease; }
.probability-list { display: grid; gap: 12px; }
.probability-row { display: grid; grid-template-columns: 86px 1fr 38px; gap: 10px; align-items: center; font-size: 12px; color: #566576; }
.probability-row > div { height: 7px; border-radius: 99px; background: #eef2f5; overflow: hidden; }
.probability-row i { display: block; width: 0; height: 100%; border-radius: 99px; background: #7f95aa; transition: width .2s ease; }
.probability-row strong { font-variant-numeric: tabular-nums; text-align: right; font-size: 11px; }
.probability-row.top { color: var(--navy-900); font-weight: 800; }
.probability-row.top i { background: var(--gold); }
.result-help { margin: auto 0 0; padding-top: 22px; color: #778493; font-size: 12px; }
.notice { margin-top: 25px; padding: 22px 24px; border-left: 4px solid var(--gold); border-radius: 0 16px 16px 0; background: #fffaf0; }
.notice strong { color: var(--navy-900); }
.notice p { margin: 6px 0 0; color: #677383; font-size: 13px; }
.privacy-note { display: flex; gap: 13px; align-items: flex-start; margin-top: 14px; padding: 17px 20px; background: white; border: 1px solid #dfe6ee; border-radius: 16px; }
.privacy-icon { flex: 0 0 28px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: #e8f7f1; color: #137a58; font-weight: 900; }
.privacy-note strong { color: var(--navy-900); }
.privacy-note p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }

.credits-section { background: var(--navy-950); color: white; }
.credits-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 80px; align-items: start; }
.credits-section .eyebrow { color: var(--gold-soft); }
.credits-section h2 { margin: 0; color: white; font-size: clamp(28px, 3.6vw, 45px); line-height: 1.14; }
.credits-list { display: grid; gap: 24px; }
.credits-list p { margin: 0; color: rgba(255,255,255,.82); }
.credits-list span { display: block; color: var(--gold-soft); text-transform: uppercase; font-size: 10px; letter-spacing: .14em; font-weight: 800; margin-bottom: 5px; }
.site-footer { background: #04111d; color: rgba(255,255,255,.54); border-top: 1px solid rgba(255,255,255,.08); }
.footer-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 12px; }
.footer-inner a { color: var(--gold-soft); text-decoration: none; }

.reveal { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .section-shell, .nav-shell { width: min(100% - 28px, 760px); }
  .menu-toggle { display: block; }
  .main-nav {
    position: absolute; top: 76px; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0;
    padding: 10px 14px 16px; background: var(--navy-950); border-top: 1px solid rgba(255,255,255,.08);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 13px 12px; }
  .main-nav .nav-cta { margin-top: 5px; text-align: center; }
  .hero { grid-template-columns: 1fr; gap: 20px; min-height: auto; padding-top: 64px; padding-bottom: 64px; }
  .hero-copy { text-align: center; }
  .hero h1, .hero-lead { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { min-height: 360px; }
  .face-orbit { width: 360px; }
  .project-grid, .steps-grid { grid-template-columns: 1fr; }
  .info-card { min-height: auto; }
  .card-number { margin-bottom: 18px; }
  .emotion-band { grid-template-columns: repeat(3, 1fr); }
  .demo-grid { grid-template-columns: 1fr; }
  .camera-stage { min-height: min(72vw, 520px); }
  .result-card { min-height: 520px; }
  .credits-grid { grid-template-columns: 1fr; gap: 42px; }
}

@media (max-width: 560px) {
  .section { padding: 70px 0; }
  .brand-copy span { display: none; }
  .brand-mark { width: 44px; height: 44px; }
  .nav-shell { min-height: 66px; }
  .main-nav { top: 66px; }
  body::before { top: 66px; }
  .hero { padding-top: 46px; }
  .hero h1 { font-size: 42px; }
  .hero-actions { display: grid; }
  .button { width: 100%; }
  .hero-visual { min-height: 310px; }
  .face-orbit { width: 300px; }
  .face-card { width: 180px; }
  .emotion-chip { font-size: 10px; }
  .section-heading h2 { font-size: 34px; }
  .emotion-band { grid-template-columns: repeat(2, 1fr); }
  .camera-stage { min-height: 430px; }
  .camera-placeholder, .loading-panel { padding: 26px 18px; }
  .result-card { padding: 22px 18px; min-height: 500px; }
  .probability-row { grid-template-columns: 78px 1fr 35px; }
  .footer-inner { min-height: 88px; flex-direction: column; justify-content: center; text-align: center; gap: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}


/* TESIS-CSS-INICIO */

/* =========================================================
   CONTENIDO ACADÉMICO
   Estos estilos no modifican la lógica ni los elementos
   funcionales de la detección de emociones.
   ========================================================= */

.tesis-shell {
  --tesis-navy: #071a2b;
  --tesis-navy-2: #0d2940;
  --tesis-blue: #174969;
  --tesis-gold: #c9a96e;
  --tesis-gold-soft: #ead9b8;
  --tesis-paper: #f7f5f0;
  --tesis-white: #ffffff;
  --tesis-text: #17232c;
  --tesis-muted: #65717a;
  --tesis-border: rgba(7, 26, 43, 0.11);

  width: min(1180px, calc(100% - 32px));
  margin: 42px auto 74px;
  color: var(--tesis-text);
  font-family: inherit;
}


/* HERO */

.tesis-hero {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  padding: clamp(42px, 7vw, 86px);
  color: var(--tesis-white);
  background:
    radial-gradient(
      circle at 85% 15%,
      rgba(201, 169, 110, .24),
      transparent 29%
    ),
    radial-gradient(
      circle at 5% 95%,
      rgba(70, 138, 178, .19),
      transparent 28%
    ),
    linear-gradient(
      135deg,
      var(--tesis-navy),
      var(--tesis-navy-2)
    );
  box-shadow: 0 30px 70px rgba(7, 26, 43, .19);
}

.tesis-hero::after {
  content: "";
  position: absolute;
  top: -90px;
  right: -90px;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 50%;
}

.tesis-hero__content {
  position: relative;
  z-index: 1;
  max-width: 880px;
}

.tesis-eyebrow,
.tesis-kicker {
  display: block;
  margin: 0 0 12px;
  color: var(--tesis-gold-soft);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.tesis-hero h1 {
  margin: 0 0 24px;
  max-width: 900px;
  color: #fff;
  font-size: clamp(2.35rem, 6vw, 5rem);
  line-height: .98;
  letter-spacing: -.045em;
}

.tesis-hero p {
  max-width: 820px;
  margin: 0 0 16px;
  color: rgba(255, 255, 255, .80);
  font-size: clamp(1rem, 1.6vw, 1.14rem);
  line-height: 1.75;
}

.tesis-hero .tesis-hero__lead {
  color: #fff;
  font-size: clamp(1.08rem, 1.8vw, 1.28rem);
}

.tesis-emociones {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 28px 0 34px;
}

.tesis-emociones span {
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  color: rgba(255, 255, 255, .92);
  background: rgba(255, 255, 255, .07);
  backdrop-filter: blur(8px);
}


/* BOTONES */

.tesis-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  color: var(--tesis-navy);
  background: var(--tesis-gold-soft);
  font-weight: 800;
  text-decoration: none;
  transition:
    transform .18s ease,
    box-shadow .18s ease,
    background .18s ease;
}

.tesis-button:hover {
  transform: translateY(-2px);
  background: #f3e4c5;
  box-shadow: 0 12px 25px rgba(0, 0, 0, .17);
}

.tesis-button--dark {
  color: #fff;
  background: var(--tesis-navy);
}

.tesis-button--dark:hover {
  background: var(--tesis-blue);
}


/* ESTADÍSTICAS */

.tesis-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 18px 0 0;
}

.tesis-stat {
  display: flex;
  flex-direction: column;
  min-height: 128px;
  justify-content: center;
  padding: 24px;
  border: 1px solid var(--tesis-border);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(7, 26, 43, .055);
}

.tesis-stat strong {
  color: var(--tesis-navy);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1;
  letter-spacing: -.04em;
}

.tesis-stat span {
  margin-top: 8px;
  color: var(--tesis-muted);
  font-size: .9rem;
}


/* SECCIONES */

.tesis-section {
  margin-top: 22px;
  padding: clamp(32px, 5vw, 62px);
  border: 1px solid var(--tesis-border);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(7, 26, 43, .055);
  scroll-margin-top: 100px;
}

.tesis-section--soft {
  background:
    linear-gradient(
      145deg,
      #fbfaf7,
      #f3f0e9
    );
}

.tesis-section--dark {
  color: #fff;
  background:
    linear-gradient(
      135deg,
      var(--tesis-navy),
      #113654
    );
  border-color: transparent;
}

.tesis-section--dark .tesis-kicker {
  color: var(--tesis-gold-soft);
}

.tesis-section--dark h2 {
  color: #fff;
}

.tesis-section--dark .tesis-prose p {
  color: rgba(255, 255, 255, .80);
}

.tesis-section__heading {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 34px;
}

.tesis-number {
  display: inline-grid;
  place-items: center;
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  border-radius: 15px;
  color: var(--tesis-navy);
  background: var(--tesis-gold-soft);
  font-weight: 900;
}

.tesis-section__heading h2 {
  margin: 0;
  font-size: clamp(1.85rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -.035em;
}

.tesis-section__heading .tesis-kicker {
  margin-bottom: 7px;
  color: #947340;
}


/* TEXTO */

.tesis-prose {
  max-width: 850px;
}

.tesis-prose--wide {
  max-width: 960px;
}

.tesis-prose p,
.tesis-card p,
.tesis-process p,
.tesis-objective p,
.tesis-objective-main p,
.tesis-result-note p,
.tesis-social blockquote {
  color: #3d4a53;
  font-size: 1rem;
  line-height: 1.78;
}

.tesis-prose p + p,
.tesis-card p + p {
  margin-top: 17px;
}


/* OBJETIVOS */

.tesis-objective-main {
  padding: 28px;
  border-left: 5px solid var(--tesis-gold);
  border-radius: 0 18px 18px 0;
  background: #fff;
}

.tesis-objective-main > span,
.tesis-card__label {
  display: block;
  margin-bottom: 10px;
  color: #947340;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.tesis-objective-main p {
  margin: 0;
  color: var(--tesis-navy);
  font-size: clamp(1.08rem, 2vw, 1.3rem);
  font-weight: 650;
}

.tesis-subtitle {
  margin: 34px 0 18px;
  color: var(--tesis-navy);
  font-size: 1.08rem;
}

.tesis-objectives-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.tesis-objective {
  position: relative;
  min-height: 180px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--tesis-border);
  border-radius: 19px;
  background: rgba(255, 255, 255, .86);
}

.tesis-objective > span {
  display: block;
  margin-bottom: 15px;
  color: var(--tesis-gold);
  font-size: 1.25rem;
  font-weight: 900;
}

.tesis-objective p {
  margin: 0;
}


/* METODOLOGÍA */

.tesis-two-columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.tesis-card,
.tesis-process {
  padding: 28px;
  border: 1px solid var(--tesis-border);
  border-radius: 20px;
  background: #fbfcfd;
}

.tesis-card p:last-child,
.tesis-process p:last-child {
  margin-bottom: 0;
}

.tesis-process {
  margin-top: 16px;
}

.tesis-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
}

.tesis-flow span {
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--tesis-navy);
  background: #eef3f6;
  font-size: .85rem;
  font-weight: 750;
}

.tesis-flow b {
  color: var(--tesis-gold);
}


/* MODELOS */

.tesis-models {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.tesis-model {
  min-height: 175px;
  padding: 22px;
  border: 1px solid var(--tesis-border);
  border-radius: 20px;
  background:
    linear-gradient(
      180deg,
      #fff,
      #f8fafb
    );
}

.tesis-model span {
  display: block;
  margin-bottom: 26px;
  color: #947340;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.tesis-model strong {
  display: block;
  color: var(--tesis-navy);
  font-size: 1.08rem;
  line-height: 1.35;
}

.tesis-model small {
  display: block;
  margin-top: 8px;
  color: var(--tesis-muted);
  line-height: 1.4;
}


/* TABLA */

.tesis-table-intro {
  margin: -8px 0 22px;
  color: var(--tesis-muted);
}

.tesis-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--tesis-border);
  border-radius: 18px;
  background: #fff;
}

.tesis-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.tesis-table th,
.tesis-table td {
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1px solid #e8ecef;
}

.tesis-table th {
  color: #fff;
  background: var(--tesis-navy);
  font-size: .82rem;
  letter-spacing: .04em;
}

.tesis-table tbody tr:last-child td {
  border-bottom: 0;
}

.tesis-table tbody tr:hover {
  background: #faf8f3;
}

.tesis-table td {
  color: #3e4b54;
  font-size: .92rem;
}

.tesis-table td strong {
  color: var(--tesis-navy);
}

.tesis-result-note {
  margin-top: 18px;
  padding: 20px 22px;
  border-radius: 16px;
  background: rgba(201, 169, 110, .15);
}

.tesis-result-note p {
  margin: 0;
  color: #594b35;
}


/* ROBÓTICA SOCIAL */

.tesis-social blockquote {
  margin: 0;
  padding: 28px 30px;
  border-left: 5px solid var(--tesis-gold);
  border-radius: 0 18px 18px 0;
  color: var(--tesis-navy);
  background: #faf8f3;
  font-size: clamp(1.03rem, 2vw, 1.2rem);
}

.tesis-final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--tesis-border);
}

.tesis-final-cta p {
  margin: 0;
  color: var(--tesis-navy);
  font-weight: 750;
}


/* RESPONSIVE */

@media (max-width: 980px) {
  .tesis-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .tesis-models {
    grid-template-columns: repeat(2, 1fr);
  }

  .tesis-model:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .tesis-shell {
    width: min(100% - 20px, 1180px);
    margin-top: 22px;
  }

  .tesis-hero,
  .tesis-section {
    border-radius: 20px;
  }

  .tesis-hero {
    padding: 34px 24px;
  }

  .tesis-section {
    padding: 30px 22px;
  }

  .tesis-two-columns,
  .tesis-objectives-grid {
    grid-template-columns: 1fr;
  }

  .tesis-section__heading {
    gap: 13px;
  }

  .tesis-number {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .tesis-final-cta {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .tesis-stats,
  .tesis-models {
    grid-template-columns: 1fr;
  }

  .tesis-model:last-child {
    grid-column: auto;
  }

  .tesis-stat {
    min-height: 105px;
  }

  .tesis-hero h1 {
    font-size: 2.35rem;
  }

  .tesis-button {
    width: 100%;
  }

  .tesis-flow b {
    display: none;
  }

  .tesis-flow span {
    width: 100%;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tesis-button {
    transition: none;
  }
}

/* TESIS-CSS-FIN */
