/* ==========================================================================
   carinacastrofumero.com — design system
   Layout modelled on marianrojas.com (display type, rounded frames, pill
   buttons, arch photo, fullscreen menu) with its own palette: linen canvas,
   indigo type, violet accent, lilac panels, indigo/violet/mint overlays.
   ========================================================================== */

:root {
  /* Palette: warm linen canvas, deep indigo type, violet accent (Carina's
     current brand colour), soft lilac panels and a mint highlight. */
  --bg: #f5f2ec;
  --ink: #1f1d2b;
  --muted: #6b6880;
  --primary: #2a2466;
  --primary-dark: #1b1747;
  --accent: #6a4cff;
  --accent-strong: #5234f0;
  --panel: #dcd8f0;
  --panel-light: #ece9f7;
  --white: #ffffff;
  --mint: #8fe3cf;
  --red: #d8343f;
  --grad-a: #1b1747;   /* indigo */
  --grad-b: #6a4cff;   /* violet */
  --grad-c: #8fe3cf;   /* mint */

  --font-display: "Cabinet Grotesk", "Satoshi", system-ui, sans-serif;
  --font-body: "Satoshi", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --radius-xl: 40px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-pill: 999px;

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 900; color: var(--primary); letter-spacing: -0.01em; line-height: 1.02; }
p { margin: 0 0 1em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: clamp(56px, 8vw, 110px); }
.section--tight { padding-block: clamp(36px, 5vw, 64px); }

/* Typography scale ------------------------------------------------------- */
.display-xl { font-size: clamp(52px, 7vw, 96px); color: var(--white); text-transform: uppercase; }
.display-sub { font-family: var(--font-body); font-weight: 700; font-size: clamp(20px, 2.6vw, 38px); color: var(--bg); text-transform: uppercase; letter-spacing: 0.02em; line-height: 1.1; }
.h2 { font-size: clamp(38px, 4.5vw, 60px); }
.h3 { font-size: clamp(24px, 3vw, 32px); }
.lead { font-family: var(--font-body); font-weight: 400; font-size: clamp(18px, 1.7vw, 24px); color: var(--primary); line-height: 1.45; }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.muted { color: var(--muted); }

/* Buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 28px; border-radius: var(--radius-pill);
  font-family: var(--font-body); font-weight: 700; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  border: 1.5px solid transparent; cursor: pointer; transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--primary); color: var(--bg); }
.btn--primary:hover { background: var(--primary-dark); }
.btn--accent { background: var(--accent-strong); color: var(--white); }
.btn--accent:hover { background: var(--accent); }
.btn--outline { background: transparent; border-color: var(--primary); color: var(--primary); }
.btn--outline:hover { background: var(--primary); color: var(--bg); }
.btn--ghost { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.8); color: var(--white); backdrop-filter: blur(6px); }
.btn--ghost:hover { background: var(--white); color: var(--primary); }
.btn--block { width: 100%; }

/* Header ---------------------------------------------------------------- */
.site-header {
  position: absolute; inset: 0 0 auto 0; z-index: 50;
  padding-top: 28px;
}
.site-header--solid { position: relative; padding-top: 24px; }
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-bottom: 20px;
}

.site-header .container { width: min(var(--container), 100% - 4 * var(--gutter)); }
.site-header__logo img { height: 26px; width: auto; }
.site-header__right { display: flex; align-items: center; gap: 18px; }
.socials { display: flex; align-items: center; gap: 8px; list-style: none; margin: 0; padding: 0; }
.socials a {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--white); color: var(--primary); transition: transform .2s ease;
}
.socials a:hover { transform: scale(1.1); }
.socials svg { width: 14px; height: 14px; fill: currentColor; }
.site-header--solid .socials a { background: var(--primary); color: var(--bg); }
.menu-toggle {
  display: inline-flex; align-items: center; gap: 12px; background: none; border: 0; cursor: pointer;
  color: var(--white); font-family: var(--font-body); font-weight: 500; font-size: 13px; padding: 6px 0;
}
.site-header--solid .menu-toggle { color: var(--primary); }
.menu-toggle__bars { width: 30px; height: 14px; display: flex; flex-direction: column; justify-content: space-between; }
.menu-toggle__bars span { height: 2px; background: currentColor; border-radius: 2px; display: block; }
@media (max-width: 720px) { .socials--header { display: none; } }
@media (max-width: 480px) {
  .site-header { padding-top: 26px; }
  .site-header .container { width: calc(100% - 2 * var(--gutter) - 44px); }
  .site-header__inner { padding-bottom: 14px; }
  .site-header__logo img, .menu__top img { height: 22px; }
  .menu-toggle > span:first-child { display: none; }
}

/* Fullscreen menu */
.menu {
  position: fixed; inset: 0; z-index: 100; background: var(--primary); color: var(--bg);
  display: grid; grid-template-rows: auto 1fr auto; padding: 28px var(--gutter) 32px;
  opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .3s ease, transform .3s ease, visibility 0s linear .3s;
}
.menu[aria-hidden="false"] { opacity: 1; visibility: visible; transform: none; transition: opacity .3s ease, transform .3s ease; }
.menu__top { display: flex; align-items: center; justify-content: space-between; width: min(var(--container), 100%); margin-inline: auto; }
.menu__top img { height: 26px; }
.menu__close { background: none; border: 0; color: var(--bg); font: inherit; font-weight: 500; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; font-size: 13px; }
.menu__close svg { width: 26px; height: 26px; }
.menu__links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px; }
.menu__links a { font-family: var(--font-display); font-weight: 900; font-size: clamp(30px, 6vw, 64px); line-height: 1.1; color: var(--bg); transition: color .2s ease; text-align: center; display: block; }
@media (max-width: 480px) { .menu__links a { font-size: 30px; } .menu__links li { width: 100%; text-align: center; } }
.menu__links a:hover, .menu__links a[aria-current="page"] { color: var(--mint); }
.menu__links .menu__cta { margin-top: 22px; }
.menu__links .menu__cta a { display: inline-block; font-family: var(--font-body); font-size: 15px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; border: 1.5px solid var(--bg); border-radius: var(--radius-pill); padding: 12px 28px; }
.menu__links .menu__cta a:hover { background: var(--bg); color: var(--primary); }
.menu__bottom { display: flex; justify-content: center; }
.menu__bottom .socials a { background: var(--bg); color: var(--primary); }
body.menu-open { overflow: hidden; }

/* Hero ------------------------------------------------------------------ */
.hero { padding: 10px var(--gutter) 0; }
.hero__frame {
  position: relative; border-radius: var(--radius-xl); overflow: hidden;
  min-height: clamp(560px, 94vh, 900px); min-height: clamp(560px, 94svh, 900px); display: flex; flex-direction: column; justify-content: flex-end; align-items: center;
  padding: clamp(120px, 15vw, 160px) var(--gutter) clamp(28px, 4vw, 44px);
  text-align: center; isolation: isolate;
  max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto;
}
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; z-index: -3; }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: 0; transition: opacity 1.2s ease; }
.hero__video.is-playing { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .hero__video { display: none; } }
.hero__frame::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(55% 45% at 0% 100%, rgba(106,76,255,0.75) 0%, rgba(106,76,255,0) 70%),
    radial-gradient(45% 40% at 100% 0%, rgba(143,227,207,0.45) 0%, rgba(143,227,207,0) 70%),
    linear-gradient(180deg, rgba(27,23,71,0.15) 0%, rgba(27,23,71,0) 30%, rgba(27,23,71,0.55) 62%, rgba(27,23,71,0.95) 100%);
}
.hero__frame::after {
  /* fine grain so the veil reads as print, not a web gradient */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .18; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.hero__title { color: var(--white); text-shadow: 0 6px 30px rgba(27,23,71,0.35); }
.hero__sub { margin-top: 6px; color: var(--mint); text-shadow: 0 4px 20px rgba(27,23,71,0.35); max-width: 760px; }
.hero__pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: clamp(20px, 2.5vw, 32px); }
.hero__pills .btn { padding: 10px 22px; font-size: 12px; }
@media (max-width: 720px) {
  /* Mobile: the hero fills the whole first screen; content starts on scroll */
  .hero { padding: 0; }
  .hero__frame { min-height: 100vh; min-height: 100svh; border-radius: 0; max-width: none; padding-bottom: clamp(28px, 6vh, 48px); }
  .hero__img { object-position: 50% 18%; }
}
@media (max-width: 480px) { .hero__pills { flex-wrap: nowrap; gap: 8px; } .hero__pills .btn { padding: 9px 12px; font-size: 10.5px; letter-spacing: .06em; } }

/* Page hero (inner pages) */
.page-hero { padding-top: clamp(40px, 6vw, 72px); }
.page-hero .h2 { max-width: 14ch; }
.page-hero .lead { max-width: 60ch; margin-top: 18px; }

/* Section heading split --------------------------------------------------- */
.split-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px 48px; align-items: end; margin-bottom: clamp(32px, 4vw, 48px); }
.split-head .lead { font-size: clamp(16px, 1.3vw, 18px); max-width: 48ch; }
@media (max-width: 800px) { .split-head { grid-template-columns: 1fr; } }

/* Gradient media cards (Cortisol / Oxitocina / Dopamina style) -------------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
.cards-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 2vw, 28px); }
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 28px); }
@media (max-width: 900px) { .cards-3, .cards-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards-3, .cards-2, .cards-4 { grid-template-columns: 1fr; } }

.gcard {
  position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 3 / 4;
  background: var(--panel); isolation: isolate; color: var(--white);
}
.gcard--wide { aspect-ratio: 16 / 10; }
.gcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s ease; }
.gcard:hover img { transform: scale(1.04); }
.gcard::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(70% 45% at 0% 100%, rgba(106,76,255,0.7) 0%, rgba(106,76,255,0) 70%),
    linear-gradient(180deg, rgba(27,23,71,0) 38%, rgba(27,23,71,0.6) 68%, rgba(27,23,71,0.96) 100%);
  transition: opacity .4s ease;
}
.gcard::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; z-index: 0;
  background: linear-gradient(90deg, var(--grad-b), var(--grad-c));
}
.gcard__body { position: absolute; inset: auto 0 0 0; padding: clamp(18px, 2.5vw, 28px); }
.gcard__title { font-family: var(--font-display); font-weight: 900; font-size: clamp(26px, 3vw, 40px); line-height: 1.02; color: var(--white); }
.gcard__title--sm { font-size: clamp(20px, 2vw, 26px); }
.gcard__meta { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--mint); margin-bottom: 8px; display: block; }
.gcard__play {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255,255,255,0.18); border: 1.5px solid rgba(255,255,255,0.75); backdrop-filter: blur(4px);
}
.gcard__play svg { width: 26px; height: 26px; fill: var(--bg); margin-left: 4px; }

/* About (lavender band with arch photo) --------------------------------- */
.band { background: var(--panel); }
.band--light { background: var(--panel-light); }
.about { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.arch { width: min(100%, 420px); aspect-ratio: 5 / 6; border-radius: 999px 999px var(--radius-lg) var(--radius-lg); overflow: hidden; background: var(--bg); position: relative; }
.arch img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.arch--photo img { object-position: 50% 10%; }
.about .lead { margin-top: 24px; margin-bottom: 28px; font-size: clamp(17px, 1.3vw, 19px); }
@media (max-width: 800px) { .about { grid-template-columns: 1fr; } .arch { margin-inline: auto; } }

/* Books ----------------------------------------------------------------- */
.books { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
@media (max-width: 900px) { .books { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .books { grid-template-columns: 1fr; } }
.book { text-align: center; }
.book__cover { border-radius: var(--radius-md); overflow: hidden; background: var(--panel-light); aspect-ratio: 1; display: grid; place-items: center; transition: transform .3s ease; }
.book__cover img { width: 100%; height: 100%; object-fit: cover; }
.book:hover .book__cover { transform: translateY(-6px); }
.book__title { margin-top: 16px; font-family: var(--font-body); font-weight: 700; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; color: var(--primary); line-height: 1.3; }
.book__desc { margin-top: 10px; font-size: 14px; color: var(--muted); }
.center { text-align: center; }
.mt-lg { margin-top: clamp(28px, 4vw, 44px); }

/* Media + text (Conferencias) ------------------------------------------- */
.media-text { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 56px); align-items: center; }
.media-text__video { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 10; background: var(--primary); isolation: isolate; display: block; }
.media-text__video img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media-text__reel { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 9; background: var(--primary-dark); box-shadow: 0 24px 60px rgba(27,23,71,0.25); }
.media-text__reel video { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-text__reel::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--grad-b), var(--grad-c)); }
.media-text .lead { margin: 22px 0 28px; font-size: clamp(16px, 1.3vw, 18px); }
@media (max-width: 800px) { .media-text { grid-template-columns: 1fr; } }

/* Logos ----------------------------------------------------------------- */
.logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: clamp(20px, 4vw, 56px); padding-block: clamp(32px, 5vw, 56px); }
.logos img { height: clamp(52px, 6vw, 84px); width: auto; filter: brightness(0) saturate(100%) invert(13%) sepia(35%) saturate(2200%) hue-rotate(230deg) brightness(90%); opacity: .75; transition: opacity .2s ease; }
.logos img:hover { opacity: 1; }
.logos--light img { filter: none; opacity: .95; }
.logos__caption { text-align: center; color: var(--muted); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; }

/* Trust band (logo marquee right under the hero) --------------------- */
.trust { padding-top: clamp(40px, 6vw, 72px); overflow: hidden; }
.trust__title { text-align: center; font-size: clamp(30px, 4vw, 52px); }
.trust__title span { color: var(--accent); }
.marquee {
  margin-top: clamp(24px, 3vw, 40px); padding-block: 16px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track { display: flex; align-items: center; width: max-content; animation: marquee 60s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track img {
  height: clamp(64px, 8vw, 110px); width: auto; margin-right: clamp(56px, 7vw, 112px);
  filter: brightness(0) saturate(100%) invert(13%) sepia(35%) saturate(2200%) hue-rotate(230deg) brightness(90%); opacity: .8;
}
/* staggered pop-in the first time the band scrolls into view */
.trust .marquee__track img[style] { opacity: 0; transform: scale(.4) translateY(20px); }
.trust.is-visible .marquee__track img[style] { animation: pop .7s cubic-bezier(.2, .9, .25, 1.2) calc(var(--i) * 90ms) both; }
@keyframes pop { from { opacity: 0; transform: scale(.4) translateY(20px); } to { opacity: .8; transform: none; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
  .marquee__track img[aria-hidden] { display: none; }
  .trust .marquee__track img[style] { opacity: .8; transform: none; animation: none; }
}

/* CTA line -------------------------------------------------------------- */
.cta-line { text-align: center; margin-top: clamp(36px, 5vw, 56px); }
.cta-line .h3 { font-family: var(--font-body); font-weight: 500; font-size: clamp(20px, 2.2vw, 26px); margin-bottom: 18px; }

/* Quote with glow ------------------------------------------------------- */
.quote { display: grid; place-items: center; padding-block: clamp(80px, 12vw, 160px); position: relative; isolation: isolate; }
.quote::before {
  content: ""; position: absolute; width: min(640px, 90vw); aspect-ratio: 1; border-radius: 50%; z-index: -1;
  background:
    radial-gradient(circle at 35% 40%, rgba(106,76,255,0.55) 0%, rgba(106,76,255,0) 55%),
    radial-gradient(circle at 70% 65%, rgba(143,227,207,0.7) 0%, rgba(143,227,207,0) 55%);
  filter: blur(34px);
}
.quote blockquote { margin: 0; max-width: 24ch; text-align: center; font-family: var(--font-body); font-weight: 700; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.3; color: var(--primary); }

/* Subscribe card -------------------------------------------------------- */
.subscribe { background: var(--panel); border-radius: var(--radius-xl); padding: clamp(40px, 6vw, 72px) var(--gutter); text-align: center; }
.subscribe .h2 { font-size: clamp(34px, 4vw, 48px); text-transform: uppercase; }
.subscribe .lead { margin-top: 4px; font-size: clamp(18px, 2vw, 26px); font-weight: 500; }
.subscribe__form { max-width: 480px; margin: 28px auto 0; }
.input-row { display: flex; background: var(--white); border-radius: var(--radius-md); overflow: hidden; }
.input-row input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 14px 18px; font: inherit; font-size: 15px; color: var(--ink); }
.input-row input:focus { outline: none; }
.input-row button { border: 0; background: transparent; color: var(--primary); font: inherit; font-weight: 700; font-size: 14px; padding: 0 18px; cursor: pointer; }
.subscribe__consent { margin-top: 12px; font-size: 12px; color: var(--primary); display: flex; justify-content: center; align-items: center; gap: 8px; }
.subscribe__consent a { color: var(--accent); }
.subscribe__consent input { accent-color: var(--primary); }

/* Forms (contact) ------------------------------------------------------- */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--primary); }
.field input, .field select, .field textarea {
  border: 1.5px solid rgba(42,36,102,0.25); background: var(--white); border-radius: 12px; padding: 13px 16px; font: inherit; font-size: 15px; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--primary); outline-offset: 1px; border-color: transparent; }
.field textarea { min-height: 140px; resize: vertical; }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }
.card { background: var(--white); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 48px); }

/* Expandable theme cards (home) --------------------------------------- */
.flips { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2vw, 24px); align-items: start; }
@media (max-width: 1000px) { .flips { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .flips { grid-template-columns: 1fr; } }
.flip { background: var(--primary-dark); color: var(--white); border-radius: var(--radius-lg); overflow: hidden; position: relative; isolation: isolate; transition: transform .35s ease, box-shadow .35s ease; }
.flip::before { content: ""; position: absolute; inset: -30%; z-index: -1; background: radial-gradient(circle at 20% 110%, rgba(106,76,255,0.9), transparent 55%), radial-gradient(circle at 100% 0%, rgba(143,227,207,0.55), transparent 50%); opacity: .7; transition: opacity .4s ease, transform .8s ease; }
.flip::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .09; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='260' height='260' viewBox='0 0 260 260' fill='none' stroke='white' stroke-width='1.1' stroke-linecap='round'><path d='M40 130c0-40 30-70 70-70s70 30 70 70-30 70-70 70-70-30-70-70z'/><path d='M60 125c10-25 35-40 60-35m-45 70c15 15 40 20 60 8M95 70c20 10 25 35 15 55m25-50c-5 25 10 45 30 50'/><path d='M20 30c30 5 50 25 55 55M240 230c-30-5-50-25-55-55M230 20c-5 30-25 50-55 55M30 240c5-30 25-50 55-55'/><circle cx='130' cy='130' r='4'/><circle cx='210' cy='50' r='2.5'/><circle cx='50' cy='210' r='2.5'/></svg>"); background-size: 220px 220px; background-position: 60% 40%; }
.flip:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(27,23,71,0.28); }
.flip:hover::before, .flip.is-open::before { opacity: 1; transform: rotate(8deg) scale(1.05); }
.flip.is-open { transform: none; box-shadow: 0 24px 50px rgba(27,23,71,0.28); }
.flip__btn { all: unset; cursor: pointer; display: flex; flex-direction: column; gap: 10px; width: 100%; box-sizing: border-box; padding: clamp(18px, 2vw, 24px); min-height: 150px; }
.flip__btn:focus-visible { outline: 2px solid var(--mint); outline-offset: -6px; border-radius: var(--radius-lg); }
.flip__num { font-size: 12px; letter-spacing: .14em; font-weight: 700; color: var(--mint); }
.flip__title { font-family: var(--font-display); font-weight: 900; font-size: clamp(22px, 1.8vw, 26px); line-height: 1.04; flex: 1; }
.flip__hint { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,0.85); }
.flip__hint svg { width: 18px; height: 18px; transition: transform .35s ease; }
.flip.is-open .flip__hint svg { transform: rotate(45deg); }
.flip__body { padding: 0 clamp(18px, 2vw, 24px); max-height: 0; overflow: hidden; transition: max-height .55s cubic-bezier(.2,.9,.25,1), padding .4s ease, opacity .4s ease; opacity: 0; }
.flip__body[hidden] { display: block; }
.flip.is-open .flip__body { max-height: 600px; padding-bottom: clamp(18px, 2vw, 24px); opacity: 1; }
.flip__body p { margin: 0; font-size: 15px; line-height: 1.6; color: rgba(255,255,255,0.9); border-top: 1px solid rgba(255,255,255,0.18); padding-top: 18px; }
.flip.reveal { transition-delay: calc(var(--i) * 90ms); }

/* Contact (Conferencias y colaboraciones) ------------------------------ */
.reel-wide { aspect-ratio: 21 / 9; }
@media (max-width: 640px) {
  /* Conferencias on phones: title, text and reel fit in the first screen */
  .reel-wide { aspect-ratio: 4 / 3; border-radius: 20px; }
  .page-hero.section--tight { padding-top: 16px; padding-bottom: 8px; }
  .page-hero .h2 { font-size: 34px; }
  .page-hero .lead { font-size: 16px; margin-top: 10px; }
  .page-hero + .section--tight { padding-top: 8px; }
}
.contact-grid { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-block h2 { margin-bottom: 14px; }
.contact-block p { color: var(--primary); font-size: 16px; line-height: 1.6; }
.contact-block a { color: var(--accent); font-weight: 700; }
.checks { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.checks legend { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--primary); margin-bottom: 8px; }
.checks label { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; color: var(--ink); }
.checks input, .consent input { accent-color: var(--accent); width: 18px; height: 18px; }
.consent { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--primary); }
.consent a { color: var(--accent); }

/* Course / audience cards ----------------------------------------------- */
.tile { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; transition: transform .3s ease; }
.tile:hover { transform: translateY(-6px); }
.tile__img { aspect-ratio: 4 / 3; overflow: hidden; }
.tile__img img { width: 100%; height: 100%; object-fit: cover; }
.tile__body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.tile__title { font-family: var(--font-display); font-weight: 900; font-size: 22px; line-height: 1.1; color: var(--primary); }
.tile__desc { font-size: 14px; color: var(--muted); flex: 1; }
.tag { display: inline-block; align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; border-radius: var(--radius-pill); padding: 5px 12px; }
.tag--soldout { background: var(--red); color: var(--white); }
.tag--open { background: var(--accent); color: var(--white); }

.audience { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 2vw, 28px); }
@media (max-width: 720px) { .audience { grid-template-columns: 1fr; } }
.audience__item { background: var(--white); border-radius: var(--radius-lg); padding: 28px; }
.audience__item h3 { font-size: 24px; margin-bottom: 10px; }
.audience__item p { color: var(--muted); font-size: 15px; margin: 0; }

/* Prose ----------------------------------------------------------------- */
.prose { max-width: 68ch; font-size: 17px; color: var(--ink); }
.prose p { margin-bottom: 1.2em; }
.about-page { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 800px) { .about-page { grid-template-columns: 1fr; } }
@media (min-width: 801px) { .about-page .arch { position: sticky; top: 32px; } }

/* Blog list ------------------------------------------------------------- */
.post { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(20px, 3vw, 40px); align-items: center; padding-block: 28px; border-bottom: 1px solid rgba(42,36,102,0.15); }
.post:last-child { border-bottom: 0; }
.post__img { border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 4 / 3; }
.post__img img { width: 100%; height: 100%; object-fit: cover; }
.post__meta { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--accent); margin-bottom: 8px; }
.post h3 { font-size: clamp(22px, 2.4vw, 30px); margin-bottom: 10px; }
.post p { color: var(--muted); font-size: 15px; }
@media (max-width: 640px) { .post { grid-template-columns: 1fr; } }

/* Back to top ----------------------------------------------------------- */
.to-top { display: flex; justify-content: flex-end; padding-block: 8px 0; }
.to-top a { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.to-top span.circle { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--muted); display: grid; place-items: center; color: var(--muted); }
.to-top svg { width: 18px; height: 18px; }

/* Footer ---------------------------------------------------------------- */
.site-footer { padding: 24px var(--gutter) 28px; }
.site-footer__inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; font-size: 11px; color: var(--muted); }
.site-footer__links { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; }
.site-footer__links a:hover { color: var(--primary); }
.site-footer .socials { justify-content: flex-end; }
.site-footer .socials a { background: var(--primary); color: var(--bg); }
.site-footer__contact { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; margin-top: 10px; font-size: 12px; color: var(--muted); }
@media (max-width: 720px) {
  .site-footer__inner { grid-template-columns: 1fr; text-align: center; }
  .site-footer .socials { justify-content: center; }
}

/* Reveal on scroll ------------------------------------------------------ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }
