:root{
    --bg:#241209;
    --bg-rgb:36,18,9;
    --bg-soft:#331808;
    --panel:#3E1D0E;
    --panel-line:rgba(217,210,197,0.10);
    --line-strong:rgba(217,210,197,0.22);
    --cream:#EFE7D8;
    --cream-dim:#C7B79C;
    --gold:#E3CE95;
    --gold-bright:#C1652E;
    --clay:#8C451C;
    --teal:#555936;
    --teal-bright:#7C8150;
    --radius:14px;
    --maxw:1180px;
  }

  :root[data-theme="light"]{
    --bg:#F3EEE2;
    --bg-rgb:243,238,226;
    --bg-soft:#EAE1CE;
    --panel:#FFFFFF;
    --panel-line:rgba(46,24,13,0.10);
    --line-strong:rgba(46,24,13,0.20);
    --cream:#2E160B;
    --cream-dim:#6B5A3F;
    --gold:#C9A667;
    --gold-bright:#8C451C;
    --clay:#8C451C;
    --teal:#555936;
    --teal-bright:#6E7443;
  }

  *{box-sizing:border-box; margin:0; padding:0;}
  html{scroll-behavior:smooth;}
  body{
    background:var(--bg);
    color:var(--cream);
    font-family:'Inter', sans-serif;
    line-height:1.6;
    -webkit-font-smoothing:antialiased;
    overflow-x:hidden;
    transition:background .3s ease, color .3s ease;
  }
  img,svg{display:block; max-width:100%;}
  a{color:inherit; text-decoration:none;}
  ul{list-style:none;}
  button{font-family:inherit; cursor:pointer;}

  .wrap{max-width:var(--maxw); margin:0 auto; padding:0 32px;}

  h1,h2,h3{
    font-family:'Fraunces', serif;
    font-weight:500;
    letter-spacing:-0.01em;
    color:var(--cream);
  }

  .eyebrow{
    font-family:'IBM Plex Mono', monospace;
    font-size:12px;
    letter-spacing:0.14em;
    text-transform:uppercase;
    color:var(--gold-bright);
    display:flex;
    align-items:center;
    gap:10px;
    margin-bottom:14px;
  }
  .eyebrow::before{
    content:"";
    width:22px; height:1px;
    background:var(--gold-bright);
    display:inline-block;
  }

  /* ---------- Header ---------- */
  header{
    position:fixed; top:0; left:0; right:0; z-index:100;
    padding:22px 0;
    transition:padding .3s ease, background .3s ease, border-color .3s ease;
    border-bottom:1px solid transparent;
  }
  header.scrolled{
    padding:14px 0;
    background:rgba(var(--bg-rgb),0.92);
    backdrop-filter:blur(10px);
    border-bottom:1px solid var(--panel-line);
  }
  header .wrap{display:flex; align-items:center; justify-content:space-between;}
  .brand{
    font-family:'Fraunces', serif;
    font-size:21px;
    font-weight:600;
    letter-spacing:0.01em;
    display:flex; align-items:center; gap:10px;
  }
  .brand .mark{width:26px; height:26px; flex-shrink:0;}
  nav.primary-nav{display:flex; align-items:center; gap:34px;}
  nav.primary-nav a{
    font-size:14px; color:var(--cream-dim);
    transition:color .2s ease;
    position:relative;
    padding:4px 0;
  }
  nav.primary-nav a:hover, nav.primary-nav a.active{color:var(--cream);}
  nav.primary-nav a.active::after{
    content:"";
    position:absolute; left:0; right:0; bottom:-3px;
    height:1px; background:var(--gold);
  }
  .header-actions{display:flex; align-items:center; gap:18px;}
  .btn{
    display:inline-flex; align-items:center; justify-content:center; gap:8px;
    font-size:14px; font-weight:500;
    padding:12px 22px;
    border-radius:100px;
    border:1px solid transparent;
    transition:transform .2s ease, background .2s ease, border-color .2s ease, opacity .2s ease;
    white-space:nowrap;
  }
  .btn-primary{background:var(--gold); color:#2E160B;}
  .btn-primary:hover{background:var(--gold-bright); transform:translateY(-1px);}
  .btn-outline{border-color:var(--line-strong); color:var(--cream);}
  .btn-outline:hover{border-color:var(--cream); background:var(--panel-line);}
  .btn-small{padding:9px 16px; font-size:13px;}

  .menu-toggle{
    display:none; width:38px; height:38px; border-radius:8px;
    background:transparent; border:1px solid var(--line-strong);
    align-items:center; justify-content:center;
  }
  .menu-toggle span, .menu-toggle span::before, .menu-toggle span::after{
    content:""; display:block; width:16px; height:1px; background:var(--cream);
    position:relative; transition:transform .25s ease, opacity .25s ease;
  }
  .menu-toggle span::before{position:absolute; top:-5px;}
  .menu-toggle span::after{position:absolute; top:5px;}
  .menu-toggle.open span{background:transparent;}
  .menu-toggle.open span::before{transform:translateY(5px) rotate(45deg);}
  .menu-toggle.open span::after{transform:translateY(-5px) rotate(-45deg);}

  .theme-ring{stroke:var(--panel-line);}

  .theme-toggle{
    width:38px; height:38px; border-radius:50%;
    background:transparent; border:1px solid var(--line-strong);
    display:flex; align-items:center; justify-content:center;
    color:var(--cream); flex-shrink:0;
    transition:border-color .2s ease, background .2s ease;
  }
  .theme-toggle:hover{background:var(--panel-line);}
  .theme-toggle svg{width:16px; height:16px;}
  .theme-toggle .icon-moon{display:none;}
  [data-theme="light"] .theme-toggle .icon-sun{display:none;}
  [data-theme="light"] .theme-toggle .icon-moon{display:block;}

  .mobile-panel{
    display:none;
    position:fixed; inset:0; z-index:99;
    background:var(--bg);
    padding:110px 32px 40px;
    flex-direction:column; gap:26px;
  }
  .mobile-panel.open{display:flex;}
  .mobile-panel a{font-size:20px; font-family:'Fraunces', serif;}

  /* ---------- Hero ---------- */
  .hero{
    position:relative;
    padding:180px 0 120px;
    overflow:hidden;
  }
  .hero .wrap{
    display:grid;
    grid-template-columns:1.05fr 0.8fr;
    gap:60px;
    align-items:center;
  }
  .hero h1{
    font-size:clamp(38px, 5vw, 62px);
    line-height:1.06;
    margin-bottom:22px;
  }
  .hero .sub{
    font-size:17px;
    color:var(--cream-dim);
    max-width:46ch;
    margin-bottom:34px;
  }
  .trust-row{
    display:flex; align-items:center; gap:12px;
    margin-bottom:38px;
    font-size:14px;
    color:var(--cream-dim);
  }
  .stars{display:flex; gap:2px; color:var(--gold-bright);}
  .stars svg{width:15px; height:15px;}
  .hero-actions{display:flex; gap:16px; flex-wrap:wrap; margin-bottom:36px;}
  .hero-meta{
    display:flex; align-items:center; gap:8px;
    font-size:13px; color:var(--cream-dim);
    font-family:'IBM Plex Mono', monospace;
  }
  .hero-meta svg{width:14px; height:14px; flex-shrink:0; color:var(--gold-bright);}

  .hero-art{
    position:relative;
    aspect-ratio:1/1;
    display:flex; align-items:center; justify-content:center;
  }
  .hero-art svg{width:100%; height:100%;}

  /* braid divider */
  .divider{width:100%; height:34px; opacity:0.75;}
  .divider svg{width:100%; height:100%;}

  /* ---------- Sections generic ---------- */
  section{padding:96px 0;}
  .section-head{max-width:640px; margin-bottom:56px;}
  .section-head h2{font-size:clamp(28px,3.4vw,40px); line-height:1.15;}
  .section-head p{color:var(--cream-dim); margin-top:16px; font-size:16px; max-width:56ch;}

  /* ---------- About ---------- */
  .about .wrap{
    display:block;
  }
  .about-copy p{color:var(--cream-dim); margin-bottom:18px; max-width:64ch;}
  .specialty-tags{display:flex; flex-wrap:wrap; gap:10px; margin-top:28px;}
  .specialty-tags span{
    font-family:'IBM Plex Mono', monospace;
    font-size:12px; letter-spacing:0.02em;
    padding:8px 14px; border-radius:100px;
    border:1px solid var(--panel-line);
    color:var(--cream-dim);
  }

  /* ---------- Pillars ---------- */
  .pillars-grid{
    display:grid;
    grid-template-columns:repeat(3, 1fr);
    gap:1px;
    background:var(--panel-line);
    border:1px solid var(--panel-line);
    border-radius:var(--radius);
    overflow:hidden;
  }
  .pillar{
    background:var(--bg-soft);
    padding:36px 32px;
  }
  .pillar .icon{
    width:38px; height:38px;
    border-radius:10px;
    background:rgba(199,154,91,0.14);
    display:flex; align-items:center; justify-content:center;
    margin-bottom:22px;
    color:var(--gold-bright);
  }
  .pillar .icon svg{width:19px; height:19px;}
  .pillar h3{font-size:19px; margin-bottom:10px;}
  .pillar p{color:var(--cream-dim); font-size:15px;}

  /* ---------- Services (menu style) ---------- */
  .services-intro{
    display:flex; justify-content:space-between; align-items:flex-end; gap:24px; flex-wrap:wrap;
    margin-bottom:44px;
  }
  .menu-note{font-size:14px; color:var(--cream-dim); max-width:38ch;}
  .menu-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:56px;
  }
  .menu-cat-title{
    font-family:'Fraunces', serif;
    font-size:20px;
    color:var(--gold-bright);
    margin-bottom:22px;
    padding-bottom:14px;
    border-bottom:1px solid var(--panel-line);
  }
  .menu-item{
    display:flex; align-items:baseline; gap:10px;
    padding:14px 0;
    border-bottom:1px dashed var(--panel-line);
  }
  .menu-item:last-child{border-bottom:none;}
  .menu-item .name{font-size:16px; color:var(--cream);}
  .menu-item .leader{flex:1; border-bottom:1px dotted var(--line-strong); height:0; transform:translateY(-4px);}
  .menu-item .price{
    font-family:'IBM Plex Mono', monospace;
    font-size:14px;
    color:var(--gold-bright);
    white-space:nowrap;
  }
  .menu-item .price.consult{color:var(--cream-dim); font-style:italic;}
  .menu-footnote{font-size:13px; color:var(--cream-dim); margin-top:26px;}
  .services-cta{margin-top:44px;}

  .style-gallery{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(210px, 1fr));
    gap:22px;
    margin-bottom:60px;
  }
  .style-card{
    background:var(--bg-soft);
    border:1px solid var(--panel-line);
    border-radius:var(--radius);
    overflow:hidden;
    display:flex; flex-direction:column;
    transition:transform .25s ease, border-color .25s ease;
  }
  .style-card:hover{transform:translateY(-4px); border-color:var(--line-strong);}
  .style-card .photo{width:100%; aspect-ratio:3/4; overflow:hidden; background:var(--panel);}
  .style-card .photo img{width:100%; height:100%; object-fit:cover; display:block;}
  .style-card .info{padding:18px 20px 22px;}
  .style-card h3{font-size:17px; margin-bottom:8px;}
  .style-card .price{font-family:'IBM Plex Mono', monospace; font-size:14px; color:var(--gold-bright); margin-bottom:14px;}
  .style-card .price em{color:var(--cream-dim); font-style:normal; font-size:12px;}
  .style-card .card-cta{font-size:13px; color:var(--cream-dim); display:inline-flex; align-items:center; gap:6px;}
  .style-card .card-cta svg{width:13px; height:13px;}
  .style-card .card-cta:hover{color:var(--gold-bright);}


  /* ---------- Testimonials ---------- */
  .rating-summary{
    display:flex; align-items:center; gap:16px;
    margin-bottom:48px;
    padding:24px 28px;
    background:var(--panel);
    border:1px solid var(--panel-line);
    border-radius:var(--radius);
    max-width:520px;
  }
  .rating-number{font-family:'Fraunces', serif; font-size:34px; color:var(--gold-bright);}
  .rating-summary .stars svg{width:16px; height:16px;}
  .rating-summary .detail{font-size:13px; color:var(--cream-dim); margin-top:4px;}

  .testimonial-row{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:24px;
  }
  .testimonial{
    background:var(--bg-soft);
    border:1px solid var(--panel-line);
    border-radius:var(--radius);
    padding:28px;
  }
  .testimonial .stars{margin-bottom:16px;}
  .testimonial p{font-size:15px; color:var(--cream); margin-bottom:18px;}
  .testimonial .source{font-size:12px; color:var(--cream-dim); font-family:'IBM Plex Mono', monospace;}
  .see-all{margin-top:36px; display:inline-flex; align-items:center; gap:8px; font-size:14px; color:var(--gold-bright);}
  .see-all svg{width:14px; height:14px;}

  /* ---------- Location ---------- */
  .location .wrap{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:60px;
    align-items:start;
  }
  .info-card{
    background:var(--panel);
    border:1px solid var(--panel-line);
    border-radius:var(--radius);
    padding:36px;
  }
  .info-row{
    display:flex; gap:16px;
    padding:18px 0;
    border-bottom:1px solid var(--panel-line);
  }
  .info-row:last-child{border-bottom:none;}
  .info-row .icon{width:20px; height:20px; color:var(--gold-bright); flex-shrink:0; margin-top:2px;}
  .info-row .label{font-family:'IBM Plex Mono', monospace; font-size:11px; letter-spacing:0.08em; text-transform:uppercase; color:var(--cream-dim); margin-bottom:4px;}
  .info-row .value{font-size:15px; color:var(--cream);}
  .info-row a.value:hover{color:var(--gold-bright);}
  .location-actions{display:flex; gap:14px; flex-wrap:wrap; margin-top:32px;}

  .location-visual{
    background:var(--bg-soft);
    border:1px solid var(--panel-line);
    border-radius:var(--radius);
    min-height:100%;
    padding:40px;
    display:flex; flex-direction:column; justify-content:space-between;
    position:relative;
    overflow:hidden;
  }
  .location-visual .quote{
    font-family:'Fraunces', serif;
    font-size:24px;
    line-height:1.4;
    color:var(--cream);
    max-width:26ch;
    position:relative; z-index:2;
  }
  .location-visual .quote span{color:var(--gold-bright);}
  .location-visual .signature{position:absolute; bottom:-10px; right:-10px; opacity:0.5; width:220px;}

  /* ---------- Closing CTA ---------- */
  .closing-cta{
    padding:80px 0;
    border-top:1px solid var(--panel-line);
  }
  .closing-cta .wrap{
    background:var(--panel);
    border:1px solid var(--panel-line);
    border-radius:var(--radius);
    padding:56px;
    text-align:center;
    display:flex; flex-direction:column; align-items:center;
  }
  .closing-cta h2{font-size:clamp(26px,3.4vw,36px); max-width:20ch; margin-bottom:16px;}
  .closing-cta p{color:var(--cream-dim); max-width:48ch; margin-bottom:32px;}
  .closing-cta .hero-actions{justify-content:center; margin-bottom:0;}

  /* ---------- Footer ---------- */
  footer{
    border-top:1px solid var(--panel-line);
    padding:52px 0 34px;
  }
  footer .wrap{
    display:flex; justify-content:space-between; align-items:flex-start; flex-wrap:wrap; gap:32px;
  }
  .footer-brand .brand{margin-bottom:10px;}
  .footer-brand p{color:var(--cream-dim); font-size:14px; max-width:32ch;}
  .footer-links{display:flex; gap:64px; flex-wrap:wrap;}
  .footer-col h4{font-family:'IBM Plex Mono', monospace; font-size:12px; text-transform:uppercase; letter-spacing:0.08em; color:var(--cream-dim); margin-bottom:16px;}
  .footer-col a{display:block; font-size:14px; color:var(--cream); margin-bottom:12px; opacity:0.85;}
  .footer-col a:hover{opacity:1; color:var(--gold-bright);}
  .footer-bottom{
    margin-top:56px; padding-top:24px;
    border-top:1px solid var(--panel-line);
    display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px;
    font-size:13px; color:var(--cream-dim);
  }

  /* ---------- WhatsApp float ---------- */
  .wa-float{
    position:fixed; right:24px; bottom:24px; z-index:90;
    width:56px; height:56px; border-radius:50%;
    background:var(--gold);
    display:flex; align-items:center; justify-content:center;
    box-shadow:0 8px 24px rgba(0,0,0,0.35);
    transition:transform .2s ease;
  }
  .wa-float:hover{transform:scale(1.06);}
  .wa-float svg{width:26px; height:26px; color:#2E160B;}

  /* ---------- reveal ---------- */
  .reveal{opacity:0; transform:translateY(18px); transition:opacity .7s ease, transform .7s ease;}
  .reveal.in-view{opacity:1; transform:translateY(0);}
  .reveal-left{transform:translateX(-48px);}
  .reveal-left.in-view{transform:translateX(0);}
  .reveal-right{transform:translateX(48px);}
  .reveal-right.in-view{transform:translateX(0);}

  /* ---------- Cursos (slide-in panel) ---------- */
  .cursos-overlay{
    position:fixed; inset:0; z-index:150;
    background:rgba(0,0,0,0.55);
    opacity:0; pointer-events:none;
    transition:opacity .35s ease;
  }
  .cursos-overlay.open{opacity:1; pointer-events:auto;}

  .cursos-panel{
    position:fixed; top:0; right:0; bottom:0; z-index:151;
    width:min(560px, 92vw);
    background:var(--bg);
    color:var(--cream);
    overflow-y:auto;
    padding:28px 32px 60px;
    transform:translateX(100%);
    transition:transform .45s cubic-bezier(.16,.84,.44,1);
    box-shadow:-30px 0 60px rgba(0,0,0,0.35);
  }
  .cursos-panel.open{transform:translateX(0);}

  .panel-close{
    width:38px; height:38px; border-radius:50%;
    background:transparent; border:1px solid var(--line-strong); color:var(--cream);
    display:flex; align-items:center; justify-content:center;
    margin:0 0 28px auto;
    transition:background .2s ease, border-color .2s ease;
  }
  .panel-close:hover{background:var(--panel-line);}
  .panel-close svg{width:16px; height:16px;}

  .course-photo{
    border-radius:var(--radius);
    overflow:hidden;
    border:1px solid var(--panel-line);
    margin-bottom:28px;
  }
  .course-photo img{width:100%; display:block;}
  .course-copy p{color:var(--cream-dim); margin-bottom:22px; max-width:52ch;}
  .course-highlights{margin-bottom:30px;}
  .course-highlights li{
    display:flex; align-items:flex-start; gap:12px;
    font-size:15px; color:var(--cream);
    padding:10px 0;
    border-bottom:1px solid var(--panel-line);
  }
  .course-highlights li:last-child{border-bottom:none;}
  .course-highlights li svg{width:18px; height:18px; flex-shrink:0; margin-top:1px; color:var(--gold-bright);}
  .course-highlights strong{font-weight:600;}


  /* ---------- Responsive ---------- */
  @media (max-width:980px){
    nav.primary-nav{display:none;}
    .header-actions .btn-primary{display:none;}
    .menu-toggle{display:flex;}
    .hero .wrap{grid-template-columns:1fr; text-align:left;}
    .hero-art{max-width:280px; margin-top:20px;}
    .pillars-grid{grid-template-columns:1fr;}
    .menu-grid{grid-template-columns:1fr; gap:40px;}
    .testimonial-row{grid-template-columns:1fr;}
    .location .wrap{grid-template-columns:1fr;}
    .location-visual{padding:32px; min-height:220px;}
    footer .wrap{flex-direction:column;}
  }
  @media (max-width:520px){
    .wrap{padding:0 20px;}
    .hero{padding:150px 0 80px;}
    section{padding:72px 0;}
    .hero-actions .btn{width:100%;}
    .rating-summary{flex-wrap:wrap;}
  }

  @media (prefers-reduced-motion:reduce){
    .reveal{opacity:1; transform:none; transition:none;}
    html{scroll-behavior:auto;}
    .cursos-panel, .cursos-overlay{transition:none;}
  }
