:root {
  --ink: #19182d;
  --orange: #f07c2f;
  --orange-deep: #e96510;
  --peach: #f4d8c9;
  --paper: #f2f0f1;
  --paper-light: #faf9f9;
  --line: #dedbe0;
  --muted: #62616b;
  --white: #fff;
  --shadow: 0 16px 44px rgba(30, 25, 37, .08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.site-header { min-height: 84px; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); padding: 14px clamp(22px, 5vw, 85px); display: flex; align-items: center; justify-content: space-between; gap: 24px; position: relative; z-index: 5; }
.brand { display: inline-flex; align-items: center; gap: 15px; min-width: 0; }
.brand-logo { display: block; width: auto; height: 55px; max-width: 195px; object-fit: contain; }
.brand-divider { height: 29px; border-left: 1px solid #d2cdd1; }
.brand-name { font-size: 13px; color: #555263; white-space: nowrap; font-weight: 600; }
.site-nav { display: flex; align-items: center; gap: clamp(15px, 2.8vw, 40px); }
.site-nav a { font-size: 14px; font-weight: 600; transition: color .2s; }
.site-nav a:hover { color: var(--orange-deep); }
.hero { position: relative; min-height: 540px; overflow: hidden; isolation: isolate; }
.hero-backdrop { position: absolute; inset: 0; z-index: -2; background: linear-gradient(146deg, rgba(255,255,255,.44) 0 30%, transparent 30% 100%), linear-gradient(27deg, transparent 0 56%, rgba(255,255,255,.45) 56% 100%), #eeecef; }
.hero::before { content: ""; position: absolute; width: 290px; height: 240px; background: var(--orange); border-radius: 0 0 66% 0; top: -145px; left: -70px; opacity: .90; z-index: -1; }
.hero-ribbon { position: absolute; top: -22px; right: 3%; width: clamp(220px, 33vw, 550px); max-height: 160px; object-fit: contain; opacity: .85; transform: rotate(-5deg); pointer-events: none; }
.hero-inner { width: min(1240px, 88%); margin: 0 auto; padding: 95px 0 85px; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 40px; }
.eyebrow { display: block; color: var(--orange-deep); letter-spacing: 2.3px; font-size: 11px; font-weight: 800; }
h1, h2, h3, p { margin-top: 0; }
.hero h1 { font-size: clamp(43px, 5vw, 72px); line-height: 1.08; letter-spacing: -.045em; font-weight: 500; margin: 23px 0 24px; max-width: 690px; }
.hero h1 em { color: var(--orange-deep); font-style: normal; display: block; font-weight: 550; }
.accent-line { width: 110px; max-width: 40%; height: 3px; background: var(--orange); margin: 20px 0; }
.hero-copy > p { font-size: 18px; color: #4c4b56; line-height: 1.75; max-width: 530px; margin: 0 0 32px; }
.button { border: 0; border-radius: 10px; padding: 15px 22px; display: inline-flex; justify-content: center; align-items: center; gap: 12px; font-size: 14px; font-weight: 700; transition: transform .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--orange); color: var(--white); }
.button-primary:hover { background: var(--orange-deep); }
.hero-visual { height: 370px; display: grid; place-items: center; position: relative; }
.hero-halo { position: absolute; width: 350px; height: 350px; max-width: 92%; border: 1px solid #d8ced1; border-radius: 50%; background: rgba(255,255,255,.3); }
.hero-cube { position: relative; width: min(270px, 78%); max-height: 300px; object-fit: contain; filter: drop-shadow(0 20px 22px rgba(40,35,40,.14)); }
.hero-chip { position: absolute; background: #fff; box-shadow: var(--shadow); border-radius: 100px; font-size: 10px; letter-spacing: 1.3px; font-weight: 800; color: #595260; padding: 12px 17px; }
.hero-chip-top { top: 25px; right: 8px; }
.hero-chip-bottom { bottom: 30px; left: 5px; }
.hero-dots { position: absolute; bottom: 8px; right: 25px; display: grid; grid-template-columns: repeat(3, 13px); gap: 12px; transform: rotate(-12deg); }
.hero-dots i { width: 13px; height: 13px; background: var(--orange); border-radius: 50%; }
.hero-dots i:nth-child(2), .hero-dots i:nth-child(4) { opacity: .58; transform: scale(.65); }
.intro-strip { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 24px 15px; text-align: center; }
.intro-strip p { margin: 0 0 5px; letter-spacing: 1.2px; font-size: 18px; font-weight: 600; }
.intro-strip p span { color: var(--orange); margin: 0 8px; }
.intro-strip small { color: var(--muted); font-size: 13px; }
.section-wrap { width: min(1240px, 88%); margin-left: auto; margin-right: auto; }
.academy { padding-top: 100px; padding-bottom: 100px; }
.section-intro { display: grid; grid-template-columns: 1fr 310px; align-items: center; gap: 45px; margin-bottom: 32px; }
.section-intro h2, .projects h2, .guide h2 { font-weight: 500; font-size: clamp(31px, 3.2vw, 45px); letter-spacing: -.032em; line-height: 1.18; margin: 14px 0; }
.section-intro p, .projects p { color: var(--muted); font-size: 16px; line-height: 1.75; max-width: 700px; }


/* Academia: ilustración integrada */

.academy-illustration {
  display: block;
  width: 540px;
  max-width: none;
  max-height: none;
  height: auto;
  object-fit: contain;
  transform: translateX(-210px);
}


@media (max-width: 800px) {
  .academy-illustration {
    width: 100%;
    max-width: 420px;
    transform: none;
    margin: 0 auto;
  }
}



.learning-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.learning-card { display: flex; flex-direction: column; background: rgba(255,255,255,.78); border: 1px solid #e4dce0; border-radius: 18px; padding: 28px; min-height: 355px; transition: transform .2s, box-shadow .2s; }
.learning-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.learning-card.featured { background: #f4daca; }
.card-top { display: flex; align-items: center; gap: 15px; margin-bottom: 33px; }
.card-number { background: var(--orange); color: #fff; font-size: 17px; width: 47px; height: 47px; border-radius: 14px; display: grid; place-items: center; font-weight: 700; }
.card-label { color: #a64b17; font-size: 10px; font-weight: 800; letter-spacing: 1.3px; }
.learning-card h3 { font-size: 23px; font-weight: 650; line-height: 1.25; margin: 0 0 16px; }
.learning-card p { font-size: 14px; line-height: 1.7; color: #58545a; margin-bottom: 24px; }
.format-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; margin-bottom: 20px; }
.format-tags span { border: 1px solid #e0c8bc; border-radius: 5px; padding: 5px 8px; background: rgba(255,255,255,.45); font-size: 11px; color: #75625e; }
.text-link { align-self: flex-start; background: transparent; border: 0; padding: 5px 0; font-size: 13px; font-weight: 800; color: #bd5419; }
.text-link:hover { text-decoration: underline; }
.projects { display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 45px; border-radius: 24px; padding: 45px 6%; background: #f6e5dd; margin-bottom: 95px; }
.projects-illustration { justify-self: center; width: 100%; max-height: 290px; object-fit: contain; }
.pending-label { display: inline-flex; gap: 9px; align-items: center; color: #895744; background: rgba(255,255,255,.68); border-radius: 50px; padding: 10px 15px; font-size: 12px; font-weight: 650; }
.pending-label span { font-size: 9px; color: var(--orange); }
.guide { display: flex; align-items: center; gap: 25px; margin-bottom: 90px; background: #22213a; color: #fff; border-radius: 22px; padding: 38px; }
.guide-icon { width: 70px; height: 70px; flex: 0 0 70px; border-radius: 19px; background: #f7e2d7; color: #d05d1f; font-weight: 500; font-size: 45px; display: grid; place-items: center; }
.guide-copy { flex: 1; }
.guide h2 { color: #fff; margin: 9px 0 10px; font-size: clamp(24px, 2.6vw, 34px); }
.guide p { font-size: 14px; line-height: 1.65; color: #d7d2dc; margin: 0; }
.guide .button { flex: 0 0 auto; }
.site-footer { background: #fff; border-top: 1px solid var(--line); text-align: center; padding: 30px 20px; }
.footer-logo { height: 65px; max-width: 190px; object-fit: contain; }
.site-footer p { margin: 8px 0; font-size: 13px; color: #4c4852; }
.site-footer small { color: var(--muted); font-size: 11px; }
.notice { position: fixed; bottom: 22px; left: 22px; max-width: min(370px, calc(100vw - 44px)); background: #22213a; color: white; font-size: 13px; line-height: 1.5; padding: 16px 18px; border-radius: 12px; box-shadow: var(--shadow); z-index: 30; }
.chat-panel { position: fixed; z-index: 50; bottom: 25px; right: 25px; width: min(380px, calc(100vw - 40px)); background: #fff; border: 1px solid #ddd7dc; border-radius: 18px; box-shadow: 0 16px 55px rgba(20,15,25,.25); overflow: hidden; }
.chat-header { display: flex; justify-content: space-between; align-items: center; gap: 14px; background: #22213a; color: white; padding: 18px; }
.chat-header strong { display: block; font-size: 15px; }
.chat-header small { display: block; font-size: 11px; color: #d9d1da; margin-top: 4px; }
.chat-close { border: 0; background: none; color: #fff; font-size: 25px; line-height: 1; }
.chat-messages { padding: 18px; height: 275px; overflow: auto; display: flex; flex-direction: column; gap: 12px; }
.bot-message, .user-message { padding: 12px 14px; max-width: 88%; font-size: 13px; line-height: 1.55; border-radius: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.bot-message { align-self: flex-start; background: #f4efef; }
.user-message { align-self: flex-end; background: #e87934; color: #fff; }
.chat-form { display: flex; border-top: 1px solid #eee7ea; }
.chat-form input { flex: 1; min-width: 0; border: none; outline: none; padding: 16px; font-size: 13px; }
.chat-form button { border: 0; color: white; background: var(--orange); padding: 0 20px; }
@media (max-width: 950px) {
  .learning-grid { grid-template-columns: repeat(2, 1fr); }
  .learning-card:last-child { grid-column: 1 / -1; }
  .section-intro { grid-template-columns: 1fr 230px; }
  .hero-visual { height: 310px; }
  .hero-halo { width: 285px; height: 285px; }
  .guide { flex-wrap: wrap; }
  .guide .button { margin-left: 95px; }
}
@media (max-width: 680px) {
  .site-header { flex-wrap: wrap; padding: 12px 5%; }
  .site-nav { width: 100%; justify-content: flex-start; padding-bottom: 5px; }
  .brand-logo { height: 42px; max-width: 160px; }
  .brand-name { font-size: 11px; }
  .hero-inner { grid-template-columns: 1fr; padding: 62px 0 60px; }
  .hero-visual { height: 250px; }
  .hero-halo { width: 230px; height: 230px; }
  .hero-cube { width: 190px; }
  .hero-ribbon { opacity: .35; width: 220px; }
  .section-wrap { width: 90%; }
  .academy { padding-top: 64px; padding-bottom: 65px; }
  .section-intro { grid-template-columns: 1fr; gap: 15px; }
  .academy-illustration { max-height: 165px; justify-self: center; }
  .learning-grid { grid-template-columns: 1fr; }
  .learning-card:last-child { grid-column: auto; }
  .learning-card { min-height: auto; }
  .projects { grid-template-columns: 1fr; padding: 30px 7%; gap: 20px; margin-bottom: 55px; }
  .projects-illustration { max-height: 200px; }
  .guide { padding: 24px; margin-bottom: 55px; gap: 18px; }
  .guide-icon { width: 52px; height: 52px; flex-basis: 52px; font-size: 32px; }
  .guide-copy { flex-basis: calc(100% - 74px); }
  .guide .button { margin: 0; width: 100%; }
  .chat-panel { bottom: 12px; right: 12px; width: calc(100vw - 24px); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .button, .learning-card { transition: none; } }

/* Estado de contenido en desarrollo */

.draft-status {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;

  padding: 6px 12px;
  margin-bottom: 15px;

  background: #fff0e6;
  border: 1px solid #f2c5ab;
  border-radius: 20px;

  color: #b94f18;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

/* Tarjetas de Academia: interacción al pasar el cursor */

.learning-card,
.learning-card.featured {
  background: #ffffff;
  transition:
    background-color 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

/* Efecto al pasar el mouse */
.learning-card:hover,
.learning-card.featured:hover {
  background: #f4dacb;
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(35, 30, 45, 0.10);
}

/* También funciona al navegar con teclado */
.learning-card:focus-within {
  background: #f4dacb;
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(35, 30, 45, 0.10);
}

@media (prefers-reduced-motion: reduce) {
  .learning-card,
  .learning-card.featured {
    transition: none;
  }
}
