/*
Theme Name: MC Mentoría
Theme URI: https://mcmentoria.com/
Author: MC Mentoría
Description: Theme a medida para MC Mentoría — formación en oratoria y comunicación para empresas en Málaga.
Version: 1.0.2
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: mcmentoria
*/
/* ── @FONT-FACE (self-hosted) ── */
    @font-face {
      font-family: "Inter";
      font-style: normal;
      font-weight: 400 700;
      font-display: swap;
      src: url(assets/fonts/inter-latin-variable.woff2) format("woff2");
      unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
    }
    @font-face {
      font-family: "Playfair Display";
      font-style: normal;
      font-weight: 700 800;
      font-display: swap;
      src: url(assets/fonts/playfair-latin-variable.woff2) format("woff2");
      unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
    }
    @font-face {
      font-family: "Playfair Display";
      font-style: italic;
      font-weight: 700;
      font-display: swap;
      src: url(assets/fonts/playfair-latin-italic-700.woff2) format("woff2");
      unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
    }


    /* ── RESET & BASE ── */
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; font-size: 16px; }

    :root {
      --cream:   #FAF8F5;
      --white:   #FFFFFF;
      --ink:     #111110;
      --ink2:    #2D2D2C;
      --ink3:    #4A4A48;
      --subtle:  #767670;
      --line:    #E8E4DF;
      --red:     #E50813;
      --red-bg:  #FDEBEC;
      --red-mid: #96010F;
      --gold:    #A8853A;
      --section: #F3F0EC;

      --font-head: 'Playfair Display', Georgia, serif;
      --font-body: 'Inter', system-ui, sans-serif;

      --max: 1200px;
      --gap: 60px;
    }

    html, body { margin: 0; padding: 0; overflow-x: hidden; }
    body {
      background: var(--white);
      color: var(--ink);
      font-family: var(--font-body);
      line-height: 1.65;
      -webkit-font-smoothing: antialiased;
      width: 100%;
    }

    img { max-width: 100%; display: block; }
    a { color: inherit; }

    /* ── SCROLL BAR ── */
    ::-webkit-scrollbar { width: 4px; }
    ::-webkit-scrollbar-track { background: var(--cream); }
    ::-webkit-scrollbar-thumb { background: var(--red); border-radius: 2px; }

    /* ── UTILIDADES ── */
    .container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gap); }
    .eyebrow {
      display: inline-block;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 2.5px;
      text-transform: uppercase;
      color: var(--red);
      margin-bottom: 18px;
    }
    .section-h2 {
      font-family: var(--font-head);
      font-size: clamp(30px, 3.8vw, 50px);
      font-weight: 800;
      line-height: 1.12;
      letter-spacing: -0.5px;
      color: var(--ink);
    }
    .section-lead {
      font-size: 17px;
      color: var(--ink3);
      line-height: 1.75;
      max-width: 580px;
    }
    .btn-red {
      display: inline-flex; align-items: center; gap: 10px;
      background: var(--red);
      color: #fff;
      padding: 15px 30px;
      border-radius: 4px;
      font-weight: 700;
      font-size: 15px;
      text-decoration: none;
      transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
      letter-spacing: 0.2px;
    }
    .btn-red:hover { background: var(--red-mid); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(229,8,19,0.25); }
    .btn-outline {
      display: inline-flex; align-items: center; gap: 10px;
      color: var(--ink);
      padding: 15px 30px;
      border-radius: 4px;
      font-weight: 600;
      font-size: 15px;
      text-decoration: none;
      border: 1.5px solid var(--line);
      transition: border-color 0.2s, background 0.2s;
    }
    .btn-outline:hover { border-color: var(--ink3); background: var(--cream); }

    /* ── NAV ── */
    #nav {
      position: fixed;
      top: 0; left: 0; right: 0;
      z-index: 999;
      background: #fff;
      border-bottom: 1px solid var(--line);
      transition: box-shadow 0.3s;
    }
    #nav.scrolled { box-shadow: 0 2px 16px rgba(0,0,0,0.07); }
    #nav-inner {
      max-width: var(--max);
      margin: 0 auto;
      padding: 12px var(--gap);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 32px;
    }
    #nav-logo {
      display: block;
      text-decoration: none;
      line-height: 0;
    }
    #nav-logo img {
      height: 46px;
      width: auto;
      display: block;
    }
    #nav-links {
      display: flex;
      align-items: center;
      gap: 36px;
      list-style: none;
    }
    #nav-links a {
      font-size: 14px;
      font-weight: 500;
      color: var(--ink3);
      text-decoration: none;
      transition: color 0.2s;
    }
    #nav-links a:hover { color: var(--ink); }
    #nav-links .nav-cta {
      background: var(--red);
      color: #fff !important;
      padding: 10px 24px;
      border-radius: 4px;
      font-weight: 700;
      transition: background 0.2s;
    }
    #nav-links .nav-cta:hover { background: var(--red-mid); }
    .nav-burger {
      display: none;
      min-width: 48px;
      min-height: 48px;
      padding: 0;
      border: 0;
      border-radius: 4px;
      background: transparent;
      cursor: pointer;
      align-items: center;
      justify-content: center;
      flex-direction: column;
      gap: 5px;
    }
    .nav-burger:hover { background: var(--cream); }
    .nav-burger:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
    .nav-burger span { display: block; width: 24px; height: 2px; background: var(--ink); border-radius: 1px; transition: transform .2s, opacity .2s; }
    .nav-burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .nav-burger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
    .nav-burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

    /* Hero avatar mobile */
    .hero-avatar-mobile { display: none; }

    /* ── HERO ── */
    #hero {
      padding-top: 70px;
      background: var(--white);
    }
    .hero-inner {
      max-width: var(--max);
      margin: 0 auto;
      padding: 56px var(--gap) 0;
      display: grid;
      grid-template-columns: 1fr minmax(0, 400px);
      gap: 64px;
      align-items: center;
    }
    .hero-content {}
    .hero-pre {
      display: inline-flex; align-items: center; gap: 10px;
      background: var(--red-bg);
      color: var(--red);
      font-size: 12px;
      font-weight: 700;
      letter-spacing: 1.5px;
      text-transform: uppercase;
      padding: 8px 16px;
      border-radius: 100px;
      margin-bottom: 28px;
    }
    .hero-pre-dot { width: 6px; height: 6px; background: var(--red); border-radius: 50%; animation: blink 2s infinite; }
    @keyframes blink { 0%,100%{opacity:1}50%{opacity:0.3} }
    .hero-h1 {
      font-family: var(--font-head);
      font-size: clamp(40px, 5.5vw, 72px);
      font-weight: 800;
      line-height: 1.06;
      letter-spacing: -1.5px;
      color: var(--ink);
      margin-bottom: 26px;
    }
    .hero-h1 em { color: var(--red); font-style: normal; }
    .hero-p {
      font-size: 18px;
      color: var(--ink3);
      line-height: 1.75;
      max-width: 520px;
      margin-bottom: 40px;
    }
    .hero-p strong { color: var(--ink); font-weight: 600; }
    .hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 52px; }
    .hero-proof {
      display: flex; align-items: center; gap: 28px;
      padding-top: 32px;
      border-top: 1px solid var(--line);
    }
    .proof-item { text-align: center; }
    .proof-num {
      font-family: var(--font-head);
      font-size: 28px;
      font-weight: 800;
      color: var(--ink);
      line-height: 1;
    }
    .proof-num sup { font-size: 16px; color: var(--red); vertical-align: super; }
    .proof-label { font-size: 11px; color: var(--subtle); margin-top: 4px; font-weight: 500; letter-spacing: 0.3px; }
    .proof-sep { width: 1px; height: 36px; background: var(--line); }

    /* Hero image column */
    .hero-image-col { position: relative; padding-bottom: 60px; }
    .hero-photo-wrap {
      position: relative;
      border-radius: 12px;
      overflow: hidden;
      box-shadow: 0 24px 60px rgba(0,0,0,0.10);
    }
    .hero-photo-wrap img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
    .hero-photo-badge {
      position: absolute;
      bottom: -30px;
      left: -20px;
      background: var(--white);
      border: 1px solid var(--line);
      border-radius: 10px;
      padding: 16px 20px;
      box-shadow: 0 8px 32px rgba(0,0,0,0.08);
      display: flex; align-items: center; gap: 12px;
      min-width: 200px;
    }
    .badge-icon { font-size: 28px; }
    .badge-text strong { display: block; font-size: 15px; font-weight: 700; color: var(--ink); }
    .badge-text span { font-size: 12px; color: var(--subtle); }

    /* Hero bottom strip */
    .hero-strip {
      background: var(--ink);
      margin-top: 80px;
    }
    .hero-strip-inner {
      max-width: var(--max);
      margin: 0 auto;
      padding: 28px var(--gap);
      display: flex; align-items: center; gap: 16px;
      font-size: 14px;
      color: rgba(255,255,255,0.6);
    }
    .hero-strip-inner strong { color: rgba(255,255,255,0.9); margin-right: 6px; }
    .strip-divider { width: 1px; height: 16px; background: rgba(255,255,255,0.15); }

    /* ── LOGOS ── */
    #logos {
      background: var(--section);
      padding: 56px var(--gap);
      border-top: 1px solid var(--line);
      border-bottom: 1px solid var(--line);
    }
    .logos-label {
      text-align: center;
      font-size: 11px;
      letter-spacing: 2.5px;
      color: var(--subtle);
      text-transform: uppercase;
      font-weight: 700;
      margin-bottom: 36px;
    }
    .logos-row {
      display: flex;
      align-items: center;
      justify-content: center;
      flex-wrap: wrap;
      gap: 16px 40px;
      max-width: var(--max);
      margin: 0 auto;
    }
    .logo-item {
      display: flex; align-items: center; justify-content: center;
      opacity: 0.55;
      transition: opacity 0.2s;
      filter: grayscale(100%);
    }
    .logo-item:hover { opacity: 0.9; filter: grayscale(0%); }
    .logo-item img { height: 36px; width: auto; object-fit: contain; }

    /* ── PROBLEMA ── */
    #problema { padding: 100px 0; background: var(--white); }
    .problema-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 80px;
      align-items: start;
      margin-top: 56px;
    }
    .problema-intro .section-lead { margin-top: 20px; }
    .problema-quote {
      font-family: var(--font-head);
      font-size: clamp(20px, 2.5vw, 28px);
      font-weight: 700;
      font-style: italic;
      line-height: 1.4;
      color: var(--ink);
      border-left: 3px solid var(--red);
      padding-left: 28px;
      margin-top: 40px;
    }
    .pain-list { display: flex; flex-direction: column; gap: 0; margin-top: 8px; }
    .pain-item {
      display: grid;
      grid-template-columns: 32px 1fr;
      gap: 16px;
      padding: 24px 0;
      border-bottom: 1px solid var(--line);
      align-items: start;
    }
    .pain-item:first-child { border-top: 1px solid var(--line); }
    .pain-n {
      font-family: var(--font-head);
      font-size: 13px;
      font-weight: 700;
      color: var(--red);
      padding-top: 2px;
    }
    .pain-title { font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 5px; }
    .pain-desc { font-size: 14px; color: var(--ink3); line-height: 1.65; }

    /* ── MONTSE ── */
    #montse {
      background: var(--ink);
      padding: 100px 0;
      color: #fff;
    }
    .montse-inner {
      display: grid;
      grid-template-columns: minmax(0, 420px) 1fr;
      gap: 80px;
      align-items: center;
    }
    .montse-img-wrap {
      position: relative;
    }
    .montse-img-wrap img {
      border-radius: 8px;
      width: 100%;
      object-fit: cover;
      object-position: center 20%;
    }
    .montse-tag {
      position: absolute;
      top: 24px; right: -16px;
      background: var(--red);
      color: #fff;
      font-size: 12px;
      font-weight: 700;
      letter-spacing: 1px;
      text-transform: uppercase;
      padding: 8px 16px;
      border-radius: 4px;
    }
    .montse-eyebrow { color: rgba(255,255,255,0.5); }
    .montse-h2 {
      font-family: var(--font-head);
      font-size: clamp(28px, 3.5vw, 44px);
      font-weight: 800;
      letter-spacing: -0.5px;
      line-height: 1.12;
      margin: 16px 0 24px;
      color: #fff;
    }
    .montse-h2 em { color: var(--red); font-style: italic; }
    .montse-body { font-size: 16px; color: rgba(255,255,255,0.72); line-height: 1.8; margin-bottom: 36px; }
    .montse-body p + p { margin-top: 16px; }
    .montse-body strong { color: rgba(255,255,255,0.95); font-weight: 600; }
    .montse-facts {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 16px;
      margin-top: 40px;
    }
    .montse-fact {
      background: rgba(255,255,255,0.06);
      border: 1px solid rgba(255,255,255,0.1);
      border-radius: 8px;
      padding: 20px;
      text-align: center;
    }
    .fact-val {
      font-family: var(--font-head);
      font-size: 32px;
      font-weight: 800;
      color: #fff;
      line-height: 1;
    }
    .fact-val sup { font-size: 16px; color: var(--red); }
    .fact-lbl { font-size: 12px; color: rgba(255,255,255,0.5); margin-top: 6px; line-height: 1.4; }

    /* ── PROGRAMAS ── */
    #programas { padding: 100px 0; background: var(--section); }
    .programas-header {
      display: grid;
      grid-template-columns: 1fr 400px;
      gap: 60px;
      align-items: end;
      margin-bottom: 56px;
    }
    .programas-lead { font-size: 16px; color: var(--ink3); line-height: 1.75; }
    .cards-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 16px;
    }
    .card {
      background: var(--white);
      border: 1px solid var(--line);
      border-radius: 10px;
      padding: 32px 28px;
      position: relative;
      transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
    }
    .card:hover { box-shadow: 0 12px 40px rgba(0,0,0,0.07); transform: translateY(-3px); border-color: rgba(229,8,19,0.2); }
    .card-featured {
      border-color: var(--red);
      border-width: 1.5px;
    }
    .card-featured::before {
      content: 'Más solicitado';
      position: absolute; top: -12px; left: 28px;
      background: var(--red);
      color: #fff;
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 1px;
      text-transform: uppercase;
      padding: 4px 12px;
      border-radius: 100px;
    }
    .card-icon { font-size: 28px; margin-bottom: 16px; }
    .card-title {
      font-family: var(--font-head);
      font-size: 19px;
      font-weight: 800;
      color: var(--ink);
      margin-bottom: 10px;
    }
    .card-desc { font-size: 14px; color: var(--ink3); line-height: 1.7; margin-bottom: 20px; }
    .card-list { list-style: none; display: flex; flex-direction: column; gap: 7px; }
    .card-list li {
      display: flex; align-items: flex-start; gap: 9px;
      font-size: 13px; color: var(--ink3); line-height: 1.5;
    }
    .card-list li::before { content: '—'; color: var(--red); font-weight: 700; flex-shrink: 0; margin-top: 1px; }

    /* ── WORKSHOP IMAGE BAND ── */
    #workshop-band {
      position: relative;
      height: 600px;
      overflow: hidden;
    }
    #workshop-band img {
      width: 100%; height: 100%;
      object-fit: cover;
      object-position: center top;
    }
    .workshop-overlay {
      position: absolute; inset: 0;
      background: linear-gradient(90deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.15) 60%, transparent 100%);
      display: flex; align-items: center;
    }
    .workshop-caption {
      max-width: var(--max);
      margin: 0 auto;
      padding: 0 var(--gap);
      color: #fff;
    }
    .workshop-caption .eyebrow { color: rgba(255,200,180,0.9); }
    .workshop-caption h2 {
      font-family: var(--font-head);
      font-size: clamp(28px, 4vw, 48px);
      font-weight: 800;
      line-height: 1.1;
      color: #fff;
      max-width: 560px;
      margin: 12px 0 28px;
    }

    /* ── PROCESO ── */
    #proceso { padding: 100px 0; background: var(--white); }
    .proceso-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 0;
      margin-top: 56px;
      border: 1px solid var(--line);
      border-radius: 10px;
      overflow: hidden;
    }
    .step {
      padding: 36px 28px;
      background: var(--white);
      border-right: 1px solid var(--line);
      transition: background 0.2s;
    }
    .step:last-child { border-right: none; }
    .step:hover { background: var(--section); }
    .step-num {
      font-family: var(--font-head);
      font-size: 13px;
      font-weight: 800;
      color: var(--red);
      letter-spacing: 1px;
      margin-bottom: 16px;
    }
    .step-title { font-size: 16px; font-weight: 700; color: var(--ink); margin-bottom: 10px; line-height: 1.3; }
    .step-desc { font-size: 13px; color: var(--ink3); line-height: 1.65; }

    /* ── TESTIMONIOS ── */
    #testimonios { padding: 100px 0; background: var(--section); }
    .testi-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 16px;
      margin-top: 56px;
    }
    .testi-card {
      background: var(--white);
      border: 1px solid var(--line);
      border-radius: 10px;
      padding: 32px;
      transition: box-shadow 0.2s;
    }
    .testi-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.06); }
    .testi-stars { color: var(--gold); font-size: 13px; letter-spacing: 2px; margin-bottom: 16px; }
    .testi-text {
      font-size: 15px;
      color: var(--ink2);
      line-height: 1.75;
      font-style: italic;
      margin-bottom: 24px;
    }
    .testi-text::before { content: '\201C'; }
    .testi-text::after  { content: '\201D'; }
    .testi-author { display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--line); padding-top: 20px; }
    .testi-initials {
      width: 40px; height: 40px;
      background: var(--red-bg);
      color: var(--red);
      border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      font-weight: 800; font-size: 13px; flex-shrink: 0;
      font-family: var(--font-head);
    }
    .testi-name { font-size: 14px; font-weight: 700; color: var(--ink); }
    .testi-role { font-size: 12px; color: var(--subtle); margin-top: 1px; }

    /* ── MÉTRICAS ── */
    #metricas {
      background: var(--red);
      padding: 80px 0;
    }
    .metrics-inner {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 0;
      text-align: center;
    }
    .metric {
      padding: 40px 24px;
      border-right: 1px solid rgba(255,255,255,0.15);
    }
    .metric:last-child { border-right: none; }
    .metric-val {
      font-family: var(--font-head);
      font-size: 52px;
      font-weight: 800;
      color: #fff;
      line-height: 1;
      letter-spacing: -1px;
    }
    .metric-val sup { font-size: 24px; vertical-align: super; opacity: 0.8; }
    .metric-lbl { font-size: 13px; color: rgba(255,255,255,0.75); margin-top: 10px; line-height: 1.5; font-weight: 500; }

    /* ── CTA FINAL ── */
    #cta {
      background: var(--cream);
      padding: 100px 0;
      text-align: center;
      border-top: 1px solid var(--line);
    }
    .cta-inner { max-width: 680px; margin: 0 auto; padding: 0 var(--gap); }
    .cta-h2 {
      font-family: var(--font-head);
      font-size: clamp(32px, 4.5vw, 54px);
      font-weight: 800;
      letter-spacing: -1px;
      line-height: 1.1;
      color: var(--ink);
      margin-bottom: 20px;
    }
    .cta-h2 em { color: var(--red); font-style: italic; }
    .cta-sub { font-size: 17px; color: var(--ink3); line-height: 1.75; margin-bottom: 40px; }
    .cta-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }
    .cta-contacts {
      display: flex; justify-content: center; align-items: center; gap: 32px;
      flex-wrap: wrap;
      padding-top: 36px;
      border-top: 1px solid var(--line);
    }
    .cta-contact-item {
      display: flex; align-items: center; gap: 8px;
      font-size: 14px; color: var(--ink3);
      text-decoration: none;
      transition: color 0.2s;
      font-weight: 500;
    }
    .cta-contact-item:hover { color: var(--red); }
    .cta-contact-item svg { flex-shrink: 0; }

    /* ── FORMACIÓN EN MÁLAGA ── */
    #malaga { padding: 92px 0; background: var(--cream); }
    .malaga-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(280px, .95fr); gap: 72px; align-items: start; }
    .malaga-copy p { margin-top: 20px; color: var(--ink3); font-size: 17px; line-height: 1.78; }
    .malaga-points { display: grid; gap: 14px; }
    .malaga-point { padding: 22px 24px; background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--red); }
    .malaga-point strong { display: block; margin-bottom: 5px; font-family: var(--font-head); font-size: 19px; }
    .malaga-point span { color: var(--ink3); font-size: 14px; line-height: 1.6; }

    /* ── PREGUNTAS FRECUENTES ── */
    #preguntas-frecuentes { padding: 92px 0; background: var(--white); }
    .faq-header { max-width: 720px; margin-bottom: 36px; }
    .faq-list { max-width: 880px; border-top: 1px solid var(--line); }
    .faq-item { border-bottom: 1px solid var(--line); }
    .faq-item summary { min-height: 64px; padding: 20px 44px 20px 0; position: relative; cursor: pointer; list-style: none; font-weight: 700; color: var(--ink); }
    .faq-item summary::-webkit-details-marker { display: none; }
    .faq-item summary::after { content: "+"; position: absolute; right: 4px; top: 15px; color: var(--red); font-family: var(--font-head); font-size: 30px; font-weight: 400; }
    .faq-item[open] summary::after { content: "−"; }
    .faq-item p { max-width: 780px; padding: 0 44px 22px 0; color: var(--ink3); line-height: 1.75; }

    /* ── FOOTER ── */
    footer {
      background: var(--ink);
      color: rgba(255,255,255,0.5);
      padding: 48px var(--gap);
    }
    .footer-inner {
      max-width: var(--max);
      margin: 0 auto;
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 20px;
    }
    .footer-logo {
      font-family: var(--font-head);
      font-size: 18px;
      font-weight: 800;
      color: #fff;
      text-decoration: none;
    }
    .footer-logo em { color: var(--red); font-style: normal; }
    .footer-logo-img { height: 36px; width: auto; display: block; background: rgba(255,255,255,0.92); padding: 5px 10px; border-radius: 6px; opacity: 0.9; transition: opacity 0.2s; }
    .footer-logo:hover .footer-logo-img { opacity: 1; }
    .footer-links { display: flex; gap: 28px; }
    .footer-links a { color: rgba(255,255,255,0.45); font-size: 13px; text-decoration: none; transition: color 0.2s; }
    .footer-links a:hover { color: rgba(255,255,255,0.85); }
    .footer-copy { font-size: 12px; }

    /* ── RENDER OPTIMIZATION ── */
    #logos, #problema, #montse, #programas, #malaga, #proceso, #testimonios, #metricas, #preguntas-frecuentes, #cta {
      content-visibility: auto;
      contain-intrinsic-size: 0 600px;
    }

    /* ── FADE-IN ON SCROLL ── */
    .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.65s ease, transform 0.65s ease; }
    .reveal.in  { opacity: 1; transform: none; }

    /* ── RESPONSIVE ── */
    /* ── TABLET ── */
    @media (max-width: 1024px) {
      :root { --gap: 40px; }

      #nav-inner { gap: 20px; }
      #nav-links { gap: 18px; }
      #nav-links .nav-cta { padding-inline: 16px; }

      /* Hero: una sola columna, sin foto lateral */
      .hero-inner { grid-template-columns: 1fr; padding-bottom: 0; }
      .hero-image-col { display: none; }

      /* Montse: imagen arriba, texto debajo */
      .montse-inner { grid-template-columns: 1fr; gap: 40px; }
      .montse-img-wrap { max-width: 480px; width: 100%; }
      .montse-img-wrap img { width: 100%; border-radius: 8px; }

      /* Layouts */
      .programas-header { grid-template-columns: 1fr; gap: 20px; }
      .cards-grid { grid-template-columns: 1fr 1fr; }
      .problema-grid { grid-template-columns: 1fr; gap: 40px; }
      .proceso-grid { grid-template-columns: 1fr 1fr; }
      .step:nth-child(2) { border-right: none; }
      .step:nth-child(2), .step:nth-child(3) { border-top: 1px solid var(--line); }
      .metrics-inner { grid-template-columns: 1fr 1fr; }
      .metric:nth-child(2) { border-right: none; }
      .metric:nth-child(3), .metric:nth-child(4) { border-top: 1px solid rgba(255,255,255,0.15); }
      .testi-grid { grid-template-columns: 1fr 1fr; }
    }

    /* ── NAVEGACIÓN COMPACTA: TABLET Y MÓVIL ── */
    @media (max-width: 900px) {
      #nav-inner { position: relative; padding-block: 8px; }
      #nav-links {
        display: none;
        flex-direction: column;
        align-items: stretch;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        max-height: calc(100vh - 64px);
        overflow-y: auto;
        background: #fff;
        border-bottom: 1px solid var(--line);
        padding: 16px var(--gap) 24px;
        gap: 0;
        box-shadow: 0 8px 24px rgba(0,0,0,0.08);
      }
      #nav-links.open { display: flex; }
      #nav-links li { border-bottom: 1px solid var(--line); }
      #nav-links li:last-child { border-bottom: none; margin-top: 12px; }
      #nav-links a { display: flex; align-items: center; min-height: 48px; padding: 12px 4px; font-size: 16px; color: var(--ink); }
      #nav-links .nav-cta { justify-content: center; min-height: 48px; padding: 12px 16px; text-align: center; }
      .nav-burger { display: flex; flex-shrink: 0; }
      body.menu-open { overflow: hidden; }
    }

    /* ── MÓVIL ── */
    @media (max-width: 640px) {
      :root { --gap: 20px; }

      /* Hero */
      #hero { padding-top: 70px; }
      .hero-inner { grid-template-columns: 1fr; padding: 36px var(--gap) 0; gap: 0; }
      .hero-image-col { display: none; }
      .hero-avatar-mobile {
        display: flex;
        justify-content: center;
        margin-bottom: 24px;
      }
      .hero-avatar-mobile img {
        width: 96px;
        height: 96px;
        border-radius: 50%;
        object-fit: cover;
        object-position: center top;
        border: 3px solid var(--line);
        box-shadow: 0 4px 24px rgba(0,0,0,0.12);
      }
      .hero-h1 { font-size: clamp(30px, 8vw, 46px); letter-spacing: -0.5px; }
      .hero-p { font-size: 16px; }
      .hero-proof { flex-wrap: wrap; gap: 16px 24px; padding-top: 24px; }
      .proof-sep { display: none; }
      .hero-actions { flex-direction: column; }
      .hero-actions a { text-align: center; justify-content: center; width: 100%; }
      /* Hero strip: wrap en móvil */
      .hero-strip-inner { flex-wrap: wrap; gap: 10px 16px; padding: 20px var(--gap); font-size: 13px; }
      .strip-divider { display: none; }

      /* Montse — foto visible en móvil */
      #montse { padding: 60px 0; }
      .montse-inner { grid-template-columns: 1fr; gap: 32px; }
      .montse-img-wrap { max-width: 100%; width: 100%; }
      .montse-img-wrap img { width: 100%; max-height: 420px; object-fit: cover; object-position: center top; border-radius: 8px; }
      .montse-tag { top: auto; bottom: 16px; right: 8px; }
      .montse-facts { grid-template-columns: 1fr 1fr; gap: 10px; }

      /* Secciones */
      #problema, #programas, #testimonios, #resultados { padding: 60px 0; }
      #solucion, #proceso { padding: 60px 0; }
      .problema-grid { grid-template-columns: 1fr; gap: 32px; }
      .cards-grid { grid-template-columns: 1fr; }
      .testi-grid { grid-template-columns: 1fr; }
      .metrics-inner { grid-template-columns: 1fr 1fr; }
      .metric { padding: 28px 16px; }
      .metric-val { font-size: 38px; }
      .proceso-grid { grid-template-columns: 1fr; }
      .step { border-right: none; border-bottom: 1px solid var(--line); }
      .step:last-child { border-bottom: none; }
      .logos-row { gap: 12px 20px; }
      .logo-item img { height: 28px; }

      /* Workshop band */
      #workshop-band { height: 300px; }
      .workshop-caption h2 { font-size: clamp(22px, 6vw, 32px); }

      /* CTA */
      #cta { padding: 60px 0; }
      .cta-actions { flex-direction: column; align-items: stretch; }
      .cta-actions a { text-align: center; justify-content: center; }
      .cta-contacts { flex-direction: column; gap: 16px; }

      /* Footer */
      footer { padding: 36px var(--gap); }
      .footer-inner { flex-direction: column; text-align: center; gap: 20px; }
      .footer-links { flex-wrap: wrap; justify-content: center; gap: 16px 24px; }

      /* Tipografía */
      .section-h2 { font-size: clamp(26px, 7vw, 38px); }
      .programas-header { gap: 16px; }
      #malaga, #preguntas-frecuentes { padding: 60px 0; }
      .malaga-grid { grid-template-columns: 1fr; gap: 36px; }
    }

    /* ── MÓVILES ESTRECHOS ── */
    @media (max-width: 420px) {
      #nav-logo img { height: 40px; }
      .hero-inner { padding-top: 28px; }
      .hero-pre { line-height: 1.45; }
      .hero-h1 { font-size: clamp(29px, 9vw, 38px); }
      .hero-proof { display: grid; grid-template-columns: 1fr 1fr; width: 100%; gap: 20px 12px; }
      .proof-item { min-width: 0; }
      .proof-label br { display: none; }
      .montse-facts { grid-template-columns: 1fr; }
      .fact-val { font-size: 34px; }
      .metrics-inner { grid-template-columns: 1fr 1fr; }
      .metric { padding: 24px 10px; }
      .metric-val { font-size: 32px; }
      .malaga-point { padding: 20px 18px; }
      .faq-item summary { padding-right: 36px; }
      .faq-item p { padding-right: 0; }
      .cta-contact-item { max-width: 100%; overflow-wrap: anywhere; text-align: left; }
      .footer-links { flex-direction: column; align-items: center; gap: 12px; }
    }

/* ══════════════════════════════════════════════
   DARK THEME TOKENS (dark.css)
   ══════════════════════════════════════════════ */

/* MC Mentoría · Version 2 — tema oscuro cálido */
:root {
  color-scheme: dark;
  --page: #111513;
  --surface: #181e1b;
  --surface-raised: #202723;
  --surface-deep: #0b0f0d;
  --text: #f2eee7;
  --text-soft: #d4dad5;
  --text-muted: #aeb8b2;
  --dark-line: #354039;
  --brand-red: #e50813;
  --brand-red-dark: #96010f;
  --button: var(--brand-red);
  --button-hover: var(--brand-red-dark);

  /* Variables de la portada */
  --white: var(--page);
  --cream: var(--surface);
  --section: #151b18;
  --ink: var(--text);
  --ink2: var(--text-soft);
  --ink3: var(--text-muted);
  --subtle: #98a49d;
  --line: var(--dark-line);
  --red: #ff6269;
  --red-mid: var(--brand-red);
  --red-bg: #35090d;
  --gold: #d8b86b;

  /* Variables de las páginas legales */
  --paper: var(--page);
  --ink-2: var(--text-soft);
  --ink-3: var(--text-muted);
  --red-dark: #ff7379;
}

html,
body {
  background: var(--page);
}

body {
  color: var(--text);
}

/* Navegación y superficies principales */
#nav,
.site-header {
  background: rgba(17, 21, 19, 0.96);
  border-color: var(--dark-line);
}

#nav.scrolled {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

#nav-logo,
.brand,
.footer-logo,
.footer-logo-img,
.footer-logo img {
  border-radius: 5px;
}

.brand img,
.footer-logo-img {
  background: #f2eee7;
  padding: 5px 9px;
}

.brand img {
  width: 76px;
  height: auto;
  padding: 0;
  background: transparent;
}

.footer-logo img {
  width: 76px;
  height: auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

#nav-logo img {
  width: auto;
  height: 44px;
  padding: 0;
  background: transparent;
}

.hero-photo-wrap,
.montse-img-wrap img {
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
}

.hero-photo-badge,
.card,
.testi-card,
.step,
.malaga-point,
.data-card {
  background: var(--surface-raised);
}

.card:hover,
.testi-card:hover {
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.34);
}

.step:hover,
.btn-outline:hover {
  background: #252d29;
}

#proceso {
  background: #1b211e;
}

#proceso .step {
  background: #252d29;
}

#montse,
.hero-strip,
footer,
.site-footer {
  background: var(--surface-deep);
}

#metricas {
  background: var(--brand-red-dark);
}

/* Franja clara para que los logotipos negros conserven su identidad */
#logos {
  background: #e8e8e5;
  border-color: #cfd1cd;
}

.logos-label {
  color: #252a27;
}

.logo-item {
  flex: 0 1 180px;
  height: 82px;
  padding: 10px 20px;
  border: 1px solid #d1d3cf;
  border-radius: 8px;
  background: #fff;
  opacity: 1;
}

.logo-item img {
  width: auto;
  height: auto;
  max-width: 140px;
  max-height: 44px;
  opacity: 0.72;
  transform-origin: center;
}

.logo-item--ayuntamiento img {
  transform: scale(1.55);
}

.logo-item--buchinger img {
  transform: scale(1.45);
}

.logo-item:hover img {
  opacity: 1;
}

@media (max-width: 640px) {
  .logo-item {
    flex-basis: 140px;
    padding: 10px 16px;
  }
}

.legal-hero,
#cta,
#malaga {
  background: var(--surface);
}

.legal-note {
  background: var(--surface-raised);
}

/* Enlaces, botones y foco visibles sin resplandor excesivo */
a {
  text-decoration-thickness: 1px;
}

.btn-red,
.nav-cta,
.error-home {
  background: var(--button);
}

.btn-red:hover,
.nav-cta:hover,
.error-home:hover {
  background: var(--button-hover);
}

:focus-visible {
  outline-color: #ff7379;
}

/* El menú móvil también conserva el tema oscuro */
@media (max-width: 900px) {
  #nav-links {
    background: var(--surface);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
  }
}

@media (max-width: 420px) {
  #nav-logo img {
    height: 38px;
  }
}

/* Contraste reforzado para quien lo solicite en el sistema */
@media (prefers-contrast: more) {
  :root {
    --text: #ffffff;
    --text-soft: #f1f4f2;
    --text-muted: #d4dbd7;
    --dark-line: #718078;
    --red: #ff8085;
  }
}

/* ══════════════════════════════════════════════
   LEGAL PAGES (aviso-legal, cookies, privacidad, 404)
   Porta legal.css, con selectores genéricos escopados
   bajo .legal-page (clase de <body> en page-legal.php y 404.php)
   para no interferir con el diseño de la portada.
   ══════════════════════════════════════════════ */
.legal-page {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.7;
}
.legal-page a { color: var(--red-dark); text-underline-offset: 3px; }
.legal-page a:hover { color: var(--red); }
.legal-page a:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; border-radius: 2px; }
.legal-page .skip-link { position: fixed; top: 10px; left: 10px; z-index: 100; padding: 10px 14px; background: var(--ink); color: #fff; transform: translateY(-160%); }
.legal-page .skip-link:focus { transform: none; }
.legal-page .site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.legal-page .header-inner { max-width: var(--max); min-height: 78px; margin: 0 auto; padding: 12px 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.legal-page .brand img { display: block; width: 180px; height: auto; }
.legal-page .back-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 700; text-decoration: none; }
.legal-page .legal-hero { background: var(--cream); border-bottom: 1px solid var(--line); }
.legal-page .legal-hero-inner { max-width: var(--max); margin: 0 auto; padding: 72px 32px 62px; }
.legal-page .eyebrow { margin: 0 0 14px; color: var(--red-dark); font-size: 12px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.legal-page h1 { max-width: 850px; margin: 0 0 18px; font-family: var(--font-head); font-size: clamp(42px, 7vw, 76px); line-height: 1.02; letter-spacing: -.035em; }
.legal-page .hero-copy { max-width: 720px; margin: 0; color: var(--ink-2); font-size: clamp(17px, 2vw, 20px); }
.legal-page .updated { display: block; margin-top: 22px; color: var(--ink-3); font-size: 13px; }
.legal-page .error-home { display: inline-flex; align-items: center; min-height: 48px; margin-top: 28px; padding: 11px 20px; border-radius: 3px; background: var(--red-dark); color: #fff; font-weight: 800; text-decoration: none; }
.legal-page .error-home:hover { background: var(--red); color: #fff; }
.legal-page .legal-layout { max-width: var(--max); margin: 0 auto; padding: 64px 32px 88px; display: grid; grid-template-columns: 240px minmax(0, 760px); gap: 72px; justify-content: center; }
.legal-page .legal-index { align-self: start; position: sticky; top: 24px; padding: 20px 0; border-top: 3px solid var(--red); border-bottom: 1px solid var(--line); }
.legal-page .legal-index strong { display: block; margin-bottom: 12px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.legal-page .legal-index a { display: block; padding: 7px 0; color: var(--ink-3); font-size: 13px; text-decoration: none; }
.legal-page .legal-index a:hover { color: var(--red-dark); }
.legal-page .legal-content section { scroll-margin-top: 24px; padding-bottom: 34px; margin-bottom: 34px; border-bottom: 1px solid var(--line); }
.legal-page .legal-content, .legal-page .data-card { overflow-wrap: anywhere; }
.legal-page .legal-content section:last-child { border-bottom: 0; }
.legal-page h2 { margin: 0 0 16px; font-family: var(--font-head); font-size: clamp(26px, 3.5vw, 36px); line-height: 1.2; }
.legal-page h3 { margin: 26px 0 8px; font-size: 17px; }
.legal-page p, .legal-page li { color: var(--ink-2); }
.legal-page ul { padding-left: 22px; }
.legal-page .data-card { margin: 22px 0; padding: 24px; background: var(--cream); border-left: 4px solid var(--red); }
.legal-page .data-card p { margin: 4px 0; }
.legal-page .legal-note { padding: 18px 20px; background: #f3f5f4; border: 1px solid var(--line); color: var(--ink-2); font-size: 14px; }
.legal-page .site-footer { background: var(--ink); color: rgba(255,255,255,.65); padding: 42px 32px; }
.legal-page .footer-inner { max-width: var(--max); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.legal-page .footer-logo img { display: block; width: 150px; height: auto; background: rgba(255,255,255,.92); padding: 5px 10px; border-radius: 6px; }
.legal-page .footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.legal-page .footer-links a { color: rgba(255,255,255,.68); font-size: 13px; text-decoration: none; }
.legal-page .footer-links a:hover { color: #fff; }
.legal-page .footer-copy { font-size: 12px; }
@media (max-width: 780px) {
  .legal-page .header-inner, .legal-page .legal-hero-inner, .legal-page .legal-layout { padding-left: 20px; padding-right: 20px; }
  .legal-page .brand img { width: 145px; }
  .legal-page .legal-hero-inner { padding-top: 52px; padding-bottom: 48px; }
  .legal-page .legal-layout { grid-template-columns: 1fr; gap: 36px; padding-top: 42px; }
  .legal-page .legal-index { position: static; }
  .legal-page .footer-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 420px) {
  .legal-page .header-inner { min-height: 68px; gap: 12px; }
  .legal-page .brand img { width: 128px; }
  .legal-page .back-link { font-size: 13px; text-align: right; }
  .legal-page .legal-hero-inner { padding-top: 40px; padding-bottom: 40px; }
  .legal-page h1 { font-size: clamp(36px, 12vw, 48px); }
  .legal-page .hero-copy { font-size: 16px; }
  .legal-page .legal-layout { gap: 28px; padding-top: 32px; padding-bottom: 64px; }
  .legal-page .legal-index { padding-block: 16px; }
  .legal-page .legal-index a { min-height: 44px; display: flex; align-items: center; padding-block: 8px; }
  .legal-page .data-card { padding: 20px 16px; }
  .legal-page .site-footer { padding: 36px 20px; }
  .legal-page .footer-links { flex-direction: column; gap: 12px; }
  .legal-page .footer-links a { min-height: 44px; display: flex; align-items: center; }
}
@media (prefers-reduced-motion: reduce) {
  .legal-page { scroll-behavior: auto; }
}
