/* ── FUENTES LOCALES ── */
    @font-face { font-family: 'Lato'; src: url('lib/fonts/Lato2-Light.woff') format('woff'); font-weight: 300; font-style: normal; font-display: swap; }
    @font-face { font-family: 'Lato'; src: url('lib/fonts/Lato2-Regular.woff') format('woff'); font-weight: 400; font-style: normal; font-display: swap; }
    @font-face { font-family: 'Lato'; src: url('lib/fonts/Lato2-Italic.woff') format('woff'); font-weight: 400; font-style: italic; font-display: swap; }
    @font-face { font-family: 'Lato'; src: url('lib/fonts/Lato2-Bold.woff') format('woff'); font-weight: 700; font-style: normal; font-display: swap; }
    @font-face { font-family: 'Lato'; src: url('lib/fonts/Lato2-Black.woff') format('woff'); font-weight: 900; font-style: normal; font-display: swap; }

    @font-face { font-family: 'Merriweather'; src: url('lib/fonts/Merriweather-Light.woff') format('woff'); font-weight: 300; font-style: normal; font-display: swap; }
    @font-face { font-family: 'Merriweather'; src: url('lib/fonts/Merriweather-Regular.woff') format('woff'); font-weight: 400; font-style: normal; font-display: swap; }
    @font-face { font-family: 'Merriweather'; src: url('lib/fonts/Merriweather-Italic.woff') format('woff'); font-weight: 400; font-style: italic; font-display: swap; }
    @font-face { font-family: 'Merriweather'; src: url('lib/fonts/Merriweather-Bold.woff') format('woff'); font-weight: 700; font-style: normal; font-display: swap; }
    @font-face { font-family: 'Merriweather'; src: url('lib/fonts/Merriweather-Black.woff') format('woff'); font-weight: 900; font-style: normal; font-display: swap; }

/* ── SCROLL PROGRESS ── */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: #C62828;
  z-index: 9999;
  transition: width 0.1s linear;
  pointer-events: none;
}

 /* ── RESET (Rise exact) ── */
    *, *::before, *::after {
      border: 0;
      box-sizing: border-box;
      font: inherit;
      margin: 0;
      padding: 0;
    }

    /* ── VARIABLES ── */
    :root {
      --font-head: 'Lato', sans-serif;
      --font-body: 'Merriweather', Georgia, serif;
      --color-theme: #f7210c;
      --color-theme-decorative: #f7210c;
      --color-accent: #ba302a;
      --color-text: #1a1a1a;
      --color-text-muted: #555555;
      --color-bg: #ffffff;
      --color-bg-light: #f5f5f5;
      --color-border: #e0e0e0;
      --max-w: 78rem;
      --pad-block: 3rem;
      --pad-inline: 2.4rem;
    }

    /* Rise usa 62.5% → 1rem = 10px */
    html {
      font-size: 62.5%;
      scroll-behavior: smooth;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
    }

    body {
      background: var(--color-bg);
      color: var(--color-text);
      font-family: var(--font-body);
      font-size: 1.7rem;
      line-height: 2;
      overflow-x: hidden;
    }

    /* ── NAV ── */
    .rise-nav {
      position: fixed;
      top: 0; left: 0; right: 0;
      z-index: 200;
      height: 5.6rem;
      background: rgba(255,255,255,0.97);
      backdrop-filter: blur(8px);
      border-bottom: 1px solid var(--color-border);
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 2.4rem;
    }
    .rise-nav__logo {
      font-family: var(--font-head);
      font-weight: 900;
      font-size: 1.3rem;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--color-theme);
      text-decoration: none;
    }
    .rise-nav__cta {
      background: var(--color-theme);
      color: #fff;
      font-family: var(--font-head);
      font-weight: 700;
      font-size: 1.2rem;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      padding: 0.9rem 1.8rem;
      border-radius: 10rem;
      text-decoration: none;
      transition: background 0.2s;
    }
    .rise-nav__cta:hover { background: #d41b08; }

    /* ── BLOCKS ── */
    /* Offset por nav fijo */

    .block {
      padding-block: var(--pad-block);
      padding-inline: 0;
      width: 100%;
    }
    .block__inner {
      max-width: var(--max-w);
      margin-inline: auto;
      padding-inline: var(--pad-inline);
      width: 100%;
    }
    .maxwidth{
        max-width: 400px;
        transform: translateX(0%);
    }
    .block__inner--center {
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
    }

    /* ── IMAGE BLOCK ── */
    .block-image {
      padding-block: 0;
    }
    .block-image img {
      display: block;
      width: 100%;
      height: auto;
      object-fit: cover;
    }

    /* ── TEXT BLOCK ── */
    /* Heading h2 — Rise: font-family:head, fw:700, lh:1.25, 2.8rem→3.2rem */
    .block-h2 {
      font-family: var(--font-head) !important;
      font-weight: 600;
      line-height: 1.25;
      font-size: 2.8rem;
      padding-block: 0.8rem;
      padding-inline: 0;
      color: var(--color-text);
    }
    @media (min-width: 45em) {
      .block-h2 { font-size: 3.2rem; max-width: none; }

    }

    /* Heading h3 / subheading — Rise: 2.2rem→2.4rem */
    .block-h3 {
      font-family: var(--font-head) !important;
      font-weight: 700;
      line-height: 1.25;
      font-size: 2.2rem;
      padding-block: 0.8rem;
      padding-inline: 0;
      color: var(--color-text);
    }
    @media (min-width: 45em) {
      .block-h3 { font-size: 2.4rem; }
    }

    /* Para headings dentro de h2 que tienen <p> wrapper de Rise */
    .block-h2 p, .block-h3 p {
      font-family: inherit !important;
      font-size: inherit;
      font-weight: inherit;
      line-height: inherit;
      margin: 0;
    }

    /* Paragraph — Rise: font-family:body, 1.7rem, lh:2, margin-end:3.4rem */
    .block-para {
      font-family: var(--font-body);
      font-size: 1.7rem;
      line-height: 2;
      color: var(--color-text);
    }
    .block-para p {
      font-family: inherit;
      font-size: inherit;
      font-weight: inherit;
      line-height: inherit;
      margin-block-end: 3.4rem;
      overflow-wrap: break-word;
    }
    .block-para p:last-child { margin-block-end: 0; }

    /* ── IMPACT BLOCK (block-statement--b) ── */
    .block-impact {
      background: var(--color-bg);
    }
    .block-impact .block__inner {
      display: flex;
      flex-direction: column;
      align-items: center;
    }
    /* Divider top — Rise: bg=theme-decorative, h:.4rem, w:7.6rem */
    .impact__divider {
      background: var(--color-theme-decorative);
      height: 0.4rem;
      width: 7.6rem;
      margin-block-end: 0;
      flex-shrink: 0;
    }
    /* Quote — Rise: font-family:head, fw:200, 2.4rem→3.2rem, lh:1.5, text-align:center */
    .impact__quote {
      font-family: var(--font-head);
      font-weight: 400;
      font-size: 2.4rem;
      line-height: 1.5;
      text-align: center;
      padding-block-start: 3rem;
      color: var(--color-text);
      font-style: normal;
      max-width: 72rem;
    }
    @media (min-width: 45em) {
      .impact__quote { font-size: 3.2rem; }
    }
    .impact__quote p {
      font-family: inherit;
      font-size: inherit;
      font-weight: inherit;
      line-height: inherit;
      margin-block-end: 0.8em;
    }
    .impact__quote p:last-child { margin-block-end: 0; }

    /* ── LIST BLOCK ── */
    .block-list {
      background: var(--color-bg);
    }
    .rise-list {
      list-style: none;
      padding: 0;
      margin: 0;
    }
    /* Rise: item margin-bottom 3rem, position relative */
    .rise-list__item {
      margin-block-end: 3rem;
      position: relative;
      display: flex;
      align-items: flex-start;
    }
    .rise-list__item:last-child { margin-block-end: 0; }
    /* Rise: bullet — border-radius:50%, color:theme-decorative, h:1rem, w:1rem, absolute */
    .rise-list__bullet {
      display: block;
      flex-shrink: 0;
      width: 1rem;
      height: 1rem;
      border-radius: 50%;
      background: var(--color-theme-decorative);
      margin-top: 0.85em;
      margin-right: 2.5rem;
    }
    /* Rise: content — font-family:body, margin-inline-start:4rem (absorbed by flex) */
    .rise-list__content {
      font-family: var(--font-body);
      font-size: 1.7rem;
      line-height: 2;
      flex: 1;
      overflow-wrap: break-word;
    }

    /* ── BUTTON BLOCK ── */
    .block-buttons {
      background: #ffffff;
    }
    /* Rise btn: rounded (border-radius:10rem), uppercase, fw:700, Lato */
    .rise-btn {
      display: inline-block;
      font-family: var(--font-head);
      font-weight: 600;
      font-size: 1.2rem;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      text-decoration: none;
      color: #ffffff;
      padding: 1.2rem 7rem;
      border-radius: 10rem;
      margin: 0.6rem;
      transition: filter 0.2s, box-shadow 0.2s;
      cursor: pointer;
      line-height: 1.4;
    }

    /* ── ACCENT TEXT ── */
    .accent {
      color: var(--color-accent);
    }

    /* ── FOOTER ── */
    .site-footer {
      background: #1a1a1a;
      color: #fff;
      text-align: center;
      padding: 4rem 2.4rem;
      font-family: var(--font-head);
      font-size: 1.3rem;
      letter-spacing: 0.06em;
    }
    .site-footer a {
      color: var(--color-theme);
      text-decoration: none;
    }
    .site-footer__logo {
      font-size: 1.8rem;
      font-weight: 900;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--color-theme);
      display: block;
      margin-bottom: 1.6rem;
    }

    /* ── CONTACTO ── */
    #contacto {
      background: var(--color-bg-light);
      padding: 6rem 2.4rem;
      text-align: center;
    }
    #contacto h2 {
      font-family: var(--font-head);
      font-weight: 700;
      font-size: 2.8rem;
      margin-bottom: 1.6rem;
      color: var(--color-text);
    }
    #contacto p {
      font-size: 1.7rem;
      color: var(--color-text-muted);
      margin-bottom: 3rem;
    }
    #contacto .rise-btn {
      font-size: 1.6rem;
      padding: 1.6rem 4rem;
    }

    /* ── HERO HEADER ── */
    .hero-header {
      position: relative;
      padding-inline: var(--pad-inline);
      border-bottom: 2px solid #C62828;
      background: var(--color-bg);
    }
    .hero-header__inner {
      max-width: var(--max-w);
      margin-inline: auto;
    }
    .hero-header__lesson {
      font-family: var(--font-head);
      font-style: italic;
      font-size: 1.3rem;
      color: #555555;
      letter-spacing: 0.08em;
      margin-bottom: 2rem;
    }
    .hero-header__title {
      font-family: var(--font-head);
      font-weight: 600;
      font-size: 4rem;
      line-height: 1.1;
      color: #000000;
      text-transform: uppercase;
      margin-bottom: 3rem;
    }
    .hero-header__author {
      display: flex;
      align-items: center;
      gap: 1.2rem;
      margin-bottom: 1rem;
    }
    .hero-header__author-logo {
      width: 64px;
      height: auto;
      object-fit: contain;
      flex-shrink: 0;
    }
    .hero-header__author-name {
      font-family: var(--font-head);
      font-size: 1.6rem;
      font-weight: 700;
      color: #000000;
      letter-spacing: 0.04em;
    }
    .hero-header__line-short {
      display: block;
      width: 15rem;
      height: 0.5rem;
      background: #fe1010;
      border: none;
      margin: 0;
      margin-bottom: 8rem;
    }

    @media (max-width: 768px) {
      .hero-header__title { font-size: 2.5rem; }
      .hero-header__lesson { font-size: 1.1rem; }
      .hero-header__author-name { font-size: 1.3rem; }
      .hero-header__line-short { width: 5rem; margin-bottom: 4rem; height: 0.3rem; }
      .hero-header__author-logo { width: 36px; }
    }
    /* ── SCROLL REVEAL ── */
    .reveal {
      opacity: 0;
      transform: translateY(2rem);
      transition: opacity 0.6s ease, transform 0.6s ease;
    }
    .reveal.visible {
      opacity: 1;
      transform: none;
    }

    /* ── RESPONSIVE ── */
    @media (max-width: 48em) {
      .block-h2 { font-size: 2.4rem; }
      .block-h3 { font-size: 2rem; }
      .impact__quote { font-size: 2rem; }
      .rise-btn { font-size: 1.3rem; padding: 1.2rem 2.4rem; }

      /* Author arriba del título en mobile */
      .hero-header__inner {
        display: flex;
        flex-direction: column;
      }
      .hero-header__lesson  { order: 1; text-align: right; }
      .hero-header__author  { order: 2; margin-bottom: 1.6rem; }
      .hero-header__title   { order: 3; }
      .hero-header__line-short { order: 4; }

      /* Neutraliza los translateX que desbordan en mobile */
      .maxwidth {
        transform: none;
        max-width: 100%;
      }
      /* Anula los translateX inline de las secciones con max-width: 500px */
      .block__inner .block-h2[style*="translateX"],
      .block__inner .block-para[style*="translateX"] {
        transform: none !important;
        max-width: 100% !important;
      }
    }

    /* ── SUPERVISION GRID ── */
    .supervision-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px 40px;
      margin-top: 20px;
      font-size: 1.8rem;
    }
    @media (max-width: 48em) {
      .supervision-grid {
        grid-template-columns: 1fr;
        gap: 10px 0;
      }
    }

    /* ── TESTIMONIAL CARDS ── */
    .testimonial-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 24px;
    }
    @media (max-width: 48em) {
      .testimonial-grid {
        grid-template-columns: 1fr;
      }
    }