/* Andrea Giorgi · Escuela de Decodificación — estilos del sitio estático
   Paleta y tipografías según brandboard (N. Moragrega, 2022) */
@font-face {
  font-family: "Roxborough CF";
  src: url("/assets/fonts/roxborough-cf.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face { font-family: "Josefin Sans"; src: url("/assets/fonts/josefin-sans-latin-300-normal.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Josefin Sans"; src: url("/assets/fonts/josefin-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Josefin Sans"; src: url("/assets/fonts/josefin-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("/assets/fonts/cormorant-garamond-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("/assets/fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("/assets/fonts/cormorant-garamond-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --slate: #4B5556;   /* color #1 */
  --steel: #78878A;   /* color #2 */
  --sage:  #A2B6B7;   /* color #3 */
  --sand:  #DECBBC;   /* color #4 */
  --linen: #E4DDD5;   /* color #5 */
  --cream: #F6F2EE;
  --white: #FFFFFF;
  --ink: #3E4748;
  --serif: "Roxborough CF", "Cormorant Garamond", Georgia, serif;
  --sans: "Josefin Sans", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
  --radius: 4px;
  --sp: clamp(56px, 8vw, 104px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--slate); text-decoration-color: var(--sage); text-underline-offset: 3px; }
a:hover { color: var(--steel); }
:focus-visible { outline: 2px solid var(--steel); outline-offset: 3px; }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--slate); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(1.2) blur(6px);
  border-bottom: 1px solid var(--linen);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand img { width: 230px; height: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px 26px; flex-wrap: wrap; justify-content: flex-end; }
.nav a {
  font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 400;
  text-decoration: none; color: var(--slate); padding: 6px 0; border-bottom: 1px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--sand); color: var(--slate); }
.menu-toggle { display: none; }

@media (max-width: 1020px) {
  .brand img { width: 190px; }
  .menu-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 10px;
  }
  .menu-toggle span:not(.sr) { display: block; height: 1.5px; background: var(--slate); transition: transform .25s, opacity .25s; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--white); border-bottom: 1px solid var(--linen);
    display: none;
  }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; padding: 12px 20px 24px; gap: 0; }
  .nav a { display: block; padding: 14px 0; border-bottom: 1px solid var(--linen); }
}

/* ---------- Secciones ---------- */
.section { padding-block: var(--sp); position: relative; }
.section + .section:not(.tint) { padding-top: 0; }
.section.tint { background: var(--cream); }
.section.tint + .section { padding-top: var(--sp); }
main > .section:first-child { padding-top: clamp(48px, 7vw, 88px); }
.section.center { text-align: center; }
.section.center .prose, .section.center .lead { margin-inline: auto; }

.grid { display: grid; gap: clamp(28px, 5vw, 64px); align-items: start; }
.grid.g-2 { grid-template-columns: 1fr 1fr; }
.grid.g-3 { grid-template-columns: repeat(3, 1fr); }
.split .grid { align-items: center; }
.col > * + * { margin-top: 20px; }
.col > .divider + * { margin-top: 0; }
@media (max-width: 820px) {
  .grid.g-2, .grid.g-3 { grid-template-columns: 1fr; }
  /* en mobile la imagen va arriba del texto */
  .split .col-media { order: -1; }
}

/* ---------- Tipografía ---------- */
.title {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--slate);
  line-height: 1.15;
  margin: 0 0 18px;
  letter-spacing: .01em;
}
h1.title { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
h2.title { font-size: clamp(1.65rem, 3vw, 2.35rem); }
h3.title { font-size: 1.45rem; }
.headline .hl {
  font-style: italic;
  font-family: "Cormorant Garamond", var(--serif);
  background: linear-gradient(transparent 68%, rgba(222,203,188,.75) 68%);
  padding: 0 .12em;
}
.section.center .wrap > .title:first-child::before {
  content: ""; display: block; width: 22px; height: 22px; margin: 0 auto 14px;
  background: var(--sand);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1c.6 5.6 2.4 8.9 11 11-8.6 2.1-10.4 5.4-11 11-.6-5.6-2.4-8.9-11-11 8.6-2.1 10.4-5.4 11-11z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1c.6 5.6 2.4 8.9 11 11-8.6 2.1-10.4 5.4-11 11-.6-5.6-2.4-8.9-11-11 8.6-2.1 10.4-5.4 11-11z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.lead { font-size: 1.15rem; color: #5E6B6D; max-width: 62ch; }
.lead p { margin: 0 0 14px; }
.lead strong { font-weight: 400; color: var(--slate); }
.lead h3 { font-family: var(--serif); font-weight: 400; color: var(--slate); font-size: 1.4rem; margin: 22px 0 8px; }
.title .sub {
  display: block; margin-top: 12px;
  font-family: var(--sans); font-size: .32em; letter-spacing: .32em; text-transform: uppercase; color: var(--steel);
}
.note { color: #5E6B6D; font-size: 1.05rem; margin: 0; }
.prose { max-width: 68ch; }
.prose p { margin: 0 0 14px; }
.prose h2, .prose h3, .prose h4 { font-family: var(--serif); font-weight: 400; color: var(--slate); line-height: 1.2; margin: 28px 0 10px; }
.prose h3 { font-size: 1.35rem; }
.prose strong { font-weight: 600; color: var(--slate); }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 16px; }
.prose li { margin-bottom: 8px; }
.prose ul { list-style: none; padding-left: 0; }
.prose ul li { position: relative; padding-left: 26px; }
.prose ul li::before {
  content: ""; position: absolute; left: 2px; top: .55em; width: 12px; height: 12px;
  background: var(--sage);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1c.6 5.6 2.4 8.9 11 11-8.6 2.1-10.4 5.4-11 11-.6-5.6-2.4-8.9-11-11 8.6-2.1 10.4-5.4 11-11z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1c.6 5.6 2.4 8.9 11 11-8.6 2.1-10.4 5.4-11 11-.6-5.6-2.4-8.9-11-11 8.6-2.1 10.4-5.4 11-11z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.section.center .prose ul li { text-align: left; }
.prose.cols-2 { max-width: none; columns: 2 320px; column-gap: 56px; }
.prose.cols-2 p { break-inside: avoid; }

.divider { width: 64px; height: 2px; border: 0; background: var(--sage); margin: 0 0 24px; }
.section.center .divider { margin-inline: auto; }

/* ---------- Botones ---------- */
.cta { margin: 28px 0 0; }
.btn {
  display: inline-block;
  font-family: var(--sans); font-weight: 400; font-size: .82rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--white); background: var(--slate);
  padding: 16px 34px; border: 1px solid var(--slate); border-radius: 999px;
  text-decoration: none; cursor: pointer; transition: background .2s, color .2s;
}
.btn:hover { background: transparent; color: var(--slate); }

/* ---------- Imágenes ---------- */
.media { margin: 0; }
.media img { width: 100%; border-radius: var(--radius); }
.split .media img { max-height: 640px; object-fit: cover; }
.section.center .media img { margin-inline: auto; width: auto; max-width: 100%; }

/* ---------- Video ---------- */
.video { position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; background: var(--linen); max-width: 880px; margin-inline: auto; }
.video-play { all: unset; cursor: pointer; position: absolute; inset: 0; display: grid; place-items: center; }
.video-play img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-play svg { position: relative; width: 76px; transition: transform .2s; }
.video-play:hover svg, .video-play:focus-visible svg { transform: scale(1.08); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Testimonios ---------- */
.carousel { position: relative; margin-top: 32px; text-align: left; }
.carousel-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 3); gap: 24px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px;
}
.carousel-track::-webkit-scrollbar { display: none; }
.t-card {
  scroll-snap-align: start; margin: 0; background: var(--cream); border-radius: var(--radius);
  padding: 32px 28px; display: flex; flex-direction: column; justify-content: space-between;
}
.t-card blockquote { margin: 0 0 20px; font-family: "Cormorant Garamond", serif; font-size: 1.2rem; line-height: 1.5; color: var(--slate); }
.t-card blockquote p { margin: 0 0 10px; }
.t-card figcaption { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--steel); }
.t-card figcaption::before { content: "— "; }
.carousel-nav { display: flex; justify-content: center; gap: 12px; margin-top: 24px; }
.carousel-nav button {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--sage); background: var(--white);
  color: var(--slate); font-size: 1.4rem; line-height: 1; cursor: pointer;
}
.carousel-nav button:hover { background: var(--sage); color: var(--white); }
@media (max-width: 900px) { .carousel-track { grid-auto-columns: calc((100% - 24px) / 2); } }
@media (max-width: 600px) { .carousel-track { grid-auto-columns: 88%; } }

/* ---------- Cajas de frases ---------- */
.quote-box {
  background: var(--cream); border-radius: var(--radius); padding: 26px 24px 22px; text-align: left;
}
.quote-box svg { width: 22px; fill: var(--sand); margin-bottom: 10px; }
.quote-box p { margin: 0; font-family: "Cormorant Garamond", serif; font-size: 1.25rem; line-height: 1.4; color: var(--slate); font-style: italic; }
.tint .quote-box { background: var(--white); }
.grid .col > .quote-box + .quote-box { margin-top: 20px; }

/* ---------- Listas con íconos ---------- */
.icon-list { list-style: none; padding: 0; margin: 8px 0 0; }
.icon-list li + li { margin-top: 14px; }
.icon-list a, .icon-list li > span { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.icon-list .ic svg { width: 22px; height: 22px; fill: var(--steel); color: var(--steel); display: block; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 860px; margin-inline: auto; }
.faq { border-bottom: 1px solid var(--linen); background: var(--white); }
.faq:first-child { border-top: 1px solid var(--linen); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 48px 22px 24px; position: relative;
  font-family: var(--serif); font-size: 1.25rem; color: var(--slate);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 24px; top: 50%; width: 10px; height: 10px;
  border-right: 1.5px solid var(--steel); border-bottom: 1.5px solid var(--steel);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s;
}
.faq[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .prose { padding: 0 24px 22px; max-width: none; }

/* ---------- Formulario ---------- */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--steel); }
.field input, .field textarea {
  font: inherit; font-weight: 300; color: var(--ink); background: var(--white);
  border: 1px solid #cfd6d6; border-radius: var(--radius); padding: 13px 14px;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--steel); box-shadow: 0 0 0 3px rgba(162,182,183,.35); }
.form .btn { justify-self: start; }
@media (max-width: 600px) { .form { grid-template-columns: 1fr; } }
.flodesk { max-width: 640px; margin: 24px auto 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--slate); color: #E9EDED; padding: 64px 0 28px; margin-top: var(--sp); }
.section.tint:last-child { margin-bottom: calc(var(--sp) * -1); }
.footer-grid { display: grid; grid-template-columns: 1.1fr 1fr 1.2fr 1fr; gap: 40px; }
.footer-logo { width: 150px; filter: brightness(0) invert(1); opacity: .9; }
.f-title { font-family: var(--serif); font-weight: 400; font-size: 1.35rem; margin: 0 0 14px; color: var(--white); }
.f-links { list-style: none; margin: 0; padding: 0; }
.f-links li + li { margin-top: 8px; }
.site-footer a { color: #E9EDED; text-decoration: none; }
.site-footer a:hover { color: var(--sand); }
.social { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); display: grid; place-items: center; }
.social svg { width: 18px; height: 18px; fill: currentColor; color: currentColor; }
.social a:hover { border-color: var(--sand); }
.copy { border-top: 1px solid rgba(255,255,255,.18); margin-top: 48px; padding-top: 22px; font-size: .8rem; letter-spacing: .08em; opacity: .8; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%; background: #25D366; display: grid; place-items: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
}
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
