/* Peruvian Spanish landing (ChatGPT Ads redesign, Nov 2026). Values come from the approved
   design canvas "Landing Español Peruano" (tweaks as configured there). Builds on
   css/service-landing.css; everything here is scoped to .svc--peru. */
.svc--peru {
  --pe-deep: #1e0780;
  --pe-lilac: #cbbfff;
  --pe-lilac-soft: #e6e0ff;
  --pe-wrap: 1120px;
}
.svc--peru .svc-btn--primary { position: relative; overflow: hidden; }
.svc--peru .pe-cta-dark { box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .4), 0 12px 30px rgba(8, 2, 60, .5); }
.svc--peru .pe-cta-dark:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.svc--peru .pe-cta-shine::after { content: ""; position: absolute; top: 0; bottom: 0; left: -50%; width: 35%; background: linear-gradient(100deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .32), rgba(255, 255, 255, 0)); transform: skewX(-20deg); animation: peShine 5s ease-in-out 1.5s infinite; pointer-events: none; }
@keyframes peShine { 0% { left: -50%; } 20% { left: 125%; } 100% { left: 125%; } }

/* Andean pattern band above each section title (escalonado, 180 px, violet at 60 %). */
.svc--peru .pe-band { display: block; width: 180px; height: 18px; opacity: .6; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='18'%3E%3Cpath d='M0 15H3V12H6V9H9V6H15V9H18V12H21V15H24' fill='none' stroke='%232909a6' stroke-width='1.6'/%3E%3Cpath d='M10.5 9.8H13.5V12.8H10.5Z' fill='%232909a6'/%3E%3C/svg%3E") repeat-x left center; }

/* Header on this landing: slimmer (48 px) with a logo 20 % smaller. Over the hero it is
   transparent with a white logo and ⋮ (js/service-landing.js adds .pe-header-on-hero);
   after the hero, or without JavaScript, it is a solid white bar. */
body:has(.svc--peru) #site-header .header { background: #fff; border-bottom: 1px solid rgba(41, 9, 166, .08); box-shadow: none; transition: background-color .35s ease, border-color .35s ease; }
body:has(.svc--peru) #site-header .navbar-main { min-height: 48px; }
body:has(.svc--peru) #site-header .logo-brand-image { width: 83px; height: 37px; transition: filter .35s ease; }
body:has(.svc--peru) #site-header .header-kebab { width: 36px; height: 36px; transition: background-color .35s ease, border-color .35s ease, color .35s ease; }
body:has(.svc--peru) #site-header .header-kebab-icon { width: 20px; height: 20px; }
body.pe-header-on-hero:has(.svc--peru) #site-header .header { background: transparent; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
body.pe-header-on-hero:has(.svc--peru) #site-header .logo-brand-image { filter: brightness(0) invert(1) drop-shadow(0 1px 6px rgba(20, 5, 90, .35)); }
body.pe-header-on-hero:has(.svc--peru) #site-header .header-kebab { border-color: rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .1); color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
body.pe-header-on-hero:has(.svc--peru) #site-header .header-kebab:hover { background: rgba(255, 255, 255, .2); }
/* A soft violet veil under the header keeps the white logo and ⋮ legible over the photo. */
.svc--peru .pe-hero::before { content: ""; position: absolute; inset: 0 0 auto; z-index: 3; height: 120px; background: linear-gradient(180deg, rgba(20, 5, 90, .45), rgba(20, 5, 90, 0)); pointer-events: none; }

/* ---------- Hero: photo background, deep violet fade, tonal chacana, zigzag band ---------- */
.svc--peru .pe-hero { position: relative; overflow: hidden; padding-top: 0; background: var(--pe-deep); color: #fff; }
.pe-hero__stage { position: relative; min-height: clamp(560px, 47vw, 688px); }
.pe-hero__photo { position: absolute; top: 0; right: 0; bottom: 0; width: 64%; overflow: hidden; }
.pe-hero__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 58%; }
.pe-hero__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #1e0780 0%, rgba(30, 7, 128, .55) 14.85%, rgba(30, 7, 128, 0) 27%); }
.pe-hero__chacana { position: absolute; z-index: 1; left: -250px; top: 108px; width: 510px; height: 510px; opacity: .65; pointer-events: none; }
.pe-hero__chacana path { fill: rgba(255, 255, 255, .2); }
.pe-hero__band { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; height: 26px; border-top: 1px solid rgba(203, 191, 255, .5); opacity: .8; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26.4' height='26'%3E%3Cpath d='M0 13.2L6.6 4.4L13.2 13.2L19.8 4.4L26.4 13.2M0 22L6.6 13.2L13.2 22L19.8 13.2L26.4 22' fill='none' stroke='%23cbbfff' stroke-width='1.6'/%3E%3C/svg%3E") repeat-x left top; pointer-events: none; }
.pe-hero__inner { position: relative; z-index: 2; display: flex; align-items: center; min-height: inherit; max-width: 1440px; margin: 0 auto; padding: 48px var(--svc-gutter) 72px; box-sizing: border-box; }
.pe-hero__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; max-width: 680px; }
.svc--peru .pe-hero .svc-eyebrow { color: var(--pe-lilac); }
.pe-hero__title { max-width: 13ch; margin: 0; font-size: clamp(42px, 3.6vw + 22px, 74px); line-height: 1.02; letter-spacing: -.025em; font-weight: 800; color: #fff; text-wrap: balance; }
.pe-hero__sub { max-width: 30ch; margin: 0; font-size: clamp(18px, .8vw + 13px, 24px); line-height: 1.35; font-weight: 600; color: #fff; }
.pe-hero .svc-btn { margin-top: 6px; }
.pe-trust { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; font-size: 14px; font-weight: 700; color: #fff; }
.pe-trust > * { display: inline-flex; align-items: center; gap: 6px; }
.pe-trust .svc-icon { font-size: 18px; }
.svc--peru .pe-trust a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.svc--peru .pe-trust a:hover { color: var(--pe-lilac-soft); }

/* ---------- Sections ---------- */
.svc--peru > section { scroll-margin-top: calc(var(--svc-header) + 8px); }
.pe-section { padding: 64px var(--svc-gutter); background: #fff; }
.pe-section--lila { background: var(--svc-soft); }
.pe-wrap { display: flex; flex-direction: column; gap: 32px; max-width: var(--pe-wrap); margin: 0 auto; }
.pe-head { display: flex; flex-direction: column; gap: 12px; max-width: 680px; }
.pe-head__sub { margin: 0; font-size: 19px; line-height: 1.4; font-weight: 600; color: var(--svc-muted); }

/* Video reviews: the shared component, laid out as in the canvas (title left, videos right). */
.svc--peru .pe-reviews { background: var(--svc-soft); }
.svc--peru .pe-reviews .vr__inner { max-width: var(--pe-wrap); padding: 64px 0; margin: 0 auto; flex-wrap: nowrap; gap: 64px; }
.svc--peru .pe-reviews.vr--band { padding: 0 var(--svc-gutter); }
.svc--peru .pe-reviews .vr__title { font-size: clamp(28px, 1.4vw + 16px, 40px); max-width: 12ch; }
.svc--peru .pe-reviews .vr__grid { flex: 0 0 520px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

/* Free class */
.pe-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.pe-step { display: flex; flex-direction: column; gap: 8px; padding: 24px; border-radius: 18px; background: var(--svc-soft); }
.pe-step__time { font-size: 28px; line-height: 1; font-weight: 800; letter-spacing: -.02em; color: var(--svc-brand); font-variant-numeric: tabular-nums; }
.pe-step__time small { font-size: 14px; font-weight: 700; letter-spacing: 0; color: var(--svc-violet); }
.pe-step h3 { margin: 4px 0 0; font-size: 20px; line-height: 1.3; font-weight: 700; color: var(--svc-ink); }
.pe-step p { margin: 0; font-size: 16px; line-height: 1.5; color: var(--svc-muted); }
.pe-section .svc-btn--primary { align-self: flex-start; }

/* What you'll learn */
.pe-learn-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.pe-learn-card { display: flex; flex-direction: column; gap: 12px; padding: 28px; border: 1px solid var(--svc-line); border-radius: 18px; background: #fff; box-shadow: 0 10px 24px rgba(26, 26, 46, .05); }
.pe-learn-card svg { flex: 0 0 auto; width: 128px; height: 128px; }
.pe-learn-card h3 { margin: 4px 0 0; font-size: 20px; line-height: 1.3; font-weight: 700; color: var(--svc-ink); }
.pe-learn-card p { margin: 0; font-size: 16px; line-height: 1.5; color: var(--svc-muted); }

/* Prices */
.pe-prices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pe-price { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 24px; border: 1px solid var(--svc-line); border-radius: 18px; background: #fff; }
.pe-price--best { border: 2px solid var(--svc-brand); box-shadow: 0 10px 24px rgba(26, 26, 46, .05); }
.pe-price__name { font-size: 18px; font-weight: 700; color: var(--svc-ink); }
.pe-price__amount { display: flex; align-items: baseline; gap: 6px; font-variant-numeric: tabular-nums; }
.pe-price__amount strong { font-size: 40px; line-height: 1; font-weight: 800; letter-spacing: -.02em; color: var(--svc-brand); }
.pe-price__amount span, .pe-price__meta { font-size: 14px; color: var(--svc-muted); }
.pe-price__amount span { font-weight: 600; }
.pe-price__best { font-size: 13px; font-weight: 700; color: var(--svc-violet); }
.pe-prices-foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.pe-prices-note { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 15px; color: var(--svc-muted); }
.pe-prices-note .svc-icon { font-size: 22px; color: var(--svc-brand); }

/* Teacher */
.pe-teacher { display: flex; align-items: center; gap: 64px; max-width: var(--pe-wrap); margin: 0 auto; }
.pe-teacher__photo { flex: 0 0 auto; width: 440px; height: 500px; object-fit: cover; object-position: center 12%; border-radius: 26px; background: var(--svc-soft); }
.pe-teacher__body { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; flex: 1 1 0; min-width: 0; }
.pe-teacher__meta { margin: 0; font-size: 14px; line-height: 1.5; font-weight: 600; color: var(--svc-muted); }
.pe-teacher__lead { max-width: 44ch; margin: 0; font-size: 19px; line-height: 1.5; font-weight: 600; color: var(--svc-ink); }
.pe-features { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; list-style: none; }
.pe-features li { display: flex; align-items: center; gap: 14px; }
.pe-features__icon { display: grid; place-items: center; flex: 0 0 auto; width: 44px; height: 44px; border-radius: 999px; background: var(--svc-soft); color: var(--svc-brand); }
.pe-features__icon .svc-icon { font-size: 22px; }
.pe-features strong { display: block; font-size: 16px; font-weight: 700; color: var(--svc-ink); }
.pe-features span:last-child span { font-size: 14px; color: var(--svc-muted); }

/* FAQ + final call */
.pe-final { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; padding: 52px 56px 64px; border-radius: 26px; background: var(--pe-deep); }
.pe-final h2 { position: relative; max-width: 16ch; margin: 0; font-size: clamp(28px, 1.4vw + 16px, 40px); line-height: 1.15; font-weight: 800; letter-spacing: -.02em; color: #fff; }
.pe-final::after { content: ""; position: absolute; left: 0; right: 0; bottom: 18px; height: 18px; opacity: .25; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='18'%3E%3Cpath d='M0 15H6V11H12V7H18V3H30V7H36V11H42V15H48' fill='none' stroke='%23cbbfff' stroke-width='1.5'/%3E%3C/svg%3E") repeat-x left center; pointer-events: none; }
.svc--peru .pe-play { display: inline-flex; align-items: center; gap: 8px; width: fit-content; font-size: 15px; font-weight: 700; color: var(--svc-brand); }
.pe-play .svc-icon { font-size: 18px; }

/* ---------- Two columns below the hero: sticky sidebar + sections (desktop only) ---------- */
.svc--peru .pe-layout { display: flex; align-items: flex-start; gap: 48px; max-width: 1440px; margin: 0 auto; padding: 56px var(--svc-gutter) 0; box-sizing: border-box; }
.svc--peru .pe-aside { top: 88px; flex: 0 0 270px; width: 270px; margin-bottom: 64px; max-height: calc(100vh - 104px); }
.svc--peru .pe-aside .svc-aside__intro { gap: 12px; }
.svc--peru .pe-aside .pe-band { width: 140px; }
.svc--peru .pe-aside .svc-btn--stacked { min-height: 56px; padding: 8px 16px; }
.svc--peru .pe-main { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 24px; padding-bottom: 32px; }
.svc--peru .pe-main > section { scroll-margin-top: 90px; }
.svc--peru .pe-main .pe-section { padding: 40px 0; background: transparent; }
.svc--peru .pe-main .pe-section--lila { padding: 48px; border-radius: 26px; background: var(--svc-soft); }
.svc--peru .pe-main .pe-wrap,
.svc--peru .pe-main .pe-teacher { width: 100%; max-width: none; margin: 0; }
.svc--peru .pe-main .pe-reviews.vr--band { padding: 0 48px; border-radius: 26px; }
.svc--peru .pe-main .pe-reviews .vr__inner { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; max-width: none; padding: 48px 0; gap: 48px; }
.svc--peru .pe-main .pe-reviews .vr__copy { max-width: none; }
/* Two equal halves: the title on the left, the videos centred in the right half. */
.svc--peru .pe-main .pe-reviews .vr__grid { width: 100%; max-width: 440px; justify-self: center; }
.svc--peru .pe-main .pe-teacher { gap: 40px; }
.svc--peru .pe-main .pe-teacher__photo { width: 340px; height: 420px; }

/* ---------- Hero entrance on load (CSS only: it always ends fully visible) ---------- */
@keyframes peUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes pePhoto { from { opacity: 0; transform: scale(1.08); } to { opacity: 1; transform: none; } }
@keyframes peChacana { from { opacity: 0; transform: translateX(-60px) rotate(-10deg) scale(.92); } to { transform: none; } }
@keyframes peBand { from { opacity: 0; clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.pe-hero__copy > * { animation: peUp .8s cubic-bezier(.2, .7, .2, 1) both; }
.pe-hero__copy > :nth-child(1) { animation-delay: .15s; }
.pe-hero__copy > :nth-child(2) { animation-delay: .28s; }
.pe-hero__copy > :nth-child(3) { animation-delay: .44s; }
.pe-hero__copy > :nth-child(4) { animation-delay: .6s; }
.pe-hero__copy > :nth-child(5) { animation-delay: .76s; }
.pe-hero__photo img { animation: pePhoto 1.6s cubic-bezier(.2, .7, .2, 1) both; }
.pe-hero__chacana { animation: peChacana 1.4s .35s cubic-bezier(.2, .7, .2, 1) both; }
.pe-hero__band { animation: peBand 1.3s .7s ease both; }

/* ---------- Section entrance (js/service-landing.js adds the classes) ---------- */
.svc--peru.pe-reveal-ready .pe-reveal { opacity: 0; transform: translateY(44px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.svc--peru.pe-reveal-ready .pe-reveal.is-in { opacity: 1; transform: none; }
/* Cards and list items arrive one after another (delay set per item by the script). */
.svc--peru.pe-reveal-ready .pe-reveal-item { opacity: 0; transform: translateY(26px) scale(.98); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.svc--peru.pe-reveal-ready .pe-reveal.is-in .pe-reveal-item { opacity: 1; transform: none; }
/* The Andean band above each title "weaves" itself from left to right. */
.svc--peru.pe-reveal-ready .pe-reveal .pe-band { clip-path: inset(0 100% 0 0); transition: clip-path 1s ease .25s; }
.svc--peru.pe-reveal-ready .pe-reveal.is-in .pe-band { clip-path: inset(0 0 0 0); }

/* ---------- Tablet and phone ---------- */
@media (max-width: 999px) {
  /* No sidebar here (service-landing.css hides .svc-aside): sections go edge to edge again. */
  .svc--peru .pe-layout { display: block; padding: 0; }
  .svc--peru .pe-main { gap: 0; padding-bottom: 0; }
  .svc--peru .pe-main .pe-section { padding: 64px var(--svc-gutter); }
  .svc--peru .pe-main .pe-section--lila { border-radius: 0; padding: 64px var(--svc-gutter); }
  .svc--peru .pe-main .pe-reviews.vr--band { padding: 0 var(--svc-gutter); border-radius: 0; }
  .svc--peru .pe-main .pe-teacher__photo { width: 100%; height: 280px; }
  .svc--peru .pe-reviews .vr__inner, .svc--peru .pe-main .pe-reviews .vr__inner { display: flex; flex-wrap: wrap; gap: 28px; padding: 56px 0; }
  .svc--peru .pe-reviews .vr__grid, .svc--peru .pe-main .pe-reviews .vr__grid { flex: 1 1 100%; max-width: none; }
  /* Booking bar: only the button, floating (no white strip). js/service-landing.js shows it
     once the hero button has scrolled away and hides it at the closing call and the footer. */
  .svc--peru .svc-mobile-bar { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); left: 16px; padding: 0; border: 0; background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; transition: transform .4s cubic-bezier(.2, .7, .2, 1), opacity .3s ease, visibility 0s; }
  .svc--peru .svc-mobile-bar .svc-btn--primary { min-height: 56px; box-shadow: 0 14px 32px rgba(30, 7, 128, .38), 0 3px 8px rgba(30, 7, 128, .22); }
  .svc--peru.pe-bar-ready .svc-mobile-bar:not(.is-shown) { transform: translateY(calc(100% + 40px)); opacity: 0; visibility: hidden; transition: transform .4s cubic-bezier(.2, .7, .2, 1), opacity .3s ease, visibility 0s .4s; }
  .svc--peru.pe-bar-ready:has(.svc-mobile-bar) .site-footer__inner { padding-bottom: calc(32px + env(safe-area-inset-bottom)); }
  .pe-teacher { flex-direction: column; align-items: stretch; gap: 24px; }
  .pe-teacher__photo { width: 100%; height: 280px; }
  .pe-learn-cards, .pe-prices, .pe-steps { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .pe-hero__stage { min-height: 0; }
  .pe-hero__photo { position: relative; width: 100%; height: 380px; }
  .pe-hero__photo img { object-position: 60% 30%; }
  .pe-hero__photo::after { background: linear-gradient(180deg, rgba(30, 7, 128, 0) 45%, rgba(30, 7, 128, .85) 82%, #1e0780 100%); }
  .pe-hero__chacana { left: -120px; top: 286px; width: 290px; height: 290px; opacity: .8; }
  .pe-hero__chacana path { fill: rgba(255, 255, 255, .24); }
  .pe-hero__band { height: 24px; opacity: .85; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Cpath d='M0 12L6 4L12 12L18 4L24 12M0 20L6 12L12 20L18 12L24 20' fill='none' stroke='%23cbbfff' stroke-width='1.6'/%3E%3C/svg%3E") repeat-x left top, rgba(20, 4, 90, .6); }
  .pe-hero__inner { display: block; margin-top: -90px; padding: 0 20px 64px; }
  .pe-hero__copy { gap: 14px; }
  .pe-hero__title { font-size: 42px; line-height: 1.03; }
  .pe-hero__sub { font-size: 18px; }
  .pe-hero .svc-btn { align-self: stretch; margin-top: 4px; }
  .pe-trust { gap: 8px 18px; }
  .pe-section, .svc--peru .pe-main .pe-section, .svc--peru .pe-main .pe-section--lila { padding: 56px 20px; }
  .pe-wrap { gap: 24px; }
  .pe-head__sub { font-size: 17px; }
  .pe-learn-section, .svc--peru .pe-main .pe-learn-section { background: #fff; }
  .pe-learn-card { flex-direction: row; align-items: center; gap: 16px; padding: 18px; }
  .pe-learn-card svg { width: 72px; height: 72px; }
  .pe-learn-card h3 { margin: 0 0 4px; font-size: 18px; }
  .pe-learn-card p { font-size: 15px; }
  .pe-price { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; padding: 18px 20px; }
  .pe-price__amount strong { font-size: 30px; }
  .pe-section .svc-btn--primary { align-self: stretch; }
  .pe-final { padding: 32px 22px 52px; align-items: stretch; }
  .pe-final h2 { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .svc--peru .pe-cta-shine::after { animation: none; display: none; }
  .svc--peru.pe-reveal-ready .pe-reveal, .svc--peru.pe-reveal-ready .pe-reveal-item { opacity: 1; transform: none; transition: none; }
  .svc--peru.pe-reveal-ready .pe-reveal .pe-band { clip-path: none; transition: none; }
  .pe-hero__copy > *, .pe-hero__photo img, .pe-hero__chacana, .pe-hero__band { animation: none; }
  .svc--peru .svc-mobile-bar, .svc--peru.pe-bar-ready .svc-mobile-bar:not(.is-shown) { transform: none; transition: none; }
}
