
    :root{
      --bg:#f6f0ea;
      --bg-2:#efe5dd;
      --bg-3:#f8f3ef;
      --sage:#7f8b75;
      --sage-dark:#6f7a67;
      --sage-light:#dfe5da;
      --rose:#e7d8d3;
      --rose-2:#efe3df;
      --text:#38322e;
      --muted:#6b645e;
      --line:#e2d7cf;
      --white:#ffffff;
      --shadow:0 12px 38px rgba(77,65,57,.08);
      --max:1180px;
    }

    *{box-sizing:border-box}
    html{scroll-behavior:smooth}
    body{
      margin:0;
      font-family:"Inter",system-ui,sans-serif;
      background:var(--bg);
      color:var(--text);
      line-height:1.68;
      -webkit-font-smoothing:antialiased;
      text-rendering:optimizeLegibility;
    }
    a{color:inherit}
    img{max-width:100%;display:block}
    p{margin:0}
    h1,h2,h3,h4{
      margin:0;
      font-family:"Libre Baskerville", Baskerville, Georgia, serif;
      font-weight:500;
      letter-spacing:-.02em;
      color:#4d3d35;
    }

    .shell{
      width:min(calc(100% - 36px), var(--max));
      margin:0 auto;
    }

    .topbar{
      position:sticky;
      top:0;
      z-index:30;
      background:rgba(246,240,234,.92);
      backdrop-filter:blur(10px);
      border-bottom:1px solid rgba(226,215,207,.8);
    }

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


    .brand{
      text-decoration:none;
      display:inline-flex;
      align-items:center;
      gap:12px;
      line-height:1;
      min-width:0;
    }
    .brand-mark{
      width:54px;
      height:54px;
      object-fit:contain;
      flex:0 0 auto;
    }
    .brand-copy{
      display:block;
      min-width:0;
    }
    .brand-copy strong{
      display:block;
      font-family:"Libre Baskerville", Baskerville, Georgia, serif;
      font-size:2.18rem;
      font-weight:400;
      letter-spacing:-.035em;
      line-height:1;
      white-space:nowrap;
    }
    .brand-copy > span{
      display:block;
      margin-top:8px;
      color:#756d66;
      font-family:"Inter",system-ui,sans-serif;
      font-size:.64rem;
      font-weight:500;
      text-transform:uppercase;
      letter-spacing:.24em;
      line-height:1;
      white-space:nowrap;
    }

    .menu{
      display:flex;
      align-items:center;
      gap:28px;
      font-size:.86rem;
      color:#5f5a55;
    }
    .menu a{
      text-decoration:none;
      transition:.2s ease;
    }
    .menu a:hover{opacity:.65}

    .btn{
      display:inline-flex;
      align-items:center;
      justify-content:center;
      min-height:46px;
      padding:0 22px;
      border-radius:999px;
      text-decoration:none;
      font-size:.92rem;
      border:1px solid transparent;
      transition:.25s ease;
      white-space:nowrap;
    }
    .btn:hover{transform:translateY(-1px)}
    .btn-primary{
      background:#e8c9cf;
      color:#4c3f42;
      box-shadow:0 8px 24px rgba(181,135,145,.16);
    }
    .btn-primary:hover{
      background:#e1bcc4;
    }
    .btn-outline{
      background:rgba(255,255,255,.28);
      border-color:#9b938b;
      color:#4f4843;
    }

    /* HERO - updated to match the reference layout more closely */

    .menu .btn-primary{
      background:#8f9988;
      color:#fff;
      box-shadow:0 8px 24px rgba(99,111,94,.18);
    }
    .menu .btn-primary:hover{
      background:#818b7b;
      color:#fff;
    }

    .hero{
      border-bottom:1px solid var(--line);
      background:#eee4dc;
    }
    .hero-frame{
      position:relative;
      min-height:540px;
      overflow:hidden;
      background:
        linear-gradient(90deg, rgba(241,231,224,.24), rgba(241,231,224,.08)),
        none center center / cover no-repeat;
    }
    .hero-overlay{
      position:absolute;
      inset:0;
      background:linear-gradient(90deg, rgba(246,240,234,.14) 0%, rgba(246,240,234,0) 42%);
      pointer-events:none;
    }
    .hero-panel{
      position:absolute;
      left:72px;
      top:50%;
      transform:translateY(-50%);
      width:min(500px, calc(100% - 120px));
      background:transparent;
      backdrop-filter:none;
      padding:0;
      border-radius:0;
      box-shadow:none;
    }
    .eyebrow{
      display:block;
      font-size:.74rem;
      text-transform:uppercase;
      letter-spacing:.24em;
      color:#7d746d;
      margin-bottom:16px;
    }
    .hero-panel h1{
      font-size:clamp(3.6rem,6.3vw,5.7rem);
      line-height:.9;
      max-width:390px;
      color:#4d3d35;
      letter-spacing:-.03em;
    }
    .hero-panel p{
      max-width:385px;
      margin-top:18px;
      color:#5c5752;
      font-size:1.03rem;
      line-height:1.62;
    }
    .hero-actions{
      display:flex;
      flex-wrap:wrap;
      gap:14px;
      margin-top:28px;
    }
    .hero-btn{
      min-height:44px;
      padding:0 22px;
      border-radius:999px;
      display:inline-flex;
      align-items:center;
      justify-content:center;
      text-decoration:none;
      font-size:.9rem;
      transition:.25s ease;
    }
    .hero-btn.primary{
      background:var(--sage);
      color:#fff;
    }
    .hero-btn.secondary{
      background:transparent;
      color:#4e4741;
      border:1px solid rgba(110,102,95,.55);
    }
    .hero-btn:hover{transform:translateY(-1px)}

    /* Rest of the page */
    .section{
      padding:118px 0 112px;
      border-bottom:1px solid var(--line);
    }

    .section-head{
      display:grid;
      grid-template-columns:1fr 1fr;
      gap:28px;
      align-items:end;
      margin-bottom:52px;
    }
    .section-title h2{
      font-size:clamp(2.5rem,4.5vw,4.3rem);
      line-height:.95;
    }
    .section-title p{
      margin-top:6px;
      color:#8a7e75;
      font-size:.74rem;
      letter-spacing:.24em;
      text-transform:uppercase;
    }
    .section-side{
      color:#5e5954;
      font-size:.95rem;
    }

    .about-grid{
      display:grid;
      grid-template-columns:1.1fr .78fr .75fr;
      gap:22px;
      align-items:stretch;
    }
    .about-copy{
      padding-right:12px;
    }
    .about-copy p{
      color:#5d5752;
      margin-bottom:20px;
      font-size:1rem;
    }
    .about-link{
      display:inline-flex;
      align-items:center;
      gap:8px;
      text-decoration:none;
      color:#403a36;
      font-size:.94rem;
      margin-top:6px;
    }
    .about-photo{
      min-height:320px;
      border-radius:8px;
      overflow:hidden;
      background:
        linear-gradient(180deg, rgba(247,242,237,.05), rgba(247,242,237,.05)),
        none center top / cover no-repeat;
      box-shadow:var(--shadow);
    }
    .quote-box{
      background:#efe5e0;
      border-radius:8px;
      padding:28px 26px 24px;
      position:relative;
      overflow:hidden;
      min-height:320px;
      display:flex;
      flex-direction:column;
      justify-content:center;
    }
    .quote-box::after{
      content:"";
      position:absolute;
      right:-10px;
      bottom:-10px;
      width:130px;
      height:190px;
      background:
        radial-gradient(circle at 35% 20%, rgba(188,197,180,.55) 0 18%, transparent 19%),
        radial-gradient(circle at 62% 40%, rgba(188,197,180,.55) 0 18%, transparent 19%),
        radial-gradient(circle at 30% 65%, rgba(188,197,180,.55) 0 18%, transparent 19%),
        linear-gradient(180deg, rgba(188,197,180,.6), rgba(188,197,180,.6));
      clip-path:polygon(55% 0, 60% 45%, 85% 100%, 73% 100%, 56% 56%, 50% 100%, 38% 100%, 43% 51%, 42% 0);
      opacity:.35;
    }
    .quote-mark{
      font-size:4rem;
      line-height:1;
      color:#c1aba3;
      margin-bottom:8px;
      font-family:"Libre Baskerville", Baskerville, Georgia, serif;
    }
    .quote-box p{
      position:relative;
      z-index:1;
      font-family:"Libre Baskerville", Baskerville, Georgia, serif;
      font-size:1.6rem;
      line-height:1.18;
      color:#594f4a;
    }

    .work-grid{
      display:grid;
      grid-template-columns:repeat(4,1fr);
      gap:22px;
      margin-top:20px;
    }
    .work-item{
      text-align:center;
      padding:10px 10px 0;
    }
    .icon-circle{
      width:66px;
      height:66px;
      border-radius:50%;
      background:#f3ece7;
      border:1px solid #e6dbd4;
      display:grid;
      place-items:center;
      margin:0 auto 18px;
      color:#9d8d84;
    }
    .icon-circle svg{
      width:28px;
      height:28px;
      stroke:currentColor;
      fill:none;
      stroke-width:1.7;
      stroke-linecap:round;
      stroke-linejoin:round;
    }
    .work-item h3{
      font-size:2rem;
      line-height:1;
      margin-bottom:10px;
    }
    .work-item p{
      font-size:.94rem;
      color:#5f5954;
      line-height:1.55;
      max-width:230px;
      margin:0 auto;
    }

    .help-grid{
      display:grid;
      grid-template-columns:repeat(3, minmax(0, 1fr));
      gap:22px;
      margin-top:26px;
      align-items:stretch;
    }
    .help-card{
      background:#f3ece8;
      border:1px solid #eaded7;
      padding:26px 18px 22px;
      text-align:center;
      min-height:270px;
      height:100%;
      width:100%;
      display:flex;
      flex-direction:column;
      align-items:center;
    }
    .help-card .icon{
      width:126px;
      height:92px;
      margin:0 auto 22px;
      display:grid;
      place-items:center;
      color:#8e7672;
      background:
        radial-gradient(circle at 76% 24%, rgba(255,255,255,.52), transparent 28%),
        #efdfdc;
      border:1px solid rgba(169,138,132,.14);
      border-radius:50% 50% 42% 58% / 53% 42% 58% 47%;
      position:relative;
      overflow:hidden;
    }
    .help-card:nth-child(even) .icon{
      color:#778674;
      background:
        radial-gradient(circle at 76% 24%, rgba(255,255,255,.48), transparent 28%),
        #e3eadf;
      border-radius:55% 45% 56% 44% / 46% 56% 44% 54%;
    }
    .help-card .icon::before{
      content:"";
      position:absolute;
      inset:11px;
      border:1px solid rgba(255,255,255,.36);
      border-radius:48% 52% 40% 60% / 54% 40% 60% 46%;
    }
    .help-card .icon::after{
      content:"";
      position:absolute;
      width:82px;
      height:82px;
      border-radius:50%;
      border:1px solid rgba(255,255,255,.42);
      right:-24px;
      top:-28px;
    }
    .help-card .icon svg{
      width:42px;
      height:42px;
      stroke:currentColor;
      fill:none;
      stroke-width:1.6;
      stroke-linecap:round;
      stroke-linejoin:round;
      position:relative;
      z-index:1;
    }
    .help-card h3{
      font-size:1.55rem;
      line-height:1.05;
      min-height:60px;
      display:flex;
      align-items:center;
      justify-content:center;
      text-align:center;
    }
    .help-card p{
      font-size:.83rem;
      color:#625c58;
      line-height:1.55;
      margin-top:12px;
      text-align:left;
      max-width:100%;
      flex:1;
    }
    .help-note{
      text-align:center;
      margin-top:14px;
      color:#7b746d;
      font-size:.88rem;
    }

    .training{
      display:grid;
      grid-template-columns:1.15fr repeat(3,1fr);
      gap:18px;
      align-items:start;
      margin-top:8px;
    }
    .training-intro p{
      color:#5f5954;
      max-width:420px;
      font-size:1rem;
    }
    .training-link{
      display:inline-flex;
      margin-top:14px;
      text-decoration:none;
      color:#3f3a36;
      font-size:.94rem;
    }
    .training-card{
      text-align:center;
      padding:8px 14px;
    }
    .training-card .icon{
      color:#7f736b;
      margin-bottom:10px;
      display:grid;
      place-items:center;
    }
    .training-card .icon svg{
      width:30px;height:30px;
      stroke:currentColor;fill:none;stroke-width:1.7;
      stroke-linecap:round;stroke-linejoin:round;
    }
    .training-card h3{
      font-size:1.7rem;
      line-height:1.06;
      margin-bottom:8px;
    }
    .training-card p{
      font-size:.88rem;
      color:#66605b;
      line-height:1.45;
    }


    .contact-section{
      width:100%;
      margin:0;
      padding:0;
    }
    .contact{
      width:100%;
      max-width:none;
      margin:0;
    }

    .contact{
      display:grid;
      grid-template-columns:1.1fr 1fr;
      min-height:265px;
      overflow:hidden;
    }
    .contact-copy{
      background:#8f9988;
      color:#fff;
      padding:40px 34px 28px;
      display:flex;
      flex-direction:column;
      justify-content:space-between;
    }
    .contact-copy h2{
      font-family:"Italianno", cursive;
      font-size:5.1rem;
      font-weight:400;
      line-height:.88;
      letter-spacing:.005em;
      color:#f3dbdf;
      margin-bottom:10px;
    }

    .contact-copy p{
      max-width:390px;
      color:rgba(255,255,255,.88);
      font-size:.95rem;
      line-height:1.6;
    }
    .contact-cta{
      display:inline-flex;
      align-items:center;
      justify-content:center;
      gap:8px;
      margin-top:18px;
      min-height:42px;
      padding:0 18px;
      border-radius:999px;
      background:#efcfd5;
      color:#4d3d41;
      text-decoration:none;
      font-size:.92rem;
      align-self:flex-start;
      transition:.25s ease;
    }
    .contact-cta:hover{
      background:#e7bdc6;
      transform:translateY(-1px);
    }
    .contact-bottom{
      display:flex;
      flex-wrap:wrap;
      gap:20px 28px;
      margin-top:30px;
      font-size:.85rem;
      color:rgba(255,255,255,.92);
    }
    .contact-visual{
      position:relative;
      min-height:315px;
      overflow:hidden;
      background:#eee6df;
    }
    .contact-visual img{
      display:block;
      width:100%;
      height:100%;
      min-height:315px;
      object-fit:cover;
      object-position:left center;
    }
    .contact-hand{
      position:absolute;
      right:36px;
      top:36px;
      max-width:240px;
      font-size:1.7rem;
      line-height:1.15;
      color:#6c5f57;
      font-family:"Libre Baskerville", Baskerville, Georgia, serif;
      font-style:italic;
    }

    .footer{
      background:#f3ece7;
      border-top:1px solid var(--line);
    }
    .footer-row{
      min-height:46px;
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:20px;
      font-size:.77rem;
      color:#6b645e;
    }
    .footer-links{
      display:flex;
      gap:22px;
      align-items:center;
    }
    .footer-links a{
      text-decoration:none;
    }

    .fade.reveal-wait{
      opacity:0;
      transform:translateY(18px);
      transition:opacity .6s ease, transform .6s ease;
    }
    .fade.in{
      opacity:1;
      transform:none;
    }


    /* --- v5: more open, editorial sections --- */
    .about-centered{
      max-width:820px;
      margin:0 auto;
      text-align:center;
    }
    .about-centered .section-title{
      margin-bottom:42px;
    }
    .about-centered .section-title h2{
      font-size:clamp(2.8rem,5vw,4.5rem);
    }
    .about-centered-copy{
      display:grid;
      gap:28px;
    }
    .about-centered-copy p{
      color:#5d5752;
      font-size:1.03rem;
      line-height:1.82;
    }
    .about-illustration{
      width:min(100%,720px);
      margin:72px auto 0;
    }
    .about-illustration svg{
      display:block;
      width:100%;
      height:auto;
    }

    .work-grid{
      gap:44px 34px;
      margin-top:58px;
    }
    .work-item{
      padding:0 8px;
    }
    .work-illustration{
      width:150px;
      height:112px;
      margin:0 auto 28px;
    }
    .work-illustration svg{
      display:block;
      width:100%;
      height:100%;
    }
    .work-item h3{
      margin-bottom:16px;
    }
    .work-item p{
      max-width:255px;
      line-height:1.68;
      margin:0 auto 10px;
      text-align:left;
    }

    .training{
      grid-template-columns:repeat(3,1fr);
      gap:64px;
      max-width:900px;
      margin:12px auto 0;
    }
    .training-card{
      padding:12px 18px;
    }
    .training-card .icon{
      margin-bottom:18px;
    }
    .training-card .icon svg{
      width:38px;
      height:38px;
    }

    .contact-copy{
      padding:54px 42px 34px;
    }
    .contact-copy p{
      max-width:470px;
      font-size:1rem;
      line-height:1.72;
      color:#f4dce1;
    }




    /* Formación: tipografía fina como en la v8 */
    #formacion .section-title h2,
    #formacion .training-card h3{
      font-family:"Cormorant Garamond", Georgia, serif;
      font-weight:500;
      letter-spacing:-.02em;
    }

    /* Formación: entrada más marcada */
    .formation-reveal.reveal-wait{
      opacity:0;
      transform:translateY(72px) scale(.92);
      filter:blur(4px);
      transition:
        opacity .78s ease,
        transform .92s cubic-bezier(.16,.84,.24,1),
        filter .72s ease;
      will-change:transform,opacity,filter;
    }
    .formation-reveal.in{
      opacity:1;
      transform:translateY(0) scale(1);
      filter:blur(0);
    }
    #formacion .training-card:nth-child(2){transition-delay:.12s}
    #formacion .training-card:nth-child(3){transition-delay:.24s}

    /* Desplazamiento suave y escalonado de "Cómo trabajo" */
    .work-slide.reveal-wait{
      opacity:0;
      transform:translateY(44px);
      transition:
        opacity .72s ease,
        transform .82s cubic-bezier(.22,.72,.24,1);
      will-change:transform,opacity;
    }
    .work-slide:nth-child(2){transition-delay:.08s}
    .work-slide:nth-child(3){transition-delay:.16s}
    .work-slide:nth-child(4){transition-delay:.24s}
    .work-slide.in{
      opacity:1;
      transform:translateY(0);
    }

    @media (max-width: 1100px){
      .help-grid{
        grid-template-columns:repeat(3, minmax(0, 1fr));
      }
      .training{
        grid-template-columns:1fr 1fr;
      }
      #formacion .training-card:nth-child(3){
        grid-column:1 / -1;
        width:min(100%, 380px);
        justify-self:center;
      }
      .training-intro{
        grid-column:1 / -1;
      }
    }


    @media (max-width: 860px){
      .help-grid{
        grid-template-columns:repeat(2, minmax(0, 1fr));
      }
    }

    @media (max-width: 540px){
      .help-grid{
        grid-template-columns:1fr;
      }
      .help-card{
        min-height:auto;
      }
    }

    @media (max-width: 900px){
      .menu a:not(.btn){display:none}
      .hero-frame{
        min-height:520px;
        background-position:center right 38%;
      }
      .hero-panel{
        left:32px;
        width:min(420px, calc(100% - 64px));
      }
      .section-head,
      .about-grid,
      .contact{
        grid-template-columns:1fr;
      }
      .work-grid{
        grid-template-columns:repeat(2,1fr);
        gap:28px 16px;
      }
      .about-photo,.quote-box{
        min-height:280px;
      }
    }

    @media (max-width: 640px){
      .shell{
        width:min(calc(100% - 24px), var(--max));
      }
      .brand-copy strong{
        font-size:1.52rem;
      }
      .brand-mark{
        width:42px;
        height:42px;
      }
      .brand{
        gap:9px;
      }
      .brand-copy > span{
        margin-top:5px;
        font-size:.55rem;
        letter-spacing:.18em;
      }
      .brand span{font-size:.64rem;letter-spacing:.18em}
      .nav{min-height:68px}
      .hero-frame{
        min-height:470px;
        background-position:68% center;
      }
      .hero-panel{
        left:18px;
        right:18px;
        width:auto;
        top:auto;
        bottom:24px;
        transform:none;
        padding:0;
      }
      .hero-panel h1{
        font-size:clamp(2.9rem,12vw,4.2rem);
        max-width:290px;
      }
      .hero-panel p{
        font-size:.92rem;
        max-width:285px;
      }
      .hero-actions{
        gap:10px;
      }
      .hero-btn{
        min-height:40px;
        padding:0 18px;
        font-size:.86rem;
      }
      .section{
        padding:78px 0;
      }
      .work-grid{
        grid-template-columns:1fr;
      }
      .help-grid{
        grid-template-columns:1fr 1fr;
        gap:18px;
      }
      .help-card{
        min-height:250px;
      }
      .training{
        grid-template-columns:1fr;
        gap:44px;
      }
      #formacion .training-card:nth-child(3){
        grid-column:auto;
        width:100%;
        justify-self:stretch;
      }
      .about-illustration{
        margin-top:52px;
      }
      .about-centered-copy{
        gap:24px;
      }
      .footer-row{
        min-height:auto;
        padding:12px 0;
        flex-direction:column;
        align-items:flex-start;
      }
      .contact-copy{
        padding:32px 20px 22px;
      }
      .contact-copy h2{
        font-size:4rem;
      }
      .contact-bottom{
        gap:12px 18px;
        flex-direction:column;
        align-items:flex-start;
      }
      .contact-visual,
      .contact-visual img{
        min-height:270px;
      }
      .contact-visual img{
        object-position:left center;
      }
      .contact-hand{
        right:18px;
        top:18px;
        font-size:1.4rem;
        max-width:190px;
      }
    }
      @media(prefers-reduced-motion:reduce){
      html{scroll-behavior:auto}
      .fade,.work-slide,.formation-reveal.reveal-wait{
        opacity:1;
        transform:none;
        filter:none;
        transition:none;
      }
    }
  
    /* ===== v17 · portada corregida ===== */
    .hero{
      background:#f1e9e2;
      border-bottom:1px solid var(--line);
    }

    .hero .shell{
      width:100%;
      max-width:none;
      margin:0;
    }

    .hero-frame{
      position:relative;
      width:100%;
      aspect-ratio:2048 / 699;
      min-height:0;
      overflow:hidden;
      background:#eee5de !important;
    }

    .hero-frame::before{
      content:none !important;
    }

    .hero-photo{
      position:absolute;
      inset:0;
      display:block;
      width:100%;
      height:100%;
      object-fit:cover;
      object-position:center center;
      z-index:0;
    }

    .hero-overlay{
      position:absolute;
      inset:0;
      z-index:1;
      background:linear-gradient(
        90deg,
        rgba(247,241,235,.26) 0%,
        rgba(247,241,235,.12) 24%,
        rgba(247,241,235,.025) 42%,
        rgba(247,241,235,0) 56%
      );
      pointer-events:none;
    }

    .hero-panel{
      position:absolute;
      z-index:2;
      left:clamp(42px,7vw,128px);
      top:50%;
      transform:translateY(-50%);
      width:min(490px,35vw);
      margin:0;
      padding:0;
      background:transparent !important;
      backdrop-filter:none !important;
      border:0;
      border-radius:0;
      box-shadow:none !important;
    }

    .hero-panel .eyebrow{
      margin:0 0 18px;
      font-size:.7rem;
      font-weight:500;
      letter-spacing:.21em;
      line-height:1.3;
      text-transform:uppercase;
      color:#726a64;
    }

    .hero-panel h1{
      max-width:465px;
      margin:0;
      font-family:"Cormorant Garamond",Georgia,serif;
      font-size:clamp(3.4rem,4.4vw,5.35rem);
      font-weight:500;
      line-height:.96;
      letter-spacing:-.035em;
      color:#4d3d35;
    }

    .hero-panel p{
      max-width:390px;
      margin:22px 0 0;
      font-size:.98rem;
      line-height:1.68;
      color:#57514d;
    }

    .hero-actions{
      display:flex;
      flex-wrap:wrap;
      gap:12px;
      margin-top:28px;
    }

    .hero-btn{
      min-height:43px;
      padding:0 21px;
    }

    @media (max-width: 1050px){
      .hero-frame{
        aspect-ratio:auto;
        min-height:520px;
      }

      .hero-photo{
        object-position:61% center;
      }

      .hero-panel{
        left:34px;
        width:min(390px,43vw);
      }

      .hero-panel h1{
        font-size:clamp(2.9rem,5.5vw,4.2rem);
      }

      .hero-panel p{
        font-size:.92rem;
        max-width:340px;
      }
    }

    @media (max-width: 700px){
      .hero-frame{
        aspect-ratio:auto;
        min-height:730px;
        background:#f3ece6 !important;
      }

      .hero-photo{
        position:absolute;
        top:0;
        left:0;
        right:0;
        width:100%;
        height:53%;
        object-fit:cover;
        object-position:69% center;
      }

      .hero-overlay{
        display:none;
      }

      .hero-panel{
        left:20px;
        right:20px;
        top:auto;
        bottom:28px;
        width:auto;
        transform:none;
      }

      .hero-panel .eyebrow{
        margin-bottom:13px;
        font-size:.64rem;
        letter-spacing:.17em;
      }

      .hero-panel h1{
        max-width:100%;
        font-size:clamp(2.8rem,11.5vw,3.8rem);
        line-height:1;
      }

      .hero-panel p{
        max-width:100%;
        margin-top:16px;
        font-size:.92rem;
        line-height:1.58;
      }

      .hero-actions{
        margin-top:21px;
      }
    }

  
    /* ===== v18 · centrado vertical real del bloque de portada ===== */
    .hero-panel.fade.reveal-wait{
      transform:translateY(calc(-50% + 18px));
    }

    .hero-panel.fade.in{
      transform:translateY(-50%);
    }

    @media (max-width:700px){
      .hero-panel.fade,
      .hero-panel.fade.in{
        transform:none;
      }
    }

  
    /* ===== v19 · información práctica de sesiones ===== */
    .session-info{
      padding:70px 0 74px;
      background:#f7f2ed;
      border-bottom:1px solid var(--line);
    }

    .session-info-inner{
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:32px;
      padding:26px 0;
      border-top:1px solid rgba(111,96,84,.18);
      border-bottom:1px solid rgba(111,96,84,.18);
    }

    .session-info-label{
      font-family:"Cormorant Garamond",Georgia,serif;
      font-size:2.2rem;
      font-weight:500;
      line-height:1;
      color:#4d3d35;
    }

    .session-info-data{
      display:flex;
      align-items:center;
      justify-content:flex-end;
      gap:22px;
      color:#655b55;
      font-size:.95rem;
    }

    .session-info-data span{
      display:inline-flex;
      align-items:center;
      gap:7px;
    }

    .session-info-data strong{
      font-weight:500;
      color:#51453e;
    }

    .session-dot{
      width:4px;
      height:4px;
      border-radius:50%;
      background:#c7aeb0;
      flex:0 0 auto;
    }

    @media (max-width:700px){
      .session-info{
        padding:54px 0 58px;
      }

      .session-info-inner{
        align-items:flex-start;
        flex-direction:column;
        gap:20px;
      }

      .session-info-label{
        font-size:2rem;
      }

      .session-info-data{
        align-items:flex-start;
        flex-direction:column;
        gap:12px;
      }

      .session-dot{
        display:none;
      }
    }

  
    /* ===== v20 · portada adaptativa real ===== */

    /* Escritorio ancho: texto sobre la zona libre izquierda de la foto */
    @media (min-width:1101px){
      .hero-frame{
        aspect-ratio:2048 / 699;
        min-height:0;
      }

      .hero-photo{
        position:absolute;
        inset:0;
        width:100%;
        height:100%;
        object-fit:cover;
        object-position:center center;
      }

      .hero-panel{
        left:clamp(44px,7vw,128px);
        top:50%;
        bottom:auto;
        width:min(470px,36vw);
        transform:translateY(-50%);
      }

      .hero-panel.fade.reveal-wait{
        transform:translateY(calc(-50% + 18px));
      }

      .hero-panel.fade.in{
        transform:translateY(-50%);
      }

      .hero-panel h1{
        font-size:clamp(3.2rem,4.35vw,5.15rem);
        line-height:.97;
      }

      .hero-panel p{
        max-width:400px;
      }
    }

    /* Tablet: foto arriba y contenido debajo.
       Evita texto encajonado sobre la persona y funciona tanto vertical como horizontal. */
    @media (min-width:701px) and (max-width:1100px){
      .hero{
        background:#f4ede7;
      }

      .hero-frame{
        display:grid;
        grid-template-rows:minmax(330px,46vw) auto;
        min-height:0;
        aspect-ratio:auto;
        overflow:hidden;
      }

      .hero-photo{
        position:relative;
        inset:auto;
        grid-row:1;
        width:100%;
        height:100%;
        object-fit:cover;
        object-position:66% center;
      }

      .hero-overlay{
        display:none;
      }

      .hero-panel,
      .hero-panel.fade,
      .hero-panel.fade.in{
        position:relative;
        left:auto;
        right:auto;
        top:auto;
        bottom:auto;
        grid-row:2;
        width:min(100% - 64px,760px);
        margin:0 auto;
        padding:48px 0 54px;
        transform:none;
      }

      .hero-panel h1{
        max-width:660px;
        font-size:clamp(3rem,6.4vw,4.7rem);
        line-height:1;
      }

      .hero-panel p{
        max-width:620px;
        margin-top:20px;
        font-size:1rem;
      }

      .hero-actions{
        margin-top:24px;
      }
    }

    /* Móvil: imagen independiente + contenido con aire debajo */
    @media (max-width:700px){
      .hero{
        background:#f4ede7;
      }

      .hero-frame{
        display:grid;
        grid-template-rows:310px auto;
        min-height:0;
        aspect-ratio:auto;
        overflow:hidden;
      }

      .hero-photo{
        position:relative;
        inset:auto;
        grid-row:1;
        width:100%;
        height:100%;
        object-fit:cover;
        object-position:69% center;
      }

      .hero-overlay{
        display:none;
      }

      .hero-panel,
      .hero-panel.fade,
      .hero-panel.fade.in{
        position:relative;
        left:auto;
        right:auto;
        top:auto;
        bottom:auto;
        grid-row:2;
        width:auto;
        margin:0;
        padding:36px 22px 42px;
        transform:none;
      }

      .hero-panel .eyebrow{
        margin-bottom:14px;
        font-size:.62rem;
        line-height:1.45;
        letter-spacing:.16em;
      }

      .hero-panel h1{
        max-width:100%;
        font-size:clamp(2.6rem,12.3vw,3.55rem);
        line-height:1.01;
        letter-spacing:-.035em;
      }

      .hero-panel p{
        max-width:100%;
        margin-top:18px;
        font-size:.94rem;
        line-height:1.62;
      }

      .hero-actions{
        margin-top:22px;
      }

      .hero-btn{
        min-height:44px;
        padding:0 21px;
      }
    }

    /* ===== v20 · sesiones ===== */
    .session-info{
      padding:96px 0;
      background:
        radial-gradient(circle at 15% 50%, rgba(232,201,207,.20), transparent 26%),
        radial-gradient(circle at 87% 40%, rgba(202,218,199,.28), transparent 28%),
        #f8f4ef;
      border-bottom:1px solid var(--line);
    }

    .session-editorial{
      width:min(100%,900px);
      margin:0 auto;
      display:grid;
      grid-template-columns:1fr 1.2fr;
      align-items:center;
      gap:72px;
    }

    .session-heading{
      text-align:left;
    }

    .session-kicker{
      display:block;
      margin-bottom:9px;
      font-size:.67rem;
      font-weight:500;
      letter-spacing:.20em;
      text-transform:uppercase;
      color:#8c7e75;
    }

    .session-heading h2{
      font-family:"Cormorant Garamond",Georgia,serif;
      font-size:clamp(3rem,5vw,4.4rem);
      font-weight:500;
      line-height:1;
      color:#4d3d35;
    }

    .session-values{
      display:flex;
      align-items:center;
      justify-content:center;
      gap:42px;
      padding:32px 38px;
      border-radius:999px;
      background:rgba(255,255,255,.52);
      border:1px solid rgba(119,101,90,.13);
    }

    .session-value{
      min-width:120px;
      text-align:center;
    }

    .session-value strong{
      display:block;
      font-family:"Cormorant Garamond",Georgia,serif;
      font-size:2.45rem;
      font-weight:500;
      line-height:1;
      color:#59473e;
    }

    .session-value span{
      display:block;
      margin-top:6px;
      font-size:.77rem;
      letter-spacing:.06em;
      color:#7b7068;
    }

    .session-divider{
      width:1px;
      height:54px;
      background:rgba(100,83,72,.16);
    }

    @media (max-width:900px){
      .session-info{
        padding:74px 0;
      }

      .session-editorial{
        grid-template-columns:1fr;
        gap:34px;
        width:min(100%,620px);
      }

      .session-heading{
        text-align:center;
      }
    }

    @media (max-width:520px){
      .session-info{
        padding:62px 0;
      }

      .session-values{
        gap:24px;
        padding:28px 18px;
      }

      .session-value{
        min-width:0;
        flex:1;
      }

      .session-value strong{
        font-size:2.15rem;
      }

      .session-divider{
        height:48px;
      }
    }

  
    /* ===== v21 · foto real en Sobre mí ===== */
    .about-real-photo{
      width:min(100%,860px);
      margin:62px auto 0;
      overflow:hidden;
      border-radius:10px;
    }

    .about-real-photo img{
      display:block;
      width:100%;
      height:auto;
      aspect-ratio:1122 / 894;
      object-fit:cover;
      object-position:center center;
    }

    /* ===== v21 · información de sesiones integrada ===== */
    .help-session-info{
      width:min(100%,720px);
      margin:38px auto 0;
      padding-top:30px;
      border-top:1px solid rgba(90,72,62,.14);
      text-align:center;
      color:#665a53;
      font-size:.98rem;
      line-height:1.65;
    }

    /* ===== v21 · tarjetas de ayuda robustas en todos los viewports ===== */
    .help-grid{
      width:100%;
      max-width:100%;
      min-width:0;
    }

    .help-card{
      min-width:0;
      max-width:100%;
      overflow:hidden;
    }

    .help-card > *{
      min-width:0;
      max-width:100%;
    }

    @media (max-width:700px){
      .help-grid{
        display:grid !important;
        grid-template-columns:minmax(0,1fr) !important;
        gap:18px !important;
        width:100% !important;
        max-width:100% !important;
        overflow:visible !important;
      }

      .help-card{
        width:100% !important;
        min-width:0 !important;
        max-width:100% !important;
        min-height:auto !important;
        margin:0 !important;
      }

      .help-card .icon{
        width:112px;
        height:82px;
      }

      .help-card h3{
        min-height:auto;
        margin-bottom:4px;
      }

      .help-card p{
        width:100%;
      }

      .about-real-photo{
        margin-top:44px;
        border-radius:8px;
      }

      .help-session-info{
        margin-top:30px;
        padding-top:26px;
        font-size:.94rem;
      }
    }

  
    /* ===== v22 · jerarquía de títulos ===== */
    #formacion .section-title h2{
      font-family:"Libre Baskerville", Baskerville, Georgia, serif;
      font-size:clamp(2.5rem,4.5vw,4.3rem);
      font-weight:400;
      line-height:1.05;
      letter-spacing:-.02em;
      color:#4d3d35;
    }

    #ayuda .section-title h2{
      line-height:1.12;
    }

  
    /* ===== v23 · Formación centrada ===== */
    #formacion .section-title{
      grid-column:1 / -1;
      justify-self:center;
      width:100%;
      text-align:center;
    }

  
/* v24 production: stable image wrappers, keyboard navigation and safe fallbacks. */
.hero-picture{position:absolute;inset:0;display:block;width:100%;height:100%;min-width:0;}
.about-picture{display:block;width:100%;}
.contact-picture{display:block;width:100%;height:100%;}
@media (max-width:1100px){
  .hero-picture{position:relative;inset:auto;grid-row:1;width:100%;height:100%;min-width:0;min-height:0;overflow:hidden;}
  .hero-photo{position:absolute;inset:0;width:100%;height:100%;}
}
.skip-link{position:fixed;left:16px;top:12px;z-index:1000;padding:12px 18px;background:#f6f0ea;color:#4d3d35;border:2px solid #7f8b75;border-radius:6px;transform:translateY(-180%);}
.skip-link:focus{transform:translateY(0);}
a:focus-visible{outline:3px solid #6f7a67;outline-offset:5px;}
#contenido:focus{outline:none;}
section[id],#contacto{scroll-margin-top:100px;}
.contact-bottom a{color:inherit;text-decoration:none;}
.contact-bottom a:hover{text-decoration:underline;}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto;}
  .fade.reveal-wait,.work-slide.reveal-wait,.formation-reveal.reveal-wait{opacity:1;transform:none;filter:none;transition:none;}
  .btn,.hero-btn,.contact-cta{transition:none;}
}
@media print{
  .topbar{position:static;}.menu,.hero-actions,.contact-cta,.skip-link{display:none;}
  .fade,.work-slide,.formation-reveal{opacity:1;transform:none;filter:none;}
  .section{padding:35px 0;}a{color:inherit;}
}

@media (max-width:400px){
 .nav{gap:10px;}.brand{gap:6px;}.brand-mark{width:34px;height:40px;}
 .brand-copy strong{font-size:1.25rem;}.brand-copy>span{font-size:.44rem;letter-spacing:.13em;}
 .menu .btn{min-height:44px;padding:0 12px;font-size:.8rem;}
 .work-item h3{overflow-wrap:anywhere;}
}
/* Informational pages use the same brand, palette and heading hierarchy. */
.legal-page{max-width:860px;padding:64px 0 88px;min-height:65vh;}
.legal-page h1{font-size:clamp(2.3rem,5vw,3.7rem);font-weight:400;line-height:1.18;overflow-wrap:anywhere;}
.legal-page h2{font-size:clamp(1.5rem,3vw,2rem);font-weight:400;line-height:1.25;margin:40px 0 14px;}
.legal-page p{margin:16px 0;color:#5d5752;line-height:1.8;}
.legal-page a{overflow-wrap:anywhere;}
.legal-back{display:inline-block;margin-bottom:30px;color:#6f7a67;}
.legal-intro{font-size:1.06rem;}
.legal-data{display:grid;grid-template-columns:minmax(130px,1fr) minmax(0,2fr);gap:16px 24px;padding:24px 0;border-block:1px solid var(--line);}
.legal-data dt{font-weight:500;}.legal-data dd{margin:0;overflow-wrap:anywhere;}
.error-page .btn{margin-top:20px;}
@media(max-width:540px){.legal-data{grid-template-columns:1fr;gap:6px;}.legal-data dd{margin-bottom:14px;}.legal-page{padding:44px 0 60px;}}
/* Keep transitions on the persistent class, not the temporary hidden state. */
.fade{transition:opacity .6s ease,transform .6s ease;}
.work-slide{transition:opacity .72s ease,transform .82s cubic-bezier(.22,.72,.24,1);}
.formation-reveal{transition:opacity .78s ease,transform .92s cubic-bezier(.16,.84,.24,1),filter .72s ease;}
@media(prefers-reduced-motion:reduce){.fade,.work-slide,.formation-reveal{transition:none;}}

/* Prevent the unchanged brand and navigation colliding at intermediate widths. */
@media(min-width:401px) and (max-width:520px){
 .nav{gap:10px;}.brand{gap:8px;}.brand-mark{width:38px;height:42px;}
 .brand-copy strong{font-size:1.4rem;}.brand-copy>span{font-size:.5rem;letter-spacing:.14em;}
 .menu .btn{min-height:44px;padding:0 14px;font-size:.82rem;}
}
@media(min-width:901px) and (max-width:1100px){.menu a:not(.btn){display:none;}}
