/* Sistema visual público v0.3.9: refinamiento no funcional y reversible. */
:root {
  --blue: #17384b;
  --deep: #0c2734;
  --green: #607867;
  --orange: #d66f3f;
  --orange-text: #a44724;
  --orange-on-dark: #e68a5c;
  --gold: #c5a15b;
  --cream: #f2eadc;
  --paper: #fcfaf5;
  --ink: #223735;
  --muted: #64726e;
  --line: rgba(23, 56, 75, .13);
  --surface: #fffefb;
  --radius-small: 10px;
  --radius-medium: 18px;
  --radius-large: 28px;
  --shadow-soft: 0 18px 50px rgba(12, 39, 52, .08);
  --shadow-raised: 0 28px 80px rgba(12, 39, 52, .13);
  --content-width: 1180px;
}

html { scroll-padding-top: 96px; }
body { background: var(--paper); color: var(--ink); font-size: 16px; }
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 9% 18%, rgba(197, 161, 91, .09), transparent 24rem),
    radial-gradient(circle at 92% 78%, rgba(96, 120, 103, .08), transparent 28rem);
}
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

.demo-banner {
  padding: .35rem 5vw;
  background: var(--deep);
  color: rgba(255, 255, 255, .76);
  font-size: .62rem;
  letter-spacing: .16em;
}
.site-header {
  height: 88px;
  padding-inline: max(5vw, calc((100vw - var(--content-width)) / 2));
  background: rgba(252, 250, 245, .91);
  border-bottom-color: rgba(23, 56, 75, .09);
  box-shadow: 0 10px 35px rgba(12, 39, 52, .035);
}
.brand { gap: .9rem; color: var(--deep); font-size: 1.08rem; }
.brand-mark {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, .72);
  border-color: rgba(197, 161, 91, .72);
  box-shadow: inset 0 0 0 5px var(--paper);
}
.main-nav { gap: clamp(.8rem, 1.4vw, 1.45rem); font-size: .72rem; }
.main-nav > a:not(.button) { display: flex; min-height: 44px; align-items: center; padding-block: .75rem; color: #425652; }
.main-nav > a:not(.button):hover { color: var(--orange); }
.button {
  min-height: 48px;
  border-radius: 999px;
  padding-inline: 1.4rem;
  box-shadow: 0 9px 26px rgba(23, 56, 75, .13);
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 13px 32px rgba(23, 56, 75, .18); }
.text-link { transition: color .2s ease, border-color .2s ease; }
.text-link:hover { color: var(--orange); }

.hero {
  width: min(100%, 1440px);
  min-height: min(780px, calc(100vh - 112px));
  margin-inline: auto;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr);
  background: linear-gradient(110deg, #f9f4ea 0%, var(--paper) 70%);
}
.hero-copy { padding: clamp(5rem, 9vw, 8rem) clamp(2rem, 7vw, 7rem); }
.hero h1 {
  max-width: 760px;
  margin-bottom: 2rem;
  color: var(--deep);
  font-size: clamp(3.5rem, 6.2vw, 6.15rem);
  line-height: .98;
  letter-spacing: -.052em;
}
.hero-intro { max-width: 620px; color: var(--muted); font-size: 1.13rem; line-height: 1.8; }
.hero .actions { margin-top: 2.2rem; }
.hero-notes { margin-top: clamp(3rem, 7vw, 5.5rem); color: #53635f; }
.hero-visual {
  overflow: hidden;
  min-height: 620px;
  background: linear-gradient(145deg, #173f55 0%, var(--deep) 100%);
  border-bottom-left-radius: var(--radius-large);
}
.hero-visual::after {
  content: "";
  position: absolute;
  inset: 8%;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 48% 48% 10% 48%;
  pointer-events: none;
}
.sun-disc {
  background: linear-gradient(145deg, #d4ae62, #ca7546);
  box-shadow: 0 0 0 52px rgba(255,255,255,.035), 0 0 0 104px rgba(255,255,255,.025);
}
.photo-placeholder {
  inset: 18% 9% 10% 13%;
  z-index: 3;
  justify-content: flex-end;
  padding: clamp(1.7rem, 4vw, 3.2rem);
  background: linear-gradient(180deg, rgba(8, 34, 47, .05), rgba(8, 34, 47, .68));
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 46% 46% 12px 46%;
  backdrop-filter: blur(2px);
}
.photo-placeholder strong { font-size: clamp(2.1rem, 4vw, 3.7rem); }
.floating-note { z-index: 5; border-radius: var(--radius-small); box-shadow: var(--shadow-soft); }

.section { padding: clamp(5.8rem, 9vw, 8.5rem) max(6vw, calc((100vw - var(--content-width)) / 2)); }
.section-heading { gap: clamp(2rem, 7vw, 6rem); margin-bottom: clamp(3rem, 5vw, 4.5rem); }
.section-heading h2, .faq h2 { color: var(--deep); }
.section-heading > p { color: var(--muted); line-height: 1.8; }
.eyebrow { margin-bottom: .85rem; color: var(--orange-text); font-size: .68rem; letter-spacing: .2em; }
.deep .eyebrow, .opinions .eyebrow, .therapy-detail-page .eyebrow { color: var(--orange-on-dark); }
.community .eyebrow { color: var(--deep); }

.card-grid.three, .post-grid { gap: 1.5rem; }
.experience-card, .post-card {
  overflow: hidden;
  background: var(--surface);
  border-color: rgba(23,56,75,.09);
  border-radius: var(--radius-medium);
  box-shadow: var(--shadow-soft);
  transition: transform .25s ease, box-shadow .25s ease;
}
.card-image { height: 320px; }
.card-image--real img { transition: transform .55s ease; }
.experience-card:hover .card-image--real img { transform: scale(1.035); }
.card-body, .post-copy { padding: 2rem 2rem 2.2rem; }
.card-tag { font-weight: 600; letter-spacing: .16em; }
.card-body h3 { color: var(--deep); }
.circle-button { border-color: rgba(23,56,75,.18); }

/* Publicaciones editoriales: mismo lenguaje de tarjetas que Actividades. */
.editorial-columns { gap: 1.5rem; align-items: start; }
.editorial-column > h3 { margin-bottom: 1.35rem; color: var(--deep); }
.vertical-slider {
  min-height: 610px;
  margin-bottom: 1.25rem;
  overflow: hidden;
  background: transparent;
  border: 0;
  border-radius: var(--radius-medium);
}
.editorial-card {
  overflow: hidden;
  padding: 0;
  background: var(--surface);
  border: 1px solid rgba(23,56,75,.09);
  border-radius: var(--radius-medium);
  box-shadow: var(--shadow-soft);
}
.editorial-slide.editorial-card.active { display: block; }
.editorial-slide .editorial-card__image,
.editorial-slide .editorial-card__body > *,
.editorial-slide .editorial-card__body a { margin-left: 0; margin-right: 0; }
.editorial-card__image { height: auto; aspect-ratio: 4 / 3; }
.editorial-card__image img { height: 100%; transition: transform .55s ease; }
.editorial-card:hover .editorial-card__image img { transform: scale(1.035); }
.editorial-card__body { display: flex; min-height: 275px; flex-direction: column; }
.editorial-card__body h4 { margin-bottom: .9rem; color: var(--deep); }
.editorial-card__body > p { color: var(--muted); }
.editorial-attribution { display: block; color: #64726e; line-height: 1.55; }
.editorial-attribution a { color: var(--blue); text-decoration: underline; text-decoration-color: rgba(23,56,75,.3); text-underline-offset: .2em; }
.editorial-card__body .card-actions { margin-top: auto; padding-top: 1.5rem; }
.editorial-column__more { display: inline-block; }
.editorial-archive h1 { margin-bottom: 0; color: var(--deep); font-size: clamp(3rem, 6vw, 5.8rem); }
.post-card__image { height: auto; aspect-ratio: 4 / 3; }
.post-card__image img { height: 100%; transition: transform .55s ease; }
.post-card:hover .post-card__image img { transform: scale(1.035); }
.post-card__title { color: var(--deep); font-size: clamp(1.6rem, 2.3vw, 2.1rem); }
.post-copy { display: flex; min-height: 330px; flex-direction: column; }
.post-copy .editorial-attribution { margin-top: auto; padding-top: 1rem; }
.post-copy .card-actions { margin-top: 1.5rem; }
.editorial-detail { width: min(1180px, calc(100% - 2rem)); }
.activity-detail__header.editorial-detail__header { align-items: start; }
.editorial-detail__image { max-height: 760px; border-radius: var(--radius-medium); box-shadow: var(--shadow-soft); }
.editorial-detail__copy h1 { color: var(--deep); font-size: clamp(2.8rem, 5vw, 5.2rem); }
.editorial-detail__body { color: #435652; font-size: 1.12rem; line-height: 1.85; }
.editorial-detail .editorial-attribution { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }

@media (hover: hover) and (pointer: fine) {
  .experience-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-raised);
  }
  .editorial-card, .post-card {
    transition: transform .25s ease, box-shadow .25s ease;
  }
  .editorial-card:hover, .post-card:hover {
    transform: translateY(-4px);
    box-shadow: 14px 18px 36px rgba(23, 56, 75, .16);
  }
}

.deep { background: linear-gradient(145deg, var(--deep), #143b48); }
.therapy-grid { width: min(100%, var(--content-width)); margin-inline: auto; }
.therapy-card { padding-block: 2.5rem; transition: padding .25s ease, background .25s ease; }
.therapy-card:hover { padding-inline: 1.25rem; background: rgba(255,255,255,.035); }
.therapy-number { color: var(--gold); }
.ghost-button { min-height: 46px; border-radius: 999px; }
.therapy-empty { padding: 2rem 0; color: #c7d3d0; }
.therapy-card--public { grid-template-columns: 64px minmax(180px, 210px) 1fr auto; }
.therapy-card__image-frame { width: 100%; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-small); background: #17384b; }
.therapy-card__image { display: block; width: 100%; height: 100%; object-fit: cover; }
.therapy-card__copy { align-self: center; }
.therapy-card__copy p { max-width: 680px; }
.therapy-actions .ghost-button { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.therapy-detail-page { background: var(--deep); color: #eef3f1; }
.therapy-detail-page .site-header { background: rgba(252,250,245,.96); color: var(--ink); }
.therapy-detail { width: min(1080px, calc(100% - 2rem)); margin: 4rem auto 7rem; }
.therapy-detail__back { display: inline-block; margin-bottom: 2.5rem; color: #fff; }
.therapy-detail__layout { display: grid; grid-template-columns: minmax(240px, 380px) minmax(0, 1fr); gap: clamp(3rem, 8vw, 7rem); align-items: start; }
.therapy-detail__image-frame { width: 100%; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 48% 48% 10px 48%; box-shadow: 18px 24px 60px rgba(0,0,0,.24); background: #17384b; }
.therapy-detail__image { display: block; width: 100%; height: 100%; object-fit: cover; }
.therapy-detail__copy h1 { color: #fff; font-size: clamp(3rem, 6vw, 5.8rem); }
.therapy-detail__summary { color: var(--gold); font-family: "Marcellus", serif; font-size: 1.3rem; line-height: 1.55; }
.therapy-detail__body { color: #d6e0dd; font-size: 1.08rem; line-height: 1.9; }
.therapy-detail__notice { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.18); color: #aebfbb; font-size: .9rem; }

.events { background: #efe7d9; }
.event-carousel-controls {
  justify-content: center;
  margin: -2rem auto 2.5rem;
}
.event-stage { min-height: 520px; overflow: hidden; border-radius: var(--radius-large); box-shadow: var(--shadow-raised); }
.event-art { min-height: 520px; }
.event-copy { padding: clamp(2.5rem, 6vw, 5rem); }
.event-copy h3 { color: var(--deep); }
.status { border-radius: 999px; padding: .48rem .8rem; }
.slider-controls button { background: rgba(255,255,255,.45); transition: background .2s ease, transform .2s ease; }
.slider-controls button:hover { background: #fff; transform: translateY(-1px); }
.dots button { width: 10px; height: 10px; }

.about { background: var(--surface); color: var(--ink); }
.about-art { min-height: 720px; background: linear-gradient(150deg, #597365, #244e4a); }
.portrait-frame { border-radius: 48% 48% 12px 48%; box-shadow: var(--shadow-raised); }
.profile-video { border-radius: var(--radius-medium); box-shadow: var(--shadow-raised); }
.about-copy { padding: clamp(5rem, 9vw, 8rem) clamp(2rem, 7vw, 7rem); }
.about-copy h2 { color: var(--deep); }
.about-phrase { color: #9a7130; }
.about-description p, .about-copy > p { color: var(--muted); line-height: 1.85; }
.credentials { border-top-color: var(--line); }
.credentials li { padding-block: .75rem; border-bottom-color: var(--line); }

.editorial-columns { gap: 1.5rem; }
.vertical-slider { overflow: hidden; border-color: rgba(23,56,75,.1); border-radius: var(--radius-medium); box-shadow: var(--shadow-soft); }
.editorial-slide img, .publication-image { background: var(--cream); }

.opinions { padding: clamp(6rem, 9vw, 8rem) max(6vw, calc((100vw - var(--content-width)) / 2)); background: linear-gradient(140deg, #173d52, var(--deep)); }
.opinion-slider { border-color: rgba(255,255,255,.18); border-radius: var(--radius-large); background: rgba(255,255,255,.035); }
.opinion-slider blockquote { max-width: 820px; }
.opinion-cta { left: max(6vw, calc((100vw - var(--content-width)) / 2)); }

.community { padding: clamp(6rem, 9vw, 8rem) max(6vw, calc((100vw - var(--content-width)) / 2)); background: linear-gradient(135deg, #d9b265, #d66f3f); }
.newsletter { padding: clamp(1.8rem, 4vw, 3rem); border-radius: var(--radius-large); box-shadow: var(--shadow-raised); }
.newsletter input:not([type=checkbox]) { min-height: 48px; }
.interest-options { gap: .65rem 1.4rem; }

.faq { padding: clamp(6rem, 9vw, 8rem) max(6vw, calc((100vw - var(--content-width)) / 2)); }
.faq-item button { min-height: 70px; }
.contact { padding: clamp(6rem, 9vw, 8rem) max(6vw, calc((100vw - var(--content-width)) / 2)); background: #eee7da; }
footer { padding: 3.5rem max(6vw, calc((100vw - var(--content-width)) / 2)); }
.site-version { margin-top: .6rem; color: rgba(255,255,255,.45); font-size: .66rem; letter-spacing: .08em; }

.activity-detail { width: min(var(--content-width), calc(100% - 3rem)); margin-top: clamp(3rem, 7vw, 6rem); }
.activity-detail__header { gap: clamp(2.5rem, 7vw, 6rem); align-items: center; }
.activity-detail__image { max-height: 720px; border-radius: var(--radius-large); box-shadow: var(--shadow-raised); }
.activity-detail__summary { color: var(--muted); font-size: 1.16rem; line-height: 1.8; }
.activity-detail__body { line-height: 1.85; }
.activity-detail__edition, .activity-video, .activity-detail__notice { border-radius: var(--radius-medium); }
.activity-detail__edition { border-left: 0; border-top: 4px solid var(--gold); box-shadow: var(--shadow-soft); }
.activity-date-card { border-top: 0; border-radius: var(--radius-medium); box-shadow: var(--shadow-soft); }
.activity-date-card__image { transition: transform .45s ease; }
.activity-date-card:hover .activity-date-card__image { transform: scale(1.03); }
.activity-video { box-shadow: var(--shadow-soft); }

@media (max-width: 1080px) {
  .site-header { height: 78px; }
  .menu-toggle { min-height: 44px; align-items: center; padding: .5rem .25rem; cursor: pointer; }
  .main-nav { top: 78px; padding: 1.3rem 5vw 1.7rem; box-shadow: var(--shadow-soft); }
  .main-nav > a { min-height: 44px; display: flex; align-items: center; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 4.5rem; }
  .hero h1 { max-width: 880px; }
  .hero-visual { min-height: 620px; border-radius: var(--radius-large) var(--radius-large) 0 0; }
  .about { grid-template-columns: .9fr 1.1fr; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 74px; }
  body { font-size: 15.5px; }
  .demo-banner { font-size: .56rem; }
  .site-header { height: 72px; padding-inline: 5vw; }
  .main-nav { top: 72px; }
  .hero-copy { padding: 4.5rem 6vw 3.6rem; }
  .hero h1 { font-size: clamp(3rem, 14vw, 4.6rem); line-height: 1; }
  .hero-intro { font-size: 1.05rem; }
  .hero-notes { margin-top: 3rem; }
  .hero-visual { min-height: 480px; }
  .photo-placeholder { inset: 12% 6% 8% 10%; }
  .section, .opinions, .community, .faq, .contact { padding: 5.5rem 6vw; }
  .section-heading { margin-bottom: 2.8rem; }
  .event-carousel-controls { margin-top: -1rem; }
  .card-image { height: auto; aspect-ratio: 4 / 3; }
  .therapy-card:hover { padding-inline: 0; background: transparent; }
  .event-stage { min-height: 0; border-radius: var(--radius-medium); }
  .event-art { min-height: 300px; }
  .event-copy { padding: 2.2rem 1.7rem; }
  .about { grid-template-columns: 1fr; }
  .about-art { min-height: 620px; }
  .about-copy { padding: 5rem 7vw; }
  .opinion-slider { min-height: 360px; }
  .opinion-cta { left: 6vw; bottom: 5.5rem; }
  .activity-detail { width: min(100% - 1.5rem, var(--content-width)); }
}

@media (max-width: 900px) {
  .therapy-card--public { grid-template-columns: 52px 160px 1fr; }
  .therapy-card--public .therapy-actions { grid-column: 3; }
}

@media (max-width: 620px) {
  .therapy-card--public { grid-template-columns: 40px 104px 1fr; gap: 1rem; align-items: start; }
  .therapy-card--public .therapy-actions { grid-column: 2 / -1; }
  .therapy-detail { margin-top: 2rem; }
  .therapy-detail__layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .therapy-detail__image-frame { width: min(100%, 360px); }
}

@media (max-width: 420px) {
  .brand { font-size: 1rem; }
  .brand-mark { width: 40px; height: 40px; }
  .hero h1 { font-size: clamp(2.85rem, 13.5vw, 3.75rem); }
  .hero-visual { min-height: 420px; }
  .floating-note { display: none; }
  .section, .opinions, .community, .faq, .contact { padding-inline: 5vw; }
  .newsletter { border-radius: var(--radius-medium); }
  .vertical-slider { min-height: 570px; }
  .editorial-card__body, .post-copy { min-height: auto; }
  .editorial-detail__header { gap: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  .button, .experience-card, .editorial-card, .post-card, .card-image--real img,
  .editorial-card__image img, .post-card__image img, .activity-date-card__image { transition: none; }
  .experience-card:hover, .editorial-card:hover, .post-card:hover,
  .editorial-card:hover .editorial-card__image img,
  .post-card:hover .post-card__image img { transform: none; }
}
