/* ============================================================
   Marc — Instructor de Esquí Andorra
   Paleta: Azul #1A3A5C · Verde CTA #1D9E75 · Neutro #F5F5F3
   ============================================================ */

:root{
  --blue:#1A3A5C;
  --blue-700:#16314d;
  --blue-900:#0f2236;
  --green:#1D9E75;
  --green-600:#178a64;
  --green-700:#127053;
  --bg:#F5F5F3;
  --white:#FFFFFF;
  --ink:#1b2733;
  --muted:#5b6470;
  --line:#e4e6e2;
  --radius:14px;
  --radius-lg:22px;
  --shadow-sm:0 1px 2px rgba(15,34,54,.06), 0 4px 14px rgba(15,34,54,.05);
  --shadow-md:0 10px 30px rgba(15,34,54,.10);
  --container:1160px;
  --space:clamp(64px, 9vw, 110px);
  --font:'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:var(--font);
  font-size:17px;
  line-height:1.65;
  color:var(--ink);
  background:var(--white);
  -webkit-font-smoothing:antialiased;
}
@media (max-width:600px){ body{font-size:16px} }

img{max-width:100%;display:block;height:auto}
a{color:inherit;text-decoration:none}

h1,h2,h3{margin:0;line-height:1.15;letter-spacing:-.02em;color:var(--blue)}
h1{font-size:clamp(2.1rem,5.2vw,3.6rem);font-weight:800}
h2{font-size:clamp(1.6rem,3.4vw,2.4rem);font-weight:700}
h3{font-size:1.18rem;font-weight:600}
p{margin:0 0 1rem}

.container{width:100%;max-width:var(--container);margin-inline:auto;padding-inline:clamp(18px,4vw,28px)}
.container--narrow{max-width:780px}

.eyebrow,.hero__eyebrow{
  font-size:.82rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;
  color:var(--green-700);margin:0 0 .6rem;
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;align-items:center;gap:.55rem;
  font-weight:600;font-size:1rem;line-height:1;cursor:pointer;
  padding:.95rem 1.5rem;border-radius:999px;border:1px solid transparent;
  transition:background-color .2s ease, box-shadow .2s ease, color .2s ease, border-color .2s ease;
  white-space:nowrap;
}
.btn--whatsapp{background:var(--green);color:#fff;box-shadow:0 6px 18px rgba(29,158,117,.32)}
.btn--whatsapp:hover{background:var(--green-600);box-shadow:0 8px 22px rgba(29,158,117,.4)}
.btn--ghost{background:transparent;color:var(--blue);border-color:rgba(255,255,255,.6);background:rgba(255,255,255,.12);color:#fff}
.btn--ghost:hover{background:rgba(255,255,255,.22)}
.btn--sm{padding:.6rem 1rem;font-size:.92rem}
.btn--lg{padding:1.1rem 1.9rem;font-size:1.08rem}

/* ---------- Header ---------- */
.site-header{
  position:sticky;top:0;z-index:50;
  background:rgba(255,255,255,.92);backdrop-filter:saturate(140%) blur(10px);
  border-bottom:1px solid var(--line);
}
.header__inner{display:flex;align-items:center;justify-content:space-between;gap:1rem;height:70px}
.brand{display:flex;align-items:center;gap:.6rem;color:var(--blue)}
.brand__mark{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:var(--blue);color:#fff}
.brand__text{display:flex;flex-direction:column;line-height:1.1}
.brand__text strong{font-size:1.05rem;font-weight:700;color:var(--blue)}
.brand__text small{font-size:.72rem;color:var(--muted);font-weight:500}
/* Navegación */
.nav{display:flex;align-items:center;gap:1.4rem}
.nav__list{display:flex;align-items:center;gap:1.4rem;list-style:none;margin:0;padding:0}
.nav__list > li{position:relative}
.nav__list a{font-weight:500;color:var(--ink);font-size:.97rem;transition:color .2s;display:inline-flex;align-items:center;gap:.25rem}
.nav__list a:hover,.nav__list a:focus-visible{color:var(--green-700)}
.nav__list .caret{width:12px;height:12px;stroke:currentColor;transition:transform .2s}
/* Submenús (desktop: hover) */
.subnav{position:absolute;top:calc(100% + 10px);left:-14px;min-width:230px;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow-md);padding:.5rem;list-style:none;margin:0;opacity:0;visibility:hidden;transform:translateY(6px);transition:opacity .18s ease,transform .18s ease,visibility .18s;z-index:60}
.subnav::before{content:"";position:absolute;top:-10px;left:0;right:0;height:10px}
.subnav li{display:block}
.subnav a{display:block;padding:.6rem .8rem;border-radius:9px;font-size:.94rem;color:var(--ink)}
.subnav a:hover{background:var(--bg);color:var(--green-700)}
.has-sub:hover > .subnav,.has-sub:focus-within > .subnav{opacity:1;visibility:visible;transform:translateY(0)}
.has-sub:hover > a .caret,.has-sub:focus-within > a .caret{transform:rotate(180deg)}
.nav__cta{display:none}
.nav-toggle{display:none;align-items:center;justify-content:center;width:44px;height:44px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--blue);cursor:pointer}

@media (max-width:880px){
  .nav-toggle{display:inline-flex}
  .header__cta{display:none}
  .nav{
    position:fixed;inset:70px 0 0;display:block;background:#fff;
    padding:1.2rem clamp(18px,4vw,28px) 2rem;gap:0;overflow-y:auto;
    transform:translateX(100%);transition:transform .25s ease;
    border-top:1px solid var(--line);
  }
  .site-header.is-open .nav{transform:translateX(0)}
  .nav__list{flex-direction:column;align-items:stretch;gap:0;width:100%}
  .nav__list > li{border-bottom:1px solid var(--line)}
  .nav__list a{padding:.95rem .2rem;font-size:1.05rem;justify-content:space-between}
  .nav__list a .caret{display:none}
  .subnav{position:static;opacity:1;visibility:visible;transform:none;box-shadow:none;border:none;padding:0 0 .6rem .8rem;min-width:0}
  .subnav a{font-size:.98rem;color:var(--muted);padding:.55rem .4rem}
  .nav__cta{display:inline-flex;margin-top:1.4rem;width:100%;justify-content:center}
}
@media (max-width:520px){ .brand__text small{display:none} }

/* ---------- Hero ---------- */
.hero{position:relative;color:#fff;isolation:isolate;background:var(--blue-900)}
.hero__media{position:absolute;inset:0;z-index:-2}
.hero__media img{width:100%;height:100%;object-fit:cover}
.hero__overlay{
  position:absolute;inset:0;z-index:-1;
  background:linear-gradient(180deg, rgba(15,34,54,.62) 0%, rgba(15,34,54,.78) 55%, rgba(15,34,54,.9) 100%),
             linear-gradient(90deg, rgba(15,34,54,.55), rgba(15,34,54,.1));
}
.hero__content{padding:clamp(80px,14vh,150px) 0 clamp(56px,8vh,90px);max-width:760px}
.hero__eyebrow{color:#8ee3c4}
.hero h1{color:#fff;margin-bottom:1.1rem}
.hero h1 span{color:#bfe9d8}
.hero__lead{font-size:1.12rem;color:#e7ecf1;max-width:640px;margin-bottom:1.8rem}
.hero__lead strong{color:#fff;font-weight:600}
.hero__actions{display:flex;flex-wrap:wrap;gap:.9rem;margin-bottom:1.8rem}
.hero__trust{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:.6rem 1.5rem}
.hero__trust li{display:flex;align-items:center;gap:.5rem;font-size:.95rem;color:#dfe6ec;font-weight:500}
.hero__trust svg{color:#5fd6aa;flex:none}

/* ---------- Sections ---------- */
.section{padding:var(--space) 0}
.section--alt{background:var(--bg)}
.section__head{max-width:720px;margin:0 auto clamp(40px,5vw,60px);text-align:center}
.section__head--left{margin-inline:0;text-align:left}
.section__sub{color:var(--muted);font-size:1.08rem;margin-top:.8rem}
.section__sub strong{color:var(--ink);font-weight:600}

/* ---------- Grid + Cards ---------- */
.grid{display:grid;gap:1.4rem}
.grid--4{grid-template-columns:repeat(4,1fr)}
.grid--3{grid-template-columns:repeat(3,1fr)}
@media (max-width:980px){ .grid--4{grid-template-columns:repeat(2,1fr)} }
@media (max-width:760px){ .grid--3{grid-template-columns:1fr} }
@media (max-width:560px){ .grid--4{grid-template-columns:1fr} }

.card{
  background:var(--white);border:1px solid var(--line);border-radius:var(--radius-lg);
  padding:1.7rem 1.5rem;box-shadow:var(--shadow-sm);
  display:flex;flex-direction:column;gap:.6rem;
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover{transform:translateY(-4px);box-shadow:var(--shadow-md);border-color:#cfe7dc}
.card__icon{display:grid;place-items:center;width:50px;height:50px;border-radius:14px;background:#eaf6f1;color:var(--green-700);margin-bottom:.4rem}
.card p{color:var(--muted);margin-bottom:.4rem;flex:1}
.card__link{display:inline-flex;align-items:center;gap:.4rem;color:var(--green-700);font-weight:600;font-size:.95rem}
.card__link svg{transition:transform .2s ease}
.card__link:hover{color:var(--green)}
.card__link:hover svg{transform:translateX(3px)}

/* ---------- Split (instructor) ---------- */
.split{display:grid;grid-template-columns:0.9fr 1.1fr;gap:clamp(32px,5vw,64px);align-items:center}
@media (max-width:860px){ .split{grid-template-columns:1fr} }
.split__media img{border-radius:var(--radius-lg);box-shadow:var(--shadow-md);width:100%;object-fit:cover;aspect-ratio:9/11}
.split__body h2{margin-bottom:1rem}
.split__body p{color:var(--muted)}
.checklist{list-style:none;margin:1.2rem 0 0;padding:0;display:grid;gap:.7rem}
.checklist li{position:relative;padding-left:1.9rem;color:var(--ink);font-weight:500}
.checklist li::before{
  content:"";position:absolute;left:0;top:.15rem;width:1.2rem;height:1.2rem;border-radius:50%;
  background:var(--green);
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/72% no-repeat;
          mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/72% no-repeat;
}

/* ---------- Steps ---------- */
.steps{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,1fr);gap:1.4rem;counter-reset:step}
@media (max-width:760px){ .steps{grid-template-columns:1fr} }
.step{background:var(--white);border:1px solid var(--line);border-radius:var(--radius-lg);padding:1.6rem 1.5rem;box-shadow:var(--shadow-sm)}
.step__num{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:var(--blue);color:#fff;font-weight:700;font-size:1.1rem;margin-bottom:.9rem}
.step h3{margin-bottom:.4rem}
.step p{color:var(--muted);margin:0}

/* ---------- Banner ---------- */
.banner{
  margin-top:clamp(40px,5vw,56px);
  background:var(--blue);color:#fff;border-radius:var(--radius-lg);
  padding:clamp(28px,4vw,40px);
  display:flex;align-items:center;justify-content:space-between;gap:1.5rem;flex-wrap:wrap;
  box-shadow:var(--shadow-md);
}
.banner h3{color:#fff;margin-bottom:.35rem}
.banner p{color:#d4dde6;margin:0;max-width:560px}

/* ---------- Quotes ---------- */
.quote{margin:0;background:var(--white);border:1px solid var(--line);border-radius:var(--radius-lg);padding:1.7rem 1.5rem;box-shadow:var(--shadow-sm);display:flex;flex-direction:column;gap:.8rem}
.stars{color:#f2a93b;letter-spacing:.1em;font-size:1.05rem}
.quote blockquote{margin:0;font-size:1.05rem;color:var(--ink);flex:1}
.quote figcaption{display:flex;flex-direction:column;line-height:1.3}
.quote figcaption strong{color:var(--blue)}
.quote figcaption span{color:var(--muted);font-size:.88rem}

/* ---------- FAQ ---------- */
.faq{display:grid;gap:.8rem}
.faq details{background:var(--white);border:1px solid var(--line);border-radius:var(--radius);padding:.4rem 1.3rem;box-shadow:var(--shadow-sm)}
.faq summary{cursor:pointer;font-weight:600;color:var(--blue);padding:.9rem 0;list-style:none;display:flex;justify-content:space-between;align-items:center;gap:1rem}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";font-size:1.5rem;font-weight:400;color:var(--green-700);transition:transform .2s ease;line-height:1}
.faq details[open] summary::after{transform:rotate(45deg)}
.faq details p{color:var(--muted);margin:0 0 1rem}
.faq a{color:var(--green-700);font-weight:600;text-decoration:underline}

/* ---------- CTA Final ---------- */
.cta-final{background:linear-gradient(135deg,var(--blue) 0%,var(--blue-900) 100%);color:#fff;text-align:center}
.cta-final__inner{padding:var(--space) 0}
.cta-final h2{color:#fff;margin-bottom:.6rem}
.cta-final p{color:#d4dde6;font-size:1.1rem;margin-bottom:1.6rem}

/* ---------- Footer ---------- */
.site-footer{background:var(--blue-900);color:#c4cdd6;padding-top:clamp(48px,6vw,72px)}
.footer__grid{display:grid;grid-template-columns:1.6fr 1fr 1fr 1fr;gap:2rem;padding-bottom:2.5rem}
@media (max-width:820px){ .footer__grid{grid-template-columns:1fr 1fr} }
@media (max-width:480px){ .footer__grid{grid-template-columns:1fr} }
.brand--footer .brand__mark{background:#fff;color:var(--blue)}
.brand--footer .brand__text strong{color:#fff}
.brand--footer .brand__text small{color:#9fb0bf}
.footer__tag{margin-top:1rem;color:#9fb0bf;font-size:.95rem;max-width:300px}
.site-footer h3{color:#fff;font-size:.95rem;margin-bottom:1rem;text-transform:uppercase;letter-spacing:.06em}
.site-footer nav a{display:block;color:#c4cdd6;padding:.3rem 0;font-size:.95rem;transition:color .2s}
.site-footer nav a:hover{color:#5fd6aa}
.footer__wa{display:inline-block;color:#5fd6aa;font-weight:600;margin-bottom:.8rem}
.footer__legal-links a{color:#9fb0bf;text-decoration:underline;font-size:.88rem}
.footer__bottom{border-top:1px solid rgba(255,255,255,.1);padding:1.4rem 0;text-align:center}
.footer__bottom p{margin:0;color:#8595a3;font-size:.85rem}

/* ---------- Mobile sticky CTA ---------- */
.mobile-cta{
  position:fixed;left:12px;right:12px;bottom:12px;z-index:60;
  display:none;align-items:center;justify-content:center;gap:.55rem;
  background:var(--green);color:#fff;font-weight:600;font-size:1.02rem;
  padding:1rem;border-radius:14px;box-shadow:0 8px 24px rgba(15,34,54,.35);
}
.mobile-cta:active{background:var(--green-600)}
@media (max-width:880px){
  .mobile-cta{display:flex}
  .site-footer{padding-bottom:80px}
}

/* ---------- Page hero (interiores) ---------- */
.page-hero{background:linear-gradient(135deg,var(--blue) 0%,var(--blue-900) 100%);color:#fff;padding:clamp(40px,7vw,80px) 0 clamp(48px,8vw,90px)}
.breadcrumb{font-size:.85rem;margin-bottom:1.1rem;color:#9fc4dd}
.breadcrumb a{color:#9fc4dd;text-decoration:none}
.breadcrumb a:hover{color:#fff;text-decoration:underline}
.breadcrumb span{color:#cfdbe6}
.page-hero h1{color:#fff;max-width:880px;margin-bottom:1rem}
.page-hero__lead{color:#dbe3ea;font-size:1.12rem;max-width:720px;margin-bottom:1.6rem}
.page-hero__lead strong{color:#fff;font-weight:600}

/* ---------- Prose / contenido SEO ---------- */
.prose{max-width:760px}
.prose h2{margin:2.4rem 0 .9rem}
.prose h3{margin:1.6rem 0 .5rem}
.prose p,.prose li{color:var(--muted)}
.prose ul{padding-left:1.2rem;display:grid;gap:.4rem;margin:0 0 1.2rem}
.prose strong{color:var(--ink);font-weight:600}
.prose a{color:var(--green-700);font-weight:600;text-decoration:underline}

/* ---------- Tarifas ---------- */
.price-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.4rem;margin-top:.5rem}
@media (max-width:860px){ .price-grid{grid-template-columns:1fr} }
.price{background:var(--white);border:1px solid var(--line);border-radius:var(--radius-lg);padding:1.8rem 1.6rem;box-shadow:var(--shadow-sm);display:flex;flex-direction:column;gap:.5rem}
.price--feat{border-color:var(--green);box-shadow:var(--shadow-md);position:relative}
.price--feat::before{content:"Más reservada";position:absolute;top:-12px;left:1.6rem;background:var(--green);color:#fff;font-size:.72rem;font-weight:700;letter-spacing:.05em;padding:.3rem .7rem;border-radius:999px;text-transform:uppercase}
.price h3{color:var(--blue)}
.price__amount{font-size:2.1rem;font-weight:800;color:var(--blue);letter-spacing:-.02em}
.price__amount small{font-size:.95rem;font-weight:500;color:var(--muted)}
.price ul{list-style:none;margin:.6rem 0 1.2rem;padding:0;display:grid;gap:.55rem}
.price li{position:relative;padding-left:1.7rem;color:var(--muted);font-size:.96rem}
.price li::before{content:"";position:absolute;left:0;top:.2rem;width:1.1rem;height:1.1rem;border-radius:50%;background:var(--green);-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/72% no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/72% no-repeat}
.price .btn{margin-top:auto;justify-content:center}
.price-note{color:var(--muted);font-size:.92rem;margin-top:1.4rem;text-align:center}

/* ---------- Info chips (zonas) ---------- */
.factbar{display:flex;flex-wrap:wrap;gap:.7rem;margin-top:1.4rem}
.fact{display:inline-flex;align-items:center;gap:.5rem;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.18);color:#eaf2f8;padding:.5rem .9rem;border-radius:999px;font-size:.9rem;font-weight:500}
.fact svg{color:#5fd6aa;flex:none}

/* ---------- Related links ---------- */
.related{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem;margin-top:1rem}
@media (max-width:760px){ .related{grid-template-columns:1fr} }
.related a{display:flex;align-items:center;justify-content:space-between;gap:.6rem;background:var(--white);border:1px solid var(--line);border-radius:var(--radius);padding:1rem 1.2rem;font-weight:600;color:var(--blue);box-shadow:var(--shadow-sm);transition:border-color .2s,transform .2s}
.related a:hover{border-color:#cfe7dc;transform:translateY(-2px)}
.related a svg{color:var(--green-700)}

/* ---------- Contacto ---------- */
.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:clamp(28px,4vw,52px);align-items:start}
@media (max-width:760px){ .contact-grid{grid-template-columns:1fr} }
.field{display:flex;flex-direction:column;gap:.4rem;margin-bottom:1rem}
.field label{font-weight:600;color:var(--blue);font-size:.95rem}
.field input,.field textarea{font-family:inherit;font-size:1rem;padding:.8rem .9rem;border:1px solid var(--line);border-radius:10px;background:var(--white);color:var(--ink)}
.field input:focus,.field textarea:focus{outline:2px solid var(--green);border-color:var(--green)}
.contact-aside{background:var(--bg);border:1px solid var(--line);border-radius:var(--radius-lg);padding:1.8rem}
.contact-aside h3{margin-bottom:1rem}
.contact-aside ul{list-style:none;margin:0;padding:0;display:grid;gap:1rem}
.contact-aside li{display:flex;gap:.8rem;align-items:flex-start;color:var(--muted)}
.contact-aside svg{color:var(--green-700);flex:none;margin-top:2px}
.form-status{margin:.4rem 0 0;font-size:.95rem;min-height:1.2em}
.form-status--error{color:#b4231f;font-weight:500}
.form-status--ok{color:var(--green-700);font-weight:500}

/* ---------- Page hero con foto de fondo ---------- */
.page-hero--media{position:relative;isolation:isolate;overflow:hidden;background:var(--blue-900)}
.page-hero--media .hero__media{position:absolute;inset:0;z-index:-2}
.page-hero--media .hero__media img{width:100%;height:100%;object-fit:cover;object-position:center 35%}
.page-hero--media .container{position:relative}
.page-hero--media .breadcrumb{color:#cfe0ee}

/* ---------- Vídeo / figura dentro del contenido ---------- */
.media-figure{margin:1.8rem 0;border-radius:var(--radius-lg);overflow:hidden;box-shadow:var(--shadow-md)}
.media-figure img{width:100%;height:auto;display:block;object-fit:cover}
.media-block{margin:1.8rem 0}
.media-block figcaption{font-size:.9rem;color:var(--muted);margin-top:.6rem}
.video-wrap{border-radius:var(--radius-lg);overflow:hidden;box-shadow:var(--shadow-md);background:#0b1722}
.video-wrap video{width:100%;height:auto;max-height:560px;display:block;background:#0b1722}

/* ---------- A11y ---------- */
a:focus-visible,.btn:focus-visible,summary:focus-visible{outline:3px solid #5fd6aa;outline-offset:2px;border-radius:6px}
@media (prefers-reduced-motion:reduce){
  *{animation:none!important;transition:none!important;scroll-behavior:auto!important}
}
