/* ============================================
   Dr. Sebastián Guerra — Médico Vascular
   ============================================ */
/* Tokens de marca: public/css/tokens.css */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.55;
  overflow-x: hidden;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

.public-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.public-page > main,
.public-page > .section,
.public-page > article.section {
  flex: 1 0 auto;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.container-wide {
  width: min(100% - 2.5rem, 1180px);
  margin-inline: auto;
}

.sr-only,
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Vein pattern */
.vein-bg {
  position: relative;
  isolation: isolate;
}

.vein-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.55;
  background-image: url("../assets/brand/veins-teal.png");
  background-size: cover;
  background-position: center;
  pointer-events: none;
}

.vein-bg--light::before {
  opacity: 0.14;
  filter: invert(0.12) brightness(1.4) saturate(0.7);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background-color: var(--teal);
  background-image: url("../assets/brand/header-bg.png");
  background-size: cover;
  background-position: center right;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
  isolation: isolate;
}

.site-header::before {
  display: none;
}

.logo img {
  display: block;
  height: 58px;
  width: auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 78px;
  padding-block: 0.65rem;
  position: relative;
  z-index: 1;
}

.logo {
  display: flex;
  align-items: center;
  color: var(--white);
  flex-shrink: 0;
}

.logo-text strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.15;
}

.logo-text span {
  display: block;
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.88;
  font-weight: 500;
  margin-top: 2px;
}

.nav {
  display: flex;
  align-items: center;
}

.nav-list,
.nav-sub {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.nav-item {
  position: relative;
}

.nav-item-row {
  display: flex;
  align-items: center;
}

.nav-expand {
  display: none;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--white);
  font-size: 0.86rem;
  font-weight: 500;
  opacity: 0.95;
  transition: opacity 0.2s;
}

.nav a:hover {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (min-width: 1024px) {
  .nav-sub {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 2;
    min-width: 13rem;
    padding: 0.35rem 0;
    background: var(--teal-deep);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .nav-sub a {
    display: flex;
    width: 100%;
    padding: 0 1rem;
    box-sizing: border-box;
  }

  .nav-item:hover > .nav-sub,
  .nav-item:focus-within > .nav-sub {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-sub .nav-sub {
    top: 0;
    left: 100%;
    z-index: 3;
  }
}

.btn-skew {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1.45rem;
  background: #e8eef0;
  color: var(--teal);
  font-weight: 700;
  font-style: italic;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  clip-path: polygon(8% 0, 100% 0, 92% 100%, 0% 100%);
  transition: transform 0.2s, background 0.2s;
  white-space: nowrap;
}

.btn-skew:hover {
  background: var(--white);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  border-radius: 10px;
  cursor: pointer;
  place-items: center;
  place-content: center;
  gap: 3px;
  flex-direction: column;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: white;
}

.nav-close {
  display: none;
}

body.nav-lock {
  overflow: hidden;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 1.55rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.92rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  text-align: center;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--teal);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(10, 92, 102, 0.28);
}

.btn-primary:hover {
  background: var(--teal-deep);
}

.btn-secondary {
  background: var(--mint);
  color: var(--teal-deep);
}

.btn-secondary:hover {
  background: #a8c7c1;
}

.btn-outline-light {
  background: transparent;
  color: white;
  border: 1.5px solid rgba(255, 255, 255, 0.65);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-white {
  background: white;
  color: var(--teal);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 2.75rem 0 2.1rem;
  text-align: center;
  background: #f7fbfb;
  overflow: hidden;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-watermark {
  position: absolute;
  right: 4%;
  top: 42%;
  transform: translateY(-50%);
  width: min(52%, 580px);
  height: auto;
  opacity: 0.09;
  pointer-events: none;
  z-index: 0;
  filter: brightness(0) saturate(100%) invert(30%) sepia(24%) saturate(900%) hue-rotate(148deg);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1.1rem;
  background: var(--mint);
  color: var(--teal-deep);
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1.35rem;
}

.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
}

.hero-banner {
  display: block;
  width: 100%;
  background: var(--teal);
  color: #ffffff;
  padding: 1.05rem 2.4rem;
  font-size: clamp(1.28rem, 3.2vw, 2.05rem);
  font-weight: 800;
  font-style: italic;
  line-height: 1.28;
  margin: 0 auto 1.15rem;
  box-shadow: 0 12px 28px rgba(13, 96, 115, 0.28);
  clip-path: polygon(1.8% 0, 100% 0, 98.2% 100%, 0% 100%);
}

.hero-tagline {
  color: var(--teal);
  font-size: 1.2rem;
  font-weight: 700;
  font-style: italic;
  margin-bottom: 1rem;
}

.hero-desc {
  max-width: 680px;
  margin: 0 auto 1.75rem;
  color: #5a6f72;
  font-size: 0.98rem;
  line-height: 1.65;
}

.hero-join {
  background: var(--teal);
  line-height: 0;
  position: relative;
  z-index: 2;
}

.hero-join img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---------- Protocol strip ---------- */
.protocol-section {
  background: var(--teal);
  padding: 0 0 2.5rem;
  color: white;
}

.trapezoid-divider {
  display: flex;
  justify-content: center;
  line-height: 0;
}

.trapezoid-divider svg {
  display: block;
  width: min(100%, 600px);
  height: auto;
  fill: var(--trapezoid-fill, var(--color-divisor));
}

.protocol-section.vein-bg::before {
  opacity: 0.7;
  filter: none;
}

.protocol-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 1.15rem;
  padding-top: 1.35rem;
}

.glass-card {
  background: rgba(183, 196, 199, 0.78);
  backdrop-filter: blur(14px);
  border-radius: var(--radius);
  padding: 1.6rem 1.55rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.protocol-main .eyebrow {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
  font-style: italic;
  font-weight: 600;
  margin-bottom: 0.55rem;
}

.protocol-main h2 {
  color: var(--teal-deep);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 800;
  font-style: italic;
  line-height: 1.35;
  margin-bottom: 1rem;
}

.protocol-main h2 span {
  display: block;
  font-weight: 700;
}

.protocol-main ul {
  display: grid;
  gap: 0.45rem;
}

.protocol-main li {
  color: white;
  font-size: 0.92rem;
  padding-left: 1.35rem;
  position: relative;
}

.protocol-main li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 0.55rem;
  height: 0.3rem;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

.protocol-side {
  display: grid;
  gap: 1.15rem;
}

.speaker-card {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.speaker-badge {
  flex-shrink: 0;
  width: 90px;
  height: 86px;
  object-fit: contain;
}

.speaker-card h3 {
  color: var(--white);
  font-size: 1.21rem;
  font-weight: 800;
  font-style: italic;
  margin-bottom: 0.35rem;
}

.speaker-card p {
  color: var(--white);
  font-size: 0.86rem;
  line-height: 1.45;
}

.stats-card {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  text-align: center;
}

.stat strong {
  display: block;
  color: var(--teal-deep);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  font-style: italic;
  line-height: 1;
  margin-bottom: 0.35rem;
}

.stat span {
  display: block;
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.3;
}

/* ---------- Trust bar ---------- */
.trust-bar {
  padding: 1.5rem 0 1.1rem;
  text-align: center;
  background: white;
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1.1rem;
  color: var(--teal);
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 1rem;
}

.trust-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.trust-list li::before {
  content: "•";
}

.ig-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1.15rem;
  background: var(--mint);
  color: var(--teal-deep);
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.88rem;
}

.ig-pill svg {
  width: 14px;
  height: 14px;
}

/* ---------- Piernas 360 banner ---------- */
.p360-banner {
  background: var(--mint-pale);
  padding: 1.1rem 0;
}

.p360-banner-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.25rem;
  align-items: center;
}

.p360-brand {
  color: var(--teal);
}

.p360-brand .script {
  font-family: var(--font-script);
  font-size: 1.11rem;
  line-height: 1;
  display: block;
}

.p360-brand small {
  display: block;
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  font-weight: 700;
  margin-top: 0.15rem;
}

.p360-banner p {
  color: var(--teal);
  font-weight: 700;
  font-size: 0.98rem;
  text-align: center;
}

/* ---------- About ---------- */
.about {
  background: var(--mint-pale);
  padding: 0 0 3.5rem;
}

.about-panel {
  position: relative;
  display: grid;
  grid-template-columns: 0.95fr 1.15fr;
  background: var(--teal);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  overflow: hidden;
  min-height: 560px;
}

.about-panel > .trapezoid-divider {
  display: none;
}

@media (min-width: 1024px) {
  .about-panel > .trapezoid-divider {
    display: flex;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 3;
    pointer-events: none;
  }

  .about-content {
    padding-top: 3.5rem;
  }

  .about-content .eyebrow {
    padding-top: 1.5rem;
  }
}

.about-photo {
  position: relative;
  min-height: 420px;
  background: #c5d4d6;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  position: absolute;
  inset: 0;
}

.exp-badge {
  position: absolute;
  right: 0;
  bottom: 0;
  background: var(--teal);
  color: white;
  padding: 1rem 1.15rem;
  border-radius: 18px 0 0 18px;
  max-width: 160px;
  z-index: 2;
}

.exp-badge strong {
  display: block;
  font-family: var(--font-script);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1;
}

.exp-badge span {
  font-size: 0.72rem;
  line-height: 1.3;
  display: block;
  margin-top: 0.2rem;
}

.about-content {
  padding: 2.1rem 2rem 2rem;
  color: white;
}

.about-content .eyebrow {
  font-style: italic;
  font-weight: 500;
  opacity: 0.9;
  margin-bottom: 0.35rem;
}

.about-content h2 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.about-content .bio {
  display: grid;
  gap: 0.85rem;
  font-size: 0.88rem;
  line-height: 1.55;
  opacity: 0.95;
  margin-bottom: 1.35rem;
}

.values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.value-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: rgba(255, 255, 255, 0.58);
  border-radius: 14px;
  padding: 0.9rem 0.95rem;
  color: var(--teal-deep);
}

.value-card-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.value-card .icon {
  width: 48px;
  height: 48px;
  margin: 0;
  object-fit: contain;
}

.value-card .icon-tint {
  filter: brightness(0) invert(1);
}

.icon-tint {
  filter: brightness(0) saturate(100%) invert(27%) sepia(32%) saturate(1200%) hue-rotate(148deg) brightness(92%) contrast(95%);
}

.value-card-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.value-card h4 {
  display: block;
  font-family: var(--font-script);
  font-size: 0.87rem;
  font-weight: 400;
  color: var(--teal);
  line-height: 1.15;
  margin: 0 0 0.25rem;
}

.value-card p {
  display: block;
  margin: 0;
  font-size: 0.72rem;
  color: var(--gray);
  line-height: 1.35;
}

.value-card:last-child p {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--teal);
}

/* ---------- Section heads ---------- */
.section {
  padding: 3.5rem 0;
}

.section-label {
  text-align: center;
  color: var(--teal);
  font-weight: 700;
  font-style: italic;
  font-size: 1.05rem;
  margin-bottom: 0.85rem;
}

.section-banner {
  background: var(--teal);
  color: white;
  text-align: center;
  padding: 0.85rem 1.25rem;
  font-size: clamp(1.15rem, 2.8vw, 1.7rem);
  font-weight: 800;
  font-style: italic;
  margin-bottom: 1rem;
}

.section-banner--light {
  background: #ffffff;
  color: var(--teal);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.section-intro {
  text-align: center;
  color: var(--muted);
  max-width: 720px;
  margin: 0 auto 2.25rem;
  font-size: 0.95rem;
}

/* ---------- Treatments ---------- */
.treatments {
  background: #f7fafa;
}

.treatments-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

.treatment-card {
  background: var(--mint-light);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem 1.4rem;
}

.treatment-card .icon-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 0.85rem;
  color: var(--teal);
}

.treatment-card .icon-wrap img {
  width: auto;
  height: 48px;
  object-fit: contain;
}

.treatment-card h3 {
  color: var(--teal);
  font-size: 1.02rem;
  font-weight: 800;
  margin-bottom: 0.55rem;
  text-align: left;
}

.treatment-card p {
  color: var(--gray);
  font-size: 0.86rem;
  margin-bottom: 0.85rem;
  line-height: 1.5;
}

.treatment-card ul {
  display: grid;
  gap: 0.35rem;
}

.treatment-card li {
  color: var(--teal-deep);
  font-size: 0.82rem;
  padding-left: 0.95rem;
  position: relative;
}

.treatment-card li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  position: absolute;
  left: 0;
  top: 0.4em;
}

.treatments-archive-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: 42rem;
  margin: 0 auto;
}

.treatments-archive-item {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  min-height: 44px;
  background: var(--mint-light);
  border-radius: var(--radius);
  padding: 1.15rem 1.35rem;
}

.treatments-archive-item:hover .treatments-archive-item__title {
  text-decoration: underline;
}

.treatments-archive-item:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}

.treatments-archive-item__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
}

.treatments-archive-item__icon img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.treatments-archive-item__body {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

.treatments-archive-item__title {
  color: var(--teal);
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.3;
}

.treatments-archive-item__excerpt {
  color: var(--gray);
  font-size: 0.88rem;
  line-height: 1.5;
}

/* ---------- How it works ---------- */
.how {
  background-color: var(--teal);
  background-image: url("../assets/brand/how-bg.png");
  background-size: cover;
  background-position: center top;
  color: white;
  padding: 3.75rem 0;
}

.how.vein-bg::before {
  display: none;
}

.how .section-label,
.how h2,
.how .section-intro {
  color: white;
}

.how .section-intro {
  opacity: 0.9;
}

.how .section-banner--light {
  max-width: 100%;
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.steps-grid--single {
  grid-template-columns: 1fr;
}

.step-card {
  display: flex;
  align-items: stretch;
  gap: 1rem;
  background: rgba(210, 222, 224, 0.28);
  border-radius: var(--radius-pill);
  padding: 0 1.35rem 0 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.step-num {
  flex-shrink: 0;
  align-self: stretch;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: white;
  font-family: var(--font-script);
  font-weight: 400;
  font-style: normal;
  font-size: 2.15rem;
  line-height: 1;
}

.step-card > :last-child {
  padding: 1.15rem 0;
}

.step-card h3 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.step-card p {
  font-size: 0.84rem;
  opacity: 0.92;
  line-height: 1.45;
}

/* ---------- Estética ---------- */
.estetica {
  position: relative;
  background: var(--mint-light);
  padding: 3.25rem 0 0;
}

.estetica .container {
  padding-bottom: 2.5rem;
}

.estetica > .trapezoid-divider {
  display: none;
}

@media (min-width: 1024px) {
  .estetica .container {
    padding-bottom: calc(2.5rem + 28px);
  }

  .estetica > .trapezoid-divider {
    display: flex;
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    margin: 0;
    align-items: flex-end;
    line-height: 0;
  }

  .estetica > .trapezoid-divider svg {
    display: block;
    height: 28px;
    overflow: visible;
  }
}

.estetica .section-label {
  color: var(--teal);
}

.estetica .section-intro {
  color: var(--teal-deep);
}

.estetica-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0.5rem;
}

.feature-pill {
  background: var(--teal);
  color: white;
  border-radius: 48px;
  padding: 1.75rem 1.75rem 1.4rem;
  text-align: center;
  margin-top: 0.5rem;
}

.feature-pill h3 {
  font-size: 1.25rem;
  font-weight: 800;
  font-style: italic;
  margin-bottom: 0.65rem;
}

.feature-pill > p {
  max-width: 760px;
  margin: 0 auto 1.15rem;
  font-size: 0.92rem;
  opacity: 0.95;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}

.tag {
  display: inline-flex;
  padding: 0.45rem 1.05rem;
  background: white;
  color: var(--teal);
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 700;
  border: 1px solid transparent;
}

.tag--outline {
  background: white;
  border-color: rgba(10, 92, 102, 0.15);
}

/* Aesthetic stacked cards */
.aesthetic-stack {
  background: #eef5f5;
  padding: 0.5rem 0 3rem;
}

.stack-card {
  background: var(--teal);
  color: white;
  border-radius: 48px;
  padding: 1.75rem 1.5rem 1.4rem;
  text-align: center;
  margin-bottom: 1rem;
}

.estetica-cards .feature-pill,
.estetica-cards .stack-card {
  margin-top: 0;
  margin-bottom: 0;
}

.stack-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 0.55rem;
}

.stack-card > p {
  max-width: 780px;
  margin: 0 auto 1.15rem;
  font-size: 0.92rem;
  opacity: 0.95;
}

/* ---------- Signals ---------- */
.signals {
  background: white;
  padding: 3rem 0 3.5rem;
  position: relative;
}

.signals::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 40px;
  background: url("../assets/brand/arrow-down.png") center / contain no-repeat;
  border: none;
}

.signals-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
  margin-top: 2rem;
}

.card-gallery {
  --gallery-gap: 0.9rem;
  margin-top: 2rem;
}

.card-gallery-track {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: var(--gallery-gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
}

.card-gallery-track.is-dragging {
  scroll-snap-type: none;
  scroll-behavior: auto;
  cursor: grabbing;
}

.card-gallery-track::-webkit-scrollbar {
  display: none;
}

.card-gallery-track > * {
  flex: 0 0 calc((100% - (var(--gallery-cols, 1) - 1) * var(--gallery-gap)) / var(--gallery-cols, 1));
  min-width: 0;
  scroll-snap-align: start;
}

.card-gallery.testimonials .card-gallery-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--gallery-cols, 1) - 1) * var(--gallery-gap)) / var(--gallery-cols, 1));
  align-items: stretch;
}

.card-gallery.testimonials .card-gallery-track > * {
  flex: none;
  width: auto;
  height: 100%;
  min-height: 100%;
}

.card-gallery-pager {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 1.1rem;
}

.card-gallery-pager button {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.card-gallery-pager button::after {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  margin: 0 auto;
  border-radius: var(--radius-pill);
  background: var(--mint-pale);
}

.card-gallery-pager button[aria-current="true"]::after {
  background: var(--teal);
}

@media (prefers-reduced-motion: reduce) {
  .card-gallery-track {
    scroll-behavior: auto;
  }
}

.signal-card {
  background: var(--teal);
  color: white;
  border-radius: var(--radius);
  padding: 1.35rem 1.15rem 1.25rem;
  min-height: 190px;
  height: 100%;
  text-align: center;
}

.signal-icon {
  width: 34px;
  height: 34px;
  margin-bottom: 0.7rem;
  opacity: 0.92;
}

.signal-icon svg {
  width: 100%;
  height: 100%;
}

.signal-card h3 {
  font-size: 1rem;
  font-weight: 800;
  font-style: italic;
  margin-bottom: 0.55rem;
  line-height: 1.25;
  text-align: center;
}

.signal-card p {
  font-size: 0.82rem;
  opacity: 0.9;
  line-height: 1.45;
  text-align: center;
}

.signals-cta {
  text-align: center;
  margin-top: 2rem;
}

/* ---------- Results ---------- */
.results {
  background-color: var(--teal);
  background-image: url("../assets/brand/how-bg.png");
  background-size: cover;
  background-position: center top;
  color: white;
  padding: 3.75rem 0;
}

.results.vein-bg::before {
  display: none;
}

.results .section-label,
.results h2,
.results .section-intro {
  color: white;
}

.results .section-intro {
  opacity: 0.9;
}

.results h2 {
  text-align: center;
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  font-weight: 800;
  margin-bottom: 0.55rem;
}

.testimonials {
  margin: 2rem 0;
}

.testimonials-snapshot {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin: 2rem 0;
  list-style: none;
}

@media (min-width: 768px) {
  .testimonials-snapshot {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .testimonials-snapshot {
    grid-template-columns: repeat(3, 1fr);
  }
}

.results .card-gallery-pager button::after {
  background: rgba(255, 255, 255, 0.35);
}

.results .card-gallery-pager button[aria-current="true"]::after {
  background: white;
}

.testimonial {
  display: flex;
  flex-direction: column;
  background: white;
  border: 1px solid #dce8e8;
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
  box-shadow: var(--shadow);
  box-sizing: border-box;
  height: 100%;
  min-height: 100%;
}

.testimonial .avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--teal);
  color: white;
  display: grid;
  place-items: center;
  font-weight: 800;
  margin-bottom: 0.85rem;
}

.testimonial p {
  flex: 1 1 auto;
  color: var(--gray);
  font-size: 0.88rem;
  line-height: 1.55;
  margin-bottom: 1rem;
}

.testimonial strong {
  display: block;
  color: var(--teal);
  font-size: 0.92rem;
}

.testimonial small {
  color: var(--muted);
  font-size: 0.75rem;
}

.results-stats,
.stat-highlights {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: center;
}

.stat-highlights-item,
.results-stats .stat-box {
  margin: 0;
  padding: 1.15rem 0.75rem;
  border-radius: 18px;
}

.stat-highlights-item--dark {
  background: var(--teal-deep);
  color: white;
}

.stat-highlights-item--light {
  background: var(--mint-pale);
  color: var(--teal);
}

.stat-highlights-item strong,
.results-stats strong {
  display: block;
  font-family: var(--font-script);
  font-size: 1.85rem;
  font-weight: 400;
  font-style: normal;
  color: inherit;
}

.stat-highlights-item span,
.results-stats span {
  font-size: 0.78rem;
  font-weight: 600;
  color: inherit;
  opacity: 0.88;
}

@media (min-width: 768px) {
  .stat-highlights {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .stat-highlights {
    grid-template-columns: repeat(var(--stat-count, 4), minmax(0, 1fr));
    gap: 0;
  }

  .stat-highlights-item {
    border-radius: 0;
  }

  .stat-highlights-item:first-child {
    border-radius: 18px 0 0 18px;
  }

  .stat-highlights-item:last-child {
    border-radius: 0 18px 18px 0;
  }

  .stat-highlights-item:only-child {
    border-radius: 18px;
  }
}

/* ---------- FAQ ---------- */
.faq {
  background: var(--mint-light);
  padding: 3.75rem 0;
}

.faq-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}

.faq-head .section-label {
  margin-bottom: 0;
}

.faq-ask {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 1rem;
  background: var(--mint);
  color: var(--teal-deep);
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
}

.faq-layout {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 2rem;
  align-items: start;
}

.accordion {
  display: grid;
  gap: 0.65rem;
}

.acc-item {
  background: white;
  border-radius: 14px;
  border: 1px solid #dce8e8;
  overflow: hidden;
}

.acc-btn {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 1rem 1.15rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  cursor: pointer;
  color: var(--teal);
  font-weight: 700;
  font-size: 0.95rem;
}

.acc-btn .chev {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--mint);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform 0.25s;
}

.acc-item.open .acc-btn .chev {
  transform: rotate(180deg);
}

.acc-panel {
  display: none;
  padding: 0 1.15rem 1.1rem;
  color: var(--gray);
  font-size: 0.9rem;
  line-height: 1.55;
}

.acc-item.open .acc-panel {
  display: block;
}

.acc-panel p {
  margin: 0;
}

.acc-panel p + p {
  margin-top: 0.65rem;
}

.faq-aside {
  background: var(--teal);
  color: white;
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  text-align: center;
  align-self: center;
}

.faq-aside h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.65rem;
}

.faq-aside-icon {
  width: 48px;
  height: 46px;
  object-fit: contain;
  margin: 0 auto 0.85rem;
  display: block;
  filter: brightness(0) invert(1);
}

.faq-aside p {
  font-size: 0.9rem;
  opacity: 0.92;
  margin-bottom: 1.25rem;
}

/* ---------- Contact ---------- */
.contact {
  padding: 3.75rem 0;
  background: white;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.5rem;
}

.contact-card {
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
}

.contact-card {
  background: #f3f8f8;
  border: 1px solid #dce8e8;
}

.contact-card h2 {
  color: var(--teal);
  font-size: 1.45rem;
  margin-bottom: 0.4rem;
}

.contact-card > p {
  color: var(--muted);
  margin-bottom: 1.25rem;
  font-size: 0.92rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.form-group {
  display: grid;
  gap: 0.35rem;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--teal);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  border: 1px solid #c9d7d8;
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  background: white;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(10, 92, 102, 0.12);
}

.form-group textarea {
  min-height: 110px;
  resize: vertical;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.form-note {
  margin-top: 0.85rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.form-success {
  display: none;
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  background: #e4f5ea;
  color: #1d6b3a;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9rem;
}

.form-success.show {
  display: block;
}

.contact-item-list {
  display: grid;
  gap: 1.15rem;
  margin: 0;
  padding: 0.25rem 0;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  background: none;
  padding: 0;
}

.contact-item-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-item-icon img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 14px;
}

.contact-item-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding-top: 0.15rem;
}

.contact-item-body h3,
.contact-item-body h3 em {
  margin: 0;
  font-size: 1.14rem;
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0;
  text-transform: none;
  color: var(--teal-deep);
}

.contact-item-enlace {
  margin: 0.15rem 0 0;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.4;
  color: var(--gray);
  word-break: break-word;
}

a.contact-item-enlace {
  color: var(--teal-deep);
}

a.contact-item-enlace:hover {
  text-decoration: underline;
}

a.contact-item-enlace:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

.contact-map {
  padding: 0 0 3.75rem;
  background: white;
}

.contact-map-title {
  color: var(--teal);
  font-size: 1.45rem;
  margin: 0 0 0.6rem;
}

.contact-map .section-intro {
  margin-bottom: 1.15rem;
}

.contact-map-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid #dce8e8;
  background: #f3f8f8;
}

.contact-map-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.contact-map-actions {
  margin: 1.15rem 0 0;
}

/* ---------- Piernas 360 detailed ---------- */
.p360 {
  background: linear-gradient(165deg, #0a5c66 0%, #0d6b75 45%, #145a63 100%);
  color: white;
  padding: 4rem 0;
}

.p360.vein-bg::before {
  background-image: url("../assets/brand/veins-dark.png");
  opacity: 0.85;
  filter: none;
}

.p360.p360-full {
  background: var(--white);
  color: var(--teal-deep);
}

.p360.p360-full.vein-bg::before {
  background-image: url("../assets/brand/veins-teal.png");
  opacity: 0.14;
  filter: invert(0.12) brightness(1.4) saturate(0.7);
}

.p360-full .p360-layers {
  background: transparent;
}

.p360-full .p360-process,
.p360-full .why-card,
.p360-full .layer,
.p360-full .process-step,
.p360-full .tech-card,
.p360-full .p360-cta-box {
  background: var(--mint-pale);
  border-color: transparent;
}

.p360-full .p360-process.vein-bg::before {
  opacity: 0.12;
}

.p360-full .layer .mini-tags span,
.p360-full .session-chip {
  background: rgba(13, 96, 115, 0.1);
}

.p360-full .layer-num {
  background: var(--teal);
  color: var(--white);
}

.p360-full .btn-white {
  background: var(--teal);
  color: var(--white);
}

.p360-full .btn-outline-light {
  color: var(--teal);
  border-color: var(--teal);
}

.p360-full .btn-outline-light:hover {
  background: rgba(13, 96, 115, 0.08);
}

.p360-hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 3rem;
}

.p360-intro {
  position: relative;
  background-color: var(--teal);
  background-image: url("../assets/brand/how-bg.png");
  background-size: cover;
  background-position: center top;
}

.p360-intro.vein-bg::before {
  display: none;
}

.p360-intro > .trapezoid-divider {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 2;
  pointer-events: none;
}

.protocol-tech {
  position: relative;
  padding-bottom: 0;
}

.protocol-tech > .container {
  padding-bottom: calc(2.5rem + 28px);
}

.protocol-tech .card-gallery {
  margin-top: 0;
}

.protocol-tech .tech-card {
  height: 100%;
  box-sizing: border-box;
}

.protocol-tech > .protocol-tech-trap-top {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 2;
  pointer-events: none;
}

.protocol-tech > .protocol-tech-trap-bottom {
  display: flex;
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  margin: 0;
  align-items: flex-end;
  line-height: 0;
  pointer-events: none;
}

.protocol-tech > .protocol-tech-trap-bottom svg {
  display: block;
  height: 28px;
  overflow: visible;
}

.p360-intro-actions {
  justify-content: center;
}

@media (min-width: 768px) {
  .p360-intro-actions {
    flex-wrap: nowrap;
  }
}

.p360 .section-label {
  color: #fff;
}

.p360.p360-full .section-label {
  color: var(--teal);
}

.p360-hero .script {
  font-family: var(--font-script);
  font-size: clamp(1.44rem, 3vw, 2.04rem);
  line-height: 1;
  display: block;
  margin-bottom: 0.35rem;
}

.p360-kicker {
  display: inline-flex;
  padding: 0.4rem 0.95rem;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

.p360-hero .sub {
  opacity: 0.85;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.p360-hero h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 0.85rem;
}

.p360-hero h2.p360-hero-title {
  font-size: clamp(0.86rem, 1.725vw, 1.15rem);
}

.p360-hero p {
  opacity: 0.92;
  margin-bottom: 1.35rem;
  max-width: 520px;
}

.p360-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.pillar {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  padding: 1rem;
  text-align: center;
}

.pillar-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 0.55rem;
  object-fit: contain;
  color: #fff;
  filter: brightness(0) invert(1);
}

.pillar h4 {
  font-size: 1.47rem;
  margin-bottom: 0.3rem;
  text-align: center;
}

.pillar p {
  font-size: 0.78rem;
  opacity: 0.88;
  margin: 0;
  text-align: center;
}

.p360-layers {
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  margin-bottom: 2rem;
}

.p360-layers h3,
.p360-layers-title {
  text-align: center;
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.p360-layers > .lead {
  text-align: center;
  opacity: 0.9;
  max-width: 720px;
  margin: 0 auto 1.75rem;
  font-size: 0.92rem;
}

.layer-list {
  display: grid;
  gap: 0.85rem;
}

.layer {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 1.1rem 1.2rem;
}

.layer-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: white;
  color: var(--teal);
  display: grid;
  place-items: center;
  font-weight: 800;
}

.layer h4 {
  margin-bottom: 0.3rem;
}

.layer p {
  font-size: 0.86rem;
  opacity: 0.9;
  margin-bottom: 0.55rem;
}

.layer .mini-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.layer .mini-tags span {
  background: rgba(255, 255, 255, 0.16);
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 600;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.tech-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.why-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 1rem;
  margin: 0 0 2.25rem;
}

.why-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  padding: 1.4rem 1.3rem;
}

.why-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 0.55rem;
}

.why-card p {
  font-size: 0.88rem;
  opacity: 0.92;
  line-height: 1.55;
}

.why-highlight,
.session-chip {
  margin-top: 1rem;
  font-weight: 800;
  font-size: 0.92rem;
  opacity: 1;
}

.session-chip {
  display: inline-flex;
  padding: 0.45rem 0.9rem;
  background: rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
}

.tech-block {
  margin-bottom: 0;
}

.tech-block-title,
.tech-block h2,
.tech-block h3,
.p360-process h2,
.p360-process h3 {
  text-align: center;
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.tech-block .lead,
.p360-process .lead {
  text-align: center;
  opacity: 0.9;
  max-width: 720px;
  margin: 0 auto 1.5rem;
  font-size: 0.92rem;
}

.p360-process {
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  margin-bottom: 0;
}

.process-list {
  display: grid;
  gap: 0.85rem;
}

.process-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 1.15rem 1.25rem;
}

.process-num {
  font-size: 1.8rem;
  font-weight: 800;
  font-style: italic;
  line-height: 1;
  min-width: 1.6rem;
}

.process-step h3,
.process-step h4 {
  margin-bottom: 0.35rem;
  font-size: 1.02rem;
}

.process-step p {
  font-size: 0.88rem;
  opacity: 0.92;
  line-height: 1.55;
  margin: 0;
}

.tech-card {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 1.25rem;
}

.tech-card h3,
.tech-card h4 {
  margin-bottom: 0.45rem;
}

.tech-card p {
  font-size: 0.82rem;
  opacity: 0.9;
  margin-bottom: 0.7rem;
}

.tech-card li {
  font-size: 0.78rem;
  opacity: 0.88;
  padding-left: 0.85rem;
  position: relative;
  margin-bottom: 0.25rem;
}

.tech-card li::before {
  content: "•";
  position: absolute;
  left: 0;
}

.p360-cta-box {
  text-align: center;
  margin-top: 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
}

.p360-cta-box h2,
.p360-cta-title,
.p360-cta-box h3 {
  font-size: 1.35rem;
  margin-bottom: 0.55rem;
}

.p360-cta-box p {
  opacity: 0.9;
  margin-bottom: 1.25rem;
  max-width: 560px;
  margin-inline: auto;
}

/* ---------- Footer ---------- */
.site-footer {
  background-color: #063940;
  background-image: url("../assets/brand/veins-dark.png");
  background-size: cover;
  background-position: center;
  color: rgba(255, 255, 255, 0.88);
  padding: 3rem 0 1.5rem;
}

.footer-brand img {
  display: block;
  height: 72px;
  width: auto;
  margin-bottom: 0.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand .script {
  font-family: var(--font-script);
  font-size: 1.08rem;
  color: white;
}

.footer-brand p {
  margin-top: 0.65rem;
  font-size: 0.86rem;
  max-width: 280px;
  line-height: 1.5;
  opacity: 0.85;
}

.footer-col h4 {
  color: white;
  font-size: 0.92rem;
  margin-bottom: 0.85rem;
}

.footer-col a,
.footer-col p {
  display: block;
  font-size: 0.86rem;
  opacity: 0.8;
  margin-bottom: 0.4rem;
  transition: opacity 0.2s;
  white-space: pre-line;
}

.footer-col a:hover {
  opacity: 1;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.15rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.78rem;
  opacity: 0.75;
}

/* WhatsApp float */
.wa-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  left: auto;
  z-index: 110;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: white;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s;
}

.wa-float:hover {
  transform: scale(1.06);
}

.wa-float svg {
  width: 28px;
  height: 28px;
}

/* ---------- Motion ---------- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

[data-reveal].reveal {
  opacity: 1;
  transform: translateY(0);
}

.hero .badge,
.hero .hero-banner,
.hero .hero-tagline,
.hero .hero-desc,
.hero .btn-group {
  animation: fadeUp 0.7s ease both;
}

.hero .hero-banner {
  animation-delay: 0.08s;
}
.hero .hero-tagline {
  animation-delay: 0.16s;
}
.hero .hero-desc,
.hero .btn-group {
  animation-delay: 0.24s;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .protocol-grid,
  .about-panel,
  .faq-layout,
  .contact-grid,
  .p360-hero,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .treatments-grid,
  .tech-grid {
    grid-template-columns: 1fr 1fr;
  }

  .tech-grid--4,
  .why-grid {
    grid-template-columns: 1fr 1fr;
  }

  .why-card--wide {
    grid-column: 1 / -1;
  }

  .signals-grid,
  .results-stats {
    grid-template-columns: 1fr 1fr;
  }

  .p360-banner-inner {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .about-photo {
    min-height: 360px;
    position: relative;
  }

  .about-photo img {
    position: relative;
    height: 420px;
  }
}

@media (max-width: 1023px) {
  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav {
    position: fixed;
    inset: 0;
    z-index: var(--z-nav-overlay);
    width: 100%;
    height: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    box-sizing: border-box;
    background: var(--teal-deep);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4.5rem 1.5rem 1.5rem;
    overflow-y: auto;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s, opacity 0.25s;
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-close {
    display: grid;
    place-items: center;
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
  }

  .nav-close span {
    position: relative;
    display: block;
    width: 18px;
    height: 18px;
  }

  .nav-close span::before,
  .nav-close span::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 18px;
    height: 2px;
    background: var(--white);
  }

  .nav-close span::before {
    transform: translateY(-50%) rotate(45deg);
  }

  .nav-close span::after {
    transform: translateY(-50%) rotate(-45deg);
  }

  .nav-list {
    flex: 1 1 auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 22rem;
    gap: 0.2rem;
    margin-block: auto;
  }

  .nav-item,
  .nav-item-row {
    width: 100%;
  }

  .nav a {
    justify-content: center;
    text-align: center;
    width: 100%;
    font-size: 1.05rem;
  }

  .nav-expand {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    margin-left: 0.15rem;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 10px;
    background: transparent;
    color: var(--white);
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
  }

  .nav-sub {
    display: none;
    width: 100%;
    padding: 0 0 0.35rem 0.75rem;
  }

  .nav-item.is-expanded > .nav-sub {
    display: block;
  }

  .header-cta {
    display: none;
  }
}

@media (max-width: 760px) {
  .logo img {
    height: 46px;
  }

  .steps-grid,
  .treatments-grid,
  .values-grid,
  .tech-grid,
  .tech-grid--4,
  .why-grid,
  .form-grid,
  .p360-pillars {
    grid-template-columns: 1fr;
  }

  .why-card--wide {
    grid-column: auto;
  }

  .stats-card {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .signals-grid,
  .results-stats {
    grid-template-columns: 1fr;
  }

  .hero-banner {
    display: block;
    width: 100%;
    padding: 0.9rem 1.5rem;
    font-size: 1.15rem;
  }

  .step-card {
    border-radius: var(--radius-pill);
  }

  .feature-pill,
  .stack-card {
    border-radius: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ---------- Blog archive and entries ---------- */
.post-archive__head {
  margin-bottom: 2rem;
}

.post-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.35rem;
}

.post-card {
  background: var(--mint-light);
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.post-card__media {
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--mint-pale);
}

.post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card__body {
  padding: 1.25rem 1.35rem 1.4rem;
  display: grid;
  gap: 0.45rem;
}

.post-card__category,
.post-card__category a {
  color: var(--teal);
  font-weight: 700;
  font-size: 0.82rem;
}

.post-card__title {
  color: var(--teal-deep);
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.3;
}

.post-card__title a:hover,
.post-card__category a:hover {
  text-decoration: underline;
}

.post-card__excerpt {
  color: var(--gray);
  font-size: 0.88rem;
  line-height: 1.5;
}

.post-card__date,
.entry-meta {
  color: var(--muted);
  font-size: 0.82rem;
}

.entry-header {
  margin-bottom: 1.5rem;
}

.entry-media {
  margin: 0 0 1.75rem;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--mint-pale);
}

.entry-media img {
  width: 100%;
  height: auto;
}

.entry-body {
  display: grid;
  gap: 0.95rem;
  color: var(--gray);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 42rem;
}

.entry-body h2,
.entry-body h3 {
  color: var(--teal-deep);
  font-weight: 800;
  line-height: 1.25;
  margin-top: 0.5rem;
}

.entry-body h2 {
  font-size: 1.25rem;
}

.entry-body h3 {
  font-size: 1.08rem;
}

.entry-body ul,
.entry-body ol {
  list-style: disc;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.35rem;
}

.entry-body ol {
  list-style: decimal;
}

.entry-body a {
  color: var(--teal);
  text-decoration: underline;
}

.entry-tags {
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-divisor);
}

.entry-tags__title {
  color: var(--teal-deep);
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.entry-tags ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.entry-tags a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  background: var(--mint-pale);
  color: var(--teal-deep);
  font-size: 0.85rem;
  font-weight: 600;
}

.entry-tags a:hover {
  text-decoration: underline;
}

@media (min-width: 768px) {
  .post-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .post-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.site-breadcrumb {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.site-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  align-items: center;
}

.site-breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.site-breadcrumb li:not(:last-child)::after {
  content: "/";
  color: var(--color-divisor, var(--muted));
}

.site-breadcrumb a {
  color: var(--teal);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.site-breadcrumb a:hover,
.site-breadcrumb a:focus-visible {
  text-decoration: underline;
}

.site-breadcrumb [aria-current="page"] {
  color: var(--teal-deep);
  font-weight: 600;
}

.site-search {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0 0 1.5rem;
}

.site-search input[type="search"] {
  flex: 1 1 12rem;
  min-height: 44px;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--color-divisor, var(--mint-pale));
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
}

.site-search button {
  min-height: 44px;
  padding: 0.55rem 1.1rem;
  border: 0;
  border-radius: var(--radius);
  background: var(--teal);
  color: var(--white);
  font-weight: 700;
  cursor: pointer;
}

.site-search button:hover,
.site-search button:focus-visible {
  background: var(--teal-deep);
}

.pagination {
  margin-top: 1.75rem;
}

.pagination .btn {
  min-width: 44px;
}

.pagination span[aria-current="page"] {
  pointer-events: none;
}

.pagination__ellipsis {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
}

.related-posts {
  margin-top: 2.5rem;
}

.related-posts h2 {
  color: var(--teal-deep);
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
}
