:root {
  color-scheme: light;
  --bg: #f4f7fb;
  --bg-elevated: rgba(255, 255, 255, 0.78);
  --surface: rgba(255, 255, 255, 0.86);
  --surface-strong: rgba(255, 255, 255, 0.96);
  --line: rgba(26, 57, 89, 0.1);
  --line-strong: rgba(26, 57, 89, 0.18);
  --text: #102033;
  --muted: rgba(16, 32, 51, 0.68);
  --accent: #2a9d8f;
  --accent-2: #5f8cff;
  --accent-3: #d98f45;
  --shadow: 0 24px 64px rgba(16, 32, 51, 0.12);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
  max-width: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  width: 100%;
  max-width: 100%;

  margin: 0;
  padding: 0;
  background: #f2f7fc;
  color: var(--text);
  font-family: "Aptos", "Segoe UI", "Helvetica Neue", sans-serif;
}

button {
  font: inherit;
}

.backdrop,
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.backdrop {
  background-image:
    linear-gradient(rgba(16, 32, 51, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 32, 51, 0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 96%);
  opacity: 0.85;
}

.noise {
  opacity: 0.03;
  background-image: repeating-linear-gradient(
    0deg,
    rgba(16, 32, 51, 0.45) 0,
    rgba(16, 32, 51, 0.45) 1px,
    transparent 1px,
    transparent 2px
  );
  mix-blend-mode: soft-light;
}

.app-shell {
  position: relative;
  width: min(100% - 32px, 1320px); /* 16px de margen a cada lado en móvil */
  margin: 0 auto;
  padding: 80px 0 40px;
}

.topbar {
  position: sticky;
  top: 25px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  margin-bottom: 32px;
}

.brand-mark,
.nav-chip {
  border: 0;
  cursor: pointer;
}

  .topbar {
    top: 22px;
    padding: 12px 14px;
    border-radius: 28px;
  }

  .brand-mark,
  .nav-chip {
    width: 38px;
    height: 38px;
  }

  .nav-chip::before {
    inset: 10px;
  }
  .topbar-title {
  flex: 1;
  margin-left: 20px;

  font-family: "Cormorant Garamond", serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;

  opacity: 1;
  transform: translateY(0);

  transition:
    opacity .25s ease,
    transform .25s ease;
}

.topbar-title.is-hidden {
  opacity: 0;
  transform: translateY(10px);
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.95), transparent 30%),
    linear-gradient(145deg, var(--accent) 0%, var(--accent-2) 100%);
  box-shadow: 0 0 0 6px rgba(42, 157, 143, 0.1);
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-chip {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(16, 32, 51, 0.04);
  border: 1px solid transparent;
  position: relative;
}

.nav-chip::before {
  content: "";
  position: absolute;
  inset: 11px;
  border-radius: 50%;
  background: rgba(16, 32, 51, 0.22);
}

.nav-chip.is-active {
  background: rgba(42, 157, 143, 0.1);
  border-color: rgba(42, 157, 143, 0.24);
}

.nav-chip.is-active::before {
  background: linear-gradient(145deg, var(--accent) 0%, var(--accent-2) 100%);
}

.slider-wrapper{
  position:relative;
  margin-top:-30px;
}

.slider{
  padding-top:30px;
    padding-bottom:30px;
  display:flex;
  gap:24px;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  scroll-behavior:smooth;
  scrollbar-width:none;
  padding-inline:4%;

      -webkit-mask-image: linear-gradient(
        to right,
        transparent,
        black 5%,
        black 95%,
        transparent
    );

    mask-image: linear-gradient(
        to right,
        transparent,
        black 5%,
        black 95%,
        transparent
    );
}

.slider::-webkit-scrollbar{
    display:none;
}
.slider-btn{
    transition:
        transform .25s ease,
        opacity .25s ease;
}
.slide{
  flex:0 0 28%;
  max-width:none;
  scroll-snap-align:center;
  border-radius:22px;
  overflow:hidden;
  background:white;
  border:1px solid var(--line);
}

.slide img{
  width:100%;
  height:420px;
  object-fit:cover;
  display:block;
}

.slide-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.slide-content h3{
  margin:0 0 10px;
}

.slide-content p{
  margin:0;
  line-height:1.7;
  color:var(--muted);
  margin-bottom:1.5rem;
}

.slider-btn{
  top:50%;
  transform:translateY(-20%);
  width:52px;
  height:52px;
  border: 1px solid var(--line);
  border-radius:50%;
  background:white;
  box-shadow:var(--shadow);
  cursor:pointer;
  position:absolute;
  z-index:2;
  font-size:24px;
}

.slider-btn:hover{
  transform:translateY(-50%) scale(1.05);
}

.prev{
  left:-18px;
}

.next{
  right:-18px;
}

.slider-progress{
    width:220px;
    height:6px;
    margin:22px auto;
    background:#d2d8de;
    border-radius:999px;
    overflow:hidden;
}

.slider-progress-fill{
    width:0%;
    height:100%;
    background:var(--accent);
    border-radius:inherit;
    transition:width .35s ease;
}

.slider-progress-mobile{
    display:none;
}


.page {
  display: grid;
  gap: 28px;
  padding-top: 24px;
}
h1, h2, h3 {
    font-family: "Cormorant Garamond", serif;
}

body {
    font-family: "Inter", sans-serif;
}
.panel {
  position: relative;
}
.section-intro {
  max-width: 850px;
  margin: 1.5rem auto 0;
  text-align: center;

  opacity: 0;
  transform: translateY(60px);
  transition:
    transform .8s cubic-bezier(.22,.61,.36,1),
    opacity .8s cubic-bezier(.22,.61,.36,1);
}

.section-intro.show {
  opacity: 1;
  transform: translateY(0);
}

.section-intro p {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--muted);
}

.card-surface {
  position: relative;
  overflow: hidden;

  border: 1px solid var(--line);
  border-radius: var(--radius-xl);

  background: rgba(255, 255, 255, 0.95);

  box-shadow: var(--shadow);

  transition:
    transform .8s cubic-bezier(.22,.61,.36,1),
    opacity .8s cubic-bezier(.22,.61,.36,1);

  opacity: 0;
  transform: translateY(60px) scale(.96);
}

.card-surface.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}



.card-surface {
    width:min(100%, 1300px);
    margin-inline:auto;
    opacity: 0;
    transform: translateY(60px) scale(.96);
}


.hero-section,
.content-section {
  min-height: auto;
}

.hero-grid,
.section-grid {
  display: grid;
  gap: 22px;
}

.hero-grid {
  grid-template-columns: 1fr;
}

.hero-visual,
.hero-stack,
.section-card,
.stack-column {
  min-height: 220px;
}

.card-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(0, 1.05fr);
  gap: 18px;
  align-items: stretch;
  padding: 18px;
}

.card-layout-right .card-layout__media {
  order: 2;
}

.card-layout-right .card-layout__body {
  order: 1;
}

.card-layout__media,
.card-layout__body,
.panel-body {
  padding: 7px;
  position: relative;
  min-height: 100%;
  border-radius: calc(var(--radius-xl) - 12px);

  background: rgba(255,255,255,.98);
  border: 1px solid rgba(26, 57, 89, 0.06);
}

.placeholder-image {
  width: 100%;
  height: 100%;
  min-height: 100%;
  border-radius: calc(var(--radius-xl) - 12px);
  border: 1px solid rgba(16, 32, 51, 0.08);
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.85), transparent 28%),
    linear-gradient(135deg, rgba(42, 157, 143, 0.22), rgba(95, 140, 255, 0.22)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 55%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.placeholder-image::after {
  content: "";
  position: absolute;
  inset: 16% 18%;
  border-radius: 24px;
  border: 1px dashed rgba(255, 255, 255, 0.6);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.02));
}

.placeholder-image--hero::before,
.placeholder-image--skills::before,
.placeholder-image--experience::before,
.placeholder-image--contact::before {
  content: "";
  position: absolute;
  inset: 10%;
  border-radius: 28px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.45), transparent 36%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), transparent 60%);
}

.card-layout-left {
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.95fr);
}

.card-layout-right {
  grid-template-columns: minmax(260px, 0.95fr) minmax(0, 1.05fr);
}

.card-layout-left .placeholder-image {
  order: 2;
}

.card-layout-left .card-layout__body {
  order: 1;
}

.hero-visual {
  min-height: 540px;
  padding: 28px;
}

.hero-stack {
  display: grid;
  gap: 22px;
}

.hero-card-large {
  min-height: 540px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.metric-card {
  min-height: 252px;
}

.visual-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
}

.visual-orb-primary {
  width: 240px;
  height: 240px;
  top: 64px;
  left: 48px;
  background: radial-gradient(circle, rgba(42, 157, 143, 0.22), rgba(42, 157, 143, 0.03) 68%, transparent 72%);
}

.visual-orb-secondary {
  width: 180px;
  height: 180px;
  right: 72px;
  bottom: 96px;
  background: radial-gradient(circle, rgba(95, 140, 255, 0.18), rgba(95, 140, 255, 0.03) 65%, transparent 72%);
}

.visual-frame {
  position: absolute;
  inset: 28px;
  border-radius: calc(var(--radius-xl) - 8px);
  border: 1px solid rgba(16, 32, 51, 0.08);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.58), transparent 42%),
    linear-gradient(180deg, rgba(16, 32, 51, 0.02), transparent 30%);
}

.section-card-wide {
  min-height: 360px;
}

.section-card-tall {
  min-height: 420px;
}

.stack-column {
  display: grid;
  gap: 12px;
}
.doctor-card {
  max-width: 850px;
  margin: 0 auto;
  padding: 3rem;
  text-align: center;
}

.doctor-card__title {
  margin: 0 0 2rem;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.doctor-card__image {
  display: block;
  width: 100%;
  max-width: 380px;
  margin: 0 auto 2rem;
  border-radius: 22px;
  object-fit: cover;
  box-shadow: 0 18px 40px rgba(0,0,0,.12);
}

.doctor-card__content {
  max-width: 620px;
  margin: 0 auto;
}

.doctor-card__content p {
  margin: .8rem 0;
  font-size: 1.6rem;
  line-height: 1.8;
  font-weight: 500;
}
.method-section{
    background: transparent;
    border: none;
    box-shadow: none;
}
.method-layout{
    display:grid;
    grid-template-columns:1.3fr .9fr;
    gap:32px;

    width:min(100%,1300px);
    margin-inline:auto;

    opacity:0;
    transform:translateY(60px) scale(.96);
    transition:
        opacity .8s cubic-bezier(.22,.61,.36,1),
        transform .8s cubic-bezier(.22,.61,.36,1);
}

.method-layout.show{
    opacity:1;
    transform:translateY(0) scale(1);
}

.method-left{
    display:flex;
    flex-direction:column;
}

.method-right{
    position:sticky;
    top:120px;      /* opcional */
}

.method-image{
    width:100%;
    height:700px;   /* ajusta a tu gusto */
    object-fit:cover;
    border-radius:28px;
    display:block;
    box-shadow:var(--shadow);
}
.method-item{
  border:1px solid rgba(26,57,89,.08);
  border-radius:18px;
  background:#fff;
  overflow:hidden;
  margin-bottom:14px;
  transition:
      box-shadow .25s ease,
      border-color .25s ease,
      transform .25s ease;
}

.method-item:hover{
  border-color:rgba(42,157,143,.18);
}

.method-item.active{
  border-color:rgba(42,157,143,.28);
  box-shadow:0 10px 24px rgba(16,32,51,.08);
}

.method-title{
  width:100%;
  display:flex;
  justify-content:space-between;
  align-items:center;

  padding:18px 22px;

  background:none;
  border:none;
  cursor:pointer;

  font:inherit;
  text-align:left;
}

.method-title span:first-child{
  font-family:"Cormorant Garamond", serif;
  font-size:1.9rem;
  font-weight:600;
  color:var(--text);
}

.method-icon{
  font-size:2rem;
  font-weight:300;
  color:var(--accent);

  transition:
      transform .3s ease,
      color .3s ease;
}

.method-item.active .method-icon{
  transform:rotate(45deg);
}

.method-content{
  max-height:0;
  overflow:hidden;

  transition:max-height .35s ease;
}

.method-item.active .method-content{
  max-height:220px;
}

.method-content p{
  margin:0;
  padding:0 22px 22px;

  font-size:1.05rem;
  line-height:1.75;
  color:var(--muted);
}

#method-image{
  width:100%;
  height:100%;

  object-fit:cover;
  display:block;
  border-radius:calc(var(--radius-xl) - 12px);

  transition:
    opacity .3s ease,
    transform .3s ease;
}

.method-title strong{
    color:var(--accent);
    margin-right:12px;
    font-size:2rem;
    letter-spacing:.12em;
}
.method-body{
    border: none;
    background: transparent;
    box-shadow: none;
}

.contact-card{
    padding:3rem;
}

.contact-intro{
    margin-bottom:2rem;
    color:var(--muted);
    line-height:1.8;
}

.contact-form{
    display:flex;
    flex-direction:column;
    gap:1.2rem;
}

.contact-row{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:1rem;
}

.contact-form input,
.contact-form textarea{
    width:100%;
    padding:16px 18px;

    font:inherit;

    border:1px solid rgba(26,57,89,.12);
    border-radius:16px;

    background:#fff;

    transition:.25s;
}

.contact-form textarea{
    resize:vertical;
    min-height:160px;
}

.contact-form input:focus,
.contact-form textarea:focus{
    outline:none;
    border-color:var(--accent);
    box-shadow:0 0 0 4px rgba(42,157,143,.12);
}

.contact-btn{
    align-self:flex-start;

    padding:16px 34px;

    border:none;
    border-radius:999px;

    background:var(--accent);
    color:#fff;

    font-weight:600;
    cursor:pointer;

    transition:.25s;
}

.contact-btn:hover{
    transform:translateY(-2px);
    box-shadow:0 12px 24px rgba(42,157,143,.25);
}

.contact-actions{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:2rem;
    margin-top:.5rem;
}

.contact-email{
    display:flex;
    flex-direction:column;
    align-items:flex-end;
}

.contact-email span{
    font-size:.9rem;
    color:var(--muted);
}

.contact-email a{
    color:var(--accent);
    text-decoration:none;
    font-weight:600;
    transition:color .2s;
}

.contact-email a:hover{
    text-decoration:underline;
}
.contact-popup{
    position:fixed;
    inset:0;
    display:flex;
    justify-content:center;
    align-items:center;

    background:rgba(0,0,0,.45);
    backdrop-filter:blur(4px);

    opacity:0;
    visibility:hidden;

    transition:.3s;

    z-index:999;
}

.contact-popup.show{
    opacity:1;
    visibility:visible;
}

.contact-popup__content{
    width:min(420px,90%);
    padding:2.5rem;

    background:#fff;
    border-radius:24px;
    text-align:center;

    box-shadow:var(--shadow);
}

.contact-popup__icon{
    width:70px;
    height:70px;
    margin:0 auto 1.5rem;

    border-radius:50%;
    background:rgba(42,157,143,.12);

    color:var(--accent);

    display:grid;
    place-items:center;

    font-size:2rem;
    font-weight:bold;
}

.contact-popup button{
    margin-top:1.5rem;
}


.card-surface2{
    opacity:0;
    width:100%;
    max-width:none;
    margin-inline:auto;
    transform:translateY(32px);
    transition:
        opacity .6s ease,
        transform .6s ease;
}

.card-surface2.show{
    opacity:1;
    transform:none;
}
#metodo{
  margin-top: 8rem;
}
.section-closing{
    margin-bottom:5rem;
    text-align:center;
}

.section-closing::after{
    content:"";
    display:block;
    width:90px;
    height:2px;
    margin:0 auto 2rem;
    background:linear-gradient(
        to right,
        transparent,
        var(--accent),
        transparent
    );
}

.section-closing p{
    font-family:"Cormorant Garamond", serif;
    font-size:2.4rem;
    line-height:1.35;
    color:var(--text);
}

.section-closing span{
    color:var(--accent);
    font-weight:700;
}
.technology-section{

    padding:5rem 0;
    border-bottom:1px solid rgba(26,57,89,.08);
}
.philosophy-line{
    display: none;
}
.technology-header{
    max-width:850px;
    margin:0 auto 3rem;
    text-align:center;

    opacity:0;
    transform:translateY(60px);
    transition:
        opacity .8s cubic-bezier(.22,.61,.36,1),
        transform .8s cubic-bezier(.22,.61,.36,1);

    position: relative;
    z-index: -1;
}

.technology-header.show{
    opacity:1;
    transform:translateY(0);
}
.technology-header p{
    margin-top:1rem;
    font-size:1.1rem;
    line-height:1.8;
    color:var(--muted);
}

.experience-body {
    padding: 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-tag,
.doctor-card__title {
    text-align: center;
}
.section-tag{
    display:inline-block;
    margin-bottom:1rem;

    color:var(--accent);
    font-weight:600;
    letter-spacing:.12em;
    text-transform:uppercase;
    font-size:1.2rem;
}

.experience-timeline {
    position: relative;
    width: min(650px, 100%);
    margin-top: 3rem;
    padding-left: 60px;
}

.experience-timeline::before {
    content: "";
    position: absolute;
    left: 18px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(42,157,143,.18);
}

.experience-item {
    position: relative;
    margin-bottom: 2.5rem;
}

.experience-dot {
    position: absolute;
    left: -50px;
    top: .4rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    border: 4px solid var(--accent);
}
.experience-card{
    width: 100%;
    max-width: 900px;   /* prueba entre 800 y 1000px */
    margin: 0 auto;
    opacity:0;
    transform:translateY(60px) scale(.96);
    transition:
        transform .8s cubic-bezier(.22,.61,.36,1),
        opacity .8s cubic-bezier(.22,.61,.36,1);
}
.experience-card.show{
    opacity:1;
    transform:translateY(0) scale(1);
}
.experience-content {
    text-align: left;
}

.experience-label {
    display: inline-block;
    margin-bottom: .45rem;
}

.experience-content h3 {
    margin: 0 0 .4rem;
}

.experience-content p {
    margin: 0;
}

.philosophy{

    width:min(100%,1200px);
    margin-inline:auto;

    display:grid;
    grid-template-columns:1.2fr .8fr;
    align-items:end;

    position:relative;

    padding:1.25rem 2rem 0;

    border-radius:32px;

    background:white;
    border:1px solid var(--line);

    box-shadow:var(--shadow);

    opacity:0;
    transform:translateY(60px) scale(.97);

    transition:
        opacity .8s cubic-bezier(.22,.61,.36,1),
        transform .8s cubic-bezier(.22,.61,.36,1);

        
}

.philosophy.show{
    opacity:1;
    transform:none;
}

.philosophy-text{

    padding: 2rem 0.8rem 1.2rem 0.8rem;

    z-index:2;
}

.philosophy .section-tag {
    margin-bottom: .2rem;
    font-size: .95rem;
}
.scientific-societies {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.scientific-society {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-height: 92px;
  padding: .75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(244, 247, 251, .72);
  color: var(--muted);
  line-height: 1.4;
}

.scientific-society__logo {
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  padding: .35rem;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-strong);
}

@media (max-width: 560px) {
  .scientific-societies {
    grid-template-columns: 1fr;
  }
}

.contact-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 12px 20px;
    border: 1px solid #25D366;
    border-radius: 999px;

    color: #25D366;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;

    transition: all 0.25s ease;
}

.contact-whatsapp:hover {
    background: #25D366;
    color: white;
}

.contact-whatsapp .material-symbols-rounded {
    font-size: 20px;
}
.philosophy-quote{

    margin:.35rem 0 .8rem;

    font-family:"Cormorant Garamond",serif;

    font-size:clamp(1.7rem,2.8vw,2.5rem);

    line-height:1.1;

    font-weight:500;

    color:var(--text);

    max-width:650px;
}

.philosophy-quote::before{
    content:"“";
}

.philosophy-quote::after{
    content:"”";
}

.philosophy-line{

    width:110px;
    height:2px;

    background:var(--accent);
    
    margin-bottom:.8rem;
}

.philosophy-description{

    max-width:560px;

    font-size:1.08rem;

    line-height:1.9;

    color:var(--muted);
}
#filosofia{
  margin-bottom: 2rem;
}
.philosophy-image {
  overflow:visible;
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 300px;
  display: block;
  filter: drop-shadow(0 22px 40px rgba(20, 35, 50, .14));
  transition: transform .45s ease, filter .45s ease;
}

@media (min-width: 1024px) and (max-width: 1440px) {
  .philosophy-image {
    max-width: 300px;
  }

  .philosophy-image-wrapper::before {
    width: min(340px, 100%);
    top: 24px;
  }
}

.philosophy-image-wrapper {
  overflow:visible;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  width: min(100%, 420px);
  margin-inline: auto;

}

.philosophy-image-wrapper::before {
  overflow:visible;
  content: "";
  position: absolute;
  width: min(530px, 100%); /* Evita que mida más que la pantalla en móvil */
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(39,170,156,.12) 0%, rgba(39,170,156,.06) 45%, transparent 72%);
  z-index: 0;
  right: 0;
  top: 40px;
}



.philosophy:hover .philosophy-image{
overflow:visible;
    transform:
        translateY(45px)
        scale(1.1);
    filter:
        drop-shadow(0 40px 80px rgba(20,35,50,.28));
        
}

.sr-only{
    position:absolute;
    width:1px;
    height:1px;
    padding:0;
    margin:-1px;
    overflow:hidden;
    clip:rect(0,0,0,0);
    white-space:nowrap;
    border:0;
}

@media (max-width:1000px){

    .philosophy{

        grid-template-columns:1fr;

        text-align:center;

        padding:3rem 2rem 0;
    }

    .philosophy-text{

        padding-bottom:2rem;
    }

    .philosophy-line{

        margin-inline:auto;
    }

    .philosophy-description{

        margin-inline:auto;
    }

    .philosophy-image{

        max-width:320px;

        margin:auto;

        transform:translateY(25px);
    }

}
@media (max-width: 768px) {
   .contact-row{
        grid-template-columns:1fr;
    }

    .contact-card{
        padding:2rem;
    }

    .contact-actions{
        flex-direction:column;
        align-items:stretch;
    }

    .contact-btn{
        width:100%;
    }

    .contact-email{
        align-items:center;
        text-align:center;
    }

  .doctor-card {
    padding: 2rem 1.5rem;
  }

  .doctor-card__image {
    max-width: 280px;
  }

  .doctor-card__content p {
    font-size: 1.4rem;
  }

      .slider-progress{
        display:none;
    }

    .slider-progress-mobile{
        display:flex !important;
        gap:8px;
        justify-content:center;
        width:min(320px,90%);
        margin:22px auto;
    }

    .slider-progress-segment{
        flex:1;
        height:6px;
        border-radius:999px;
        background:#d2d8de;
        transition:.3s;
    }

    .slider-progress-segment.active{
        background:var(--accent);
    }


}
@media (min-width: 769px){
    .slider{
        justify-content: center;
    }
}

@media (max-width: 1120px) {
  .hero-visual {
    min-height: 440px;
  }

  .hero-card-large,
  .metric-card,
  .section-card,
  .section-card-wide,
  .section-card-tall {
    min-height: 200px;
  }

  .card-layout,
  .card-layout-left,
  .card-layout-right {
    grid-template-columns: 1fr;
  }

  .card-layout__media {
    min-height: 220px;
    order: 1;
  }

  .card-layout__body {
    min-height: 180px;
    order: 2;
  }
}

@media (max-width: 720px) {
  .app-shell {
    width: min(100% - 20px, 1320px);
    padding-top: 100px;
  }


  .page {
    gap: 10px;
  }

  .hero-visual {
    min-height: 360px;
    padding: 18px;
  }

  .visual-orb-primary {
    width: 180px;
    height: 180px;
    top: 44px;
    left: 28px;
  }

  .visual-orb-secondary {
    width: 128px;
    height: 128px;
    right: 28px;
    bottom: 68px;
  }

  .card-layout,
  .card-layout-left,
  .card-layout-right {
    gap: 12px;
    padding: 14px;
  }

  .card-layout__media {
    min-height: 180px;
  }

  .card-layout__body {
    min-height: 140px;
  }
}




/* =========================
   RESPONSIVE REWORK
   ========================= */

@media (max-width:900px){
  .method-layout{grid-template-columns:1fr;gap:24px}
  .method-right{position:static;order:-1}
  .method-image{height:280px}
}

@media (max-width:768px){
  .app-shell{width:calc(100% - 24px);padding-top:90px}
  .topbar{padding:10px 14px;border-radius:20px}
  .topbar-title{font-size:1.1rem;margin-left:10px}
  .brand-mark,.nav-chip{width:34px;height:34px}
  .page{gap:4rem;}
  .card-layout,.card-layout-left,.card-layout-right{grid-template-columns:1fr;padding:12px;gap:16px}
  .doctor-card{padding:2rem 1.25rem}
  .doctor-card__title{font-size:clamp(1.8rem,6vw,2.8rem)}
  .philosophy{grid-template-columns:1fr;padding:2rem 1.2rem;text-align:center}
  .philosophy-text{padding-bottom:1rem}
  .philosophy-line,.philosophy-description{margin-inline:auto}
  .philosophy-quote{font-size:clamp(1.6rem,7vw,3rem)}
  .philosophy-image{width:100%;max-width:260px;transform:none}
  .philosophy-image-wrapper::before{width:260px;right:50%;transform:translateX(50%)}
  .slide{
    flex:0 0 92%;
    display:flex;
    align-items:stretch;
  }

  .slide img{
    width:40%;
    height:auto;
    min-height:180px;
    object-fit:cover;
  }

  .slide-content{
    width:60%;
    padding:18px;
    display:flex;
    flex-direction:column;
    justify-content:center;
  }

  .slide-content h3{
    font-size:1.15rem;
  }

  .slide-content p{
    font-size:.95rem;
    line-height:1.5;
  }
  .slider{gap:16px;padding-inline:0;-webkit-mask-image:none;mask-image:none}
  .slider-btn{display:none}
  .experience-body{padding:2rem 1.25rem}
  .experience-timeline{padding-left:36px}
  .experience-dot{left:-4%}
  .contact-card{padding:1.5rem}
  .contact-row{grid-template-columns:1fr}
  .contact-actions{flex-direction:column;align-items:stretch}
  .contact-btn{width:100%}
  .contact-email{align-items:center;text-align:center}
}

@media(min-width:439px) and (max-width:767px){
  .experience-dot{left:-4%}
}

@media(max-width:670px){
  .experience-dot{left:-5%}
}
@media(max-width:542px){
  .experience-dot{left:-6%}
}
@media(max-width:470px){
  .experience-dot{left:-8%}
}
@media(max-width:400px){
  .experience-dot{left:-9%}
}
/* ==========================================================
   ANIMACIONES
========================================================== */

@keyframes fadeUp {
  from{
    opacity:0;
    transform:translateY(60px);
  }
  to{
    opacity:1;
    transform:translateY(0);
  }
}

@keyframes fadeScale {
  from{
    opacity:0;
    transform:translateY(60px) scale(.96);
  }
  to{
    opacity:1;
    transform:translateY(0) scale(1);
  }
}

@keyframes fadeLeft {
  from{
    opacity:0;
    transform:translateX(-70px);
  }
  to{
    opacity:1;
    transform:translateX(0);
  }
}

@keyframes fadeRight {
  from{
    opacity:0;
    transform:translateX(70px);
  }
  to{
    opacity:1;
    transform:translateX(0);
  }
}

@keyframes zoomIn {
  from{
    opacity:0;
    transform:scale(.92);
  }
  to{
    opacity:1;
    transform:scale(1);
  }
}

@keyframes floatDoctor {
  0%,100%{
    transform:translateY(85px);
  }
  50%{
    transform:translateY(72px);
  }
}

@keyframes pulseGlow {
  0%,100%{
    transform:scale(1);
    opacity:.15;
  }
  50%{
    transform:scale(1.08);
    opacity:.28;
  }
}

@keyframes shimmer {
  from{
    transform:translateX(-120%);
  }
  to{
    transform:translateX(120%);
  }
}

@keyframes lineGrow {
  from{
    width:0;
    opacity:0;
  }
  to{
    width:120px;
    opacity:1;
  }
}

@keyframes fadeCards {
  from{
    opacity:0;
    transform:translateY(30px);
  }
  to{
    opacity:1;
    transform:translateY(0);
  }
}

/* ---------- Aparición ---------- */

.section-intro.show{
    animation:fadeUp .8s cubic-bezier(.22,.61,.36,1) both;
}

.card-surface.show,
.card-surface2.show,
.experience-card.show,
.method-layout.show,
.philosophy.show,
.evaluation-section.show,
.technology-header.show{
    animation:fadeScale .85s cubic-bezier(.22,.61,.36,1) both;
}

/* ---------- Filosofía ---------- */

.philosophy-line{
    animation:lineGrow 1s ease .25s both;
}

.philosophy-image-wrapper::before{
    animation:pulseGlow 8s ease-in-out infinite;
}

/* ---------- Tarjetas ---------- */

.card-surface{
    will-change:transform,opacity;
}

.card-surface::after{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(
        110deg,
        transparent 20%,
        rgba(255,255,255,.45) 50%,
        transparent 80%
    );
    transform:translateX(-120%);
    pointer-events:none;
}

.card-surface:hover::after{
    animation:shimmer 1s ease;
}

.card-surface:hover{
    transform:translateY(-8px);
    box-shadow:
        0 30px 70px rgba(16,32,51,.18);
}

/* ---------- Slider ---------- */

.slide{
    transition:
        transform .35s ease,
        box-shadow .35s ease;
}

.slide:hover{
    transform:translateY(-10px);
    box-shadow:0 24px 50px rgba(16,32,51,.05);
}

/* ---------- Método ---------- */

.method-item{
    animation:fadeCards .5s ease both;
}

.method-item:nth-child(1){animation-delay:.05s;}
.method-item:nth-child(2){animation-delay:.12s;}
.method-item:nth-child(3){animation-delay:.19s;}
.method-item:nth-child(4){animation-delay:.26s;}
.method-item:nth-child(5){animation-delay:.33s;}

.method-item:hover{
    transform:translateX(8px);
}

/* ---------- Timeline ---------- */

.experience-item{
    opacity:0;
    animation:fadeLeft .7s ease forwards;
}

.experience-item:nth-child(1){animation-delay:.15s;}
.experience-item:nth-child(2){animation-delay:.30s;}
.experience-item:nth-child(3){animation-delay:.45s;}
.experience-item:nth-child(4){animation-delay:.60s;}

.experience-dot{
    transition:
        transform .3s ease,
        box-shadow .3s ease;
}

.experience-item:hover .experience-dot{
    transform:scale(1.3);
    box-shadow:0 0 0 10px rgba(42,157,143,.12);
}

/* ---------- Botones ---------- */

.contact-btn,
.slider-btn,
.nav-chip{
    transition:
        transform .25s ease,
        box-shadow .25s ease,
        background .25s ease;
}

.contact-btn:hover,
.slider-btn:hover,
.nav-chip:hover{
    transform:translateY(-3px);
}

/* ---------- Imagen método ---------- */

#method-image{
    transition:
        opacity .35s ease,
        transform .45s ease;
}

.method-right:hover #method-image{
    transform:scale(1.03);
}

/* ---------- Reduce Motion ---------- */

@media (prefers-reduced-motion:reduce){

    *,
    *::before,
    *::after{
        animation:none !important;
        transition:none !important;
        scroll-behavior:auto !important;
    }

}

html,
body{
    width:100%;
    max-width:100%;

}

*{
    max-width:100%;
}

img{
    max-width:100%;
    height:auto;
}
/* =======================================================
   FIX DEFINITIVO: STICKY NAV + SOMBRAS + RESPONSIVE MÓVIL
   ======================================================= */

/* 1. Control del desbordamiento sin romper position: sticky */
html, body {
  overflow-x: clip; /* clip evita el scrollbar horizontal sin anular el sticky */
  max-width: 100vw;
}

/* 2. Permitir que las sombras respiren libremente */
.app-shell {
  overflow: visible !important;
}

/* 3. Reglas exclusivas para dispositivos móviles (< 768px) */
@media screen and (max-width: 768px) {

  /* Topbar fija en móvil */
  .topbar {
    position: sticky !important;
    top: 15px !important;
    z-index: 999 !important;
    padding: 10px 14px !important;
    border-radius: 20px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    box-shadow: 0 12px 32px rgba(16, 32, 51, 0.12) !important;
  }
   .topbar-nav{
        display:none;
    }

    .topbar{
        justify-content:center;
        padding:.8rem 1rem;
    }
  /* Contenedor principal con márgenes adaptados */
  .app-shell {
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
    padding: 20px 16px 40px 16px !important;
    margin: 0 auto !important;
  }

  /* Estructura vertical de tarjetas */
  .page {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.5rem !important;
    width: 100% !important;
  }

  .card-surface,
  .card-surface2,
  .section-card,
  .contact-card,
  .experience-card,
  .doctor-card,
  .philosophy {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 1.25rem 1rem !important;
    margin: 0 !important;
    border-radius: 20px !important;
  }

  .card-layout,
  .card-layout-left,
  .card-layout-right {
    display: flex !important;
    flex-direction: column !important;
    padding: 8px !important;
    gap: 1rem !important;
  }

  .card-layout__media,
  .card-layout__body,
  .panel-body,
  .experience-body {
    padding: 12px !important;
    min-height: auto !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .contact-row {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
  }

  .contact-form input,
  .contact-form textarea,
  .contact-btn {
    width: 100% !important;
    box-sizing: border-box !important;
  }
}
  /* =======================================================
   FIX CITA SOBRE LA IMAGEN (MÓVIL)
   ======================================================= */
@media screen and (max-width: 768px) {

  /* 1. La tarjeta de filosofía actúa como el único contenedor Flex vertical */
  #filosofia .philosophy {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
  }

  /* 2. Disolvemos .philosophy-text SOLO en móvil y SOLO en esta sección.
        Esto permite reordenar sus hijos (título, descripción) junto a la imagen */
  #filosofia .philosophy-text {
    display: contents !important;
  }

  /* 3. ASIGNACIÓN RÍGIDA DE ORDEN VISUAL */
  
  /* A) Título y Tag (Arriba del todo - Orden 1) */
  #filosofia .section-tag,
  #filosofia .philosophy-title {
    order: 1 !important;
    margin: 0 auto !important;
    text-align: center !important;
  }

  /* B) Línea verde (Orden 2) */
  #filosofia .philosophy-line {
    order: 2 !important;
    margin: 0.5rem auto 1.5rem auto !important;
  }

  /* C) Contenedor de la Foto (En el medio - Orden 3) */
  #filosofia .philosophy-image-wrapper {
    order: 3 !important;
    position: relative !important;
    width: 100% !important;
    max-width: 290px !important;
    margin: 0 auto 1.5rem auto !important;
    display: flex !important;
    justify-content: center !important;
  }

  /* D) Descripción (Debajo de la foto - Orden 4) */
  #filosofia .philosophy-description {
    order: 4 !important;
    text-align: center !important;
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    color: #2c3e50 !important;
    margin: 0 !important;
    padding: 0 10px !important;
  }
#filosofia .philosophy-image:hover,
  #filosofia .philosophy-image-wrapper:hover .philosophy-image {
    transform: none !important;
    scale: 1 !important;
    filter: drop-shadow(rgba(20, 35, 50, 0.1) 0px 15px 30px) !important; /* Mantiene solo la sombra inicial */
    opacity: 1 !important;
    transition: none !important;
  }
  /* 4. Estilos de la imagen recortada */
  #filosofia .philosophy-image {
    position: relative !important;
    z-index: 1 !important;
    width: 100% !important;
    height: 380px !important;
    object-fit: cover !important;
    object-position: top !important;

    filter: drop-shadow(rgba(20, 35, 50, 0.1) 0px 15px 30px) !important;

    -webkit-mask-image: radial-gradient(
      ellipse 85% 80% at 50% 20%, 
      rgba(0, 0, 0, 1) 40%, 
      rgba(0, 0, 0, 0) 100%
    ) !important;
    mask-image: radial-gradient(
      ellipse 85% 80% at 50% 20%, 
      rgba(0, 0, 0, 1) 40%, 
      rgba(0, 0, 0, 0) 100%
    ) !important;
  }

  /* 5. Cita sobre la foto */
  #filosofia .philosophy-quote {
    position: absolute !important;
    bottom: 15px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 88% !important;
    z-index: 99 !important;
    margin: 0 !important;
    
    text-align: center !important;
    font-size: 0.85rem !important;
    line-height: 1.4 !important;
    color: #1a2b3c !important;
    font-weight: 500 !important;
    
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(8px) !important;
    padding: 10px 14px !important;
    border-radius: 14px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08) !important;
  }

  #experience>.animate-group>.experience-card{
    background: transparent !important;
    border: none !important;
  }
    #experience>.animate-group>.experience-card>h2{
    margin-bottom:0rem;
  }

  @media (max-width:768px){

    .slider-btn{
        display:flex;
        align-items:center;
        justify-content:center;

        width:42px;
        height:42px;
        font-size:20px;

        background:rgba(255,255,255,.92);
        backdrop-filter:blur(8px);

        top:42%;
        transform:translateY(-50%);
    }
    

    .slider-btn:hover{
        transform:translateY(-50%);
    }

    .prev{
        left:8px;
    }

    .next{
        right:8px;
    }
}
}

@media (max-width:768px){
     
    .nav-chip::before,
    .nav-chip::after{
        content:none !important;
        display:none !important;
    }

    .topbar{
        position:relative;
    }

    .topbar-nav{
        position:absolute;
        top:100%;
        left:12px;
        right:12px;

        display:flex;
        flex-direction:column;
        gap:8px;

        padding:12px;

        background:white;
        border:1px solid var(--line);
        border-radius:18px;
        box-shadow:var(--shadow);

        opacity:0;
        visibility:hidden;
        transform:translateY(-8px);

        transition:
            opacity .25s ease,
            transform .25s ease,
            visibility .25s;
    }
  .nav-chip{

    all:unset;

    display:block;
    box-sizing:border-box;

    width:100%;
    padding:14px 20px;

    cursor:pointer;

    font-size:1rem;
    line-height:1.3;
    color:var(--text);

    border-radius:12px;

    transition:background .2s ease,color .2s ease;
}

.nav-chip:hover{
    background:#f5f8fb;
}

.nav-chip.is-active{
    background:rgba(39,170,156,.08);
    color:var(--accent);
    font-weight:600;
}

    .topbar.open .topbar-nav{
        opacity:1;
        visibility:visible;
        transform:none;
    }

    .topbar-title{
        cursor:pointer;
        user-select:none;
        
    }

     .brand-mark{
        position:relative;
        display:flex;
        align-items:center;
        justify-content:center;
    }

    /* Quitamos el brillo */
    .brand-mark::before{
        display:none;
    }

    /* El título ya no lleva icono */
    .topbar-title::after{
        content:none;
    }

  .brand-mark{
        background:linear-gradient(135deg,#2aa59b,#5f8cff);
        box-shadow:none;
    }

    .brand-mark .material-symbols-rounded{
    color:white;
}

.quien-soy{
  margin-bottom:2rem !important;
}

#skills>.animate-group>.card-surface{
   position: relative;
    display: flex;
    padding: 0;
    overflow: hidden;
}
#skills>.animate-group>.card-surface>img{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-width: none;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
}

#skills>.animate-group>.card-surface>.card-layout__body{
    position: relative;
    margin-left: auto;      /* la coloca a la derecha */
    width: 42%;             /* ancho del texto */
    min-height: 100%;
    padding: 3rem;
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(10px);
    z-index: 2;
    margin-top:15rem !important;
}
.tag-overlay{
    position: absolute;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;

    margin: 0;

    
    background: #f2f7fc;
    backdrop-filter: blur(8px);

    padding: .6rem 0.67rem;
    border-radius: 999px;

    letter-spacing: .12em;
    text-transform: uppercase;
}

.philosophy-line{
    display: flex;
}
}
@media (min-width:769px){

  .material-symbols-rounded{
    display: none !important;
  }

}

/* =======================================================
   OBJETIVO - TEXTO IZQUIERDA / IMAGEN DERECHA
======================================================= */
@media (min-width:769px){
#skills .card-surface{
    position:relative;
    display:flex;
    min-height:520px;
    padding:0;
    overflow:hidden;
}


/* Imagen derecha */
#skills .card-surface > img{
    position:absolute;

    right:0;
    top:0;

    width:55%;
    height:100%;

    max-width:none;
    margin:0;

    object-fit:cover;

    border-radius:0;
    box-shadow:none;
}


/* Panel de texto izquierda */
#skills .card-layout__body{

    position:relative;
    z-index:2;

    width:60%;

    display:flex;
    align-items:center;

    padding:5rem 4rem;

    background:
        rgba(255,255,255,.94);

    backdrop-filter:blur(10px);

}


#skills .card-layout__body p{

    margin:0;

    font-size:1.5rem;

    line-height:1.8;

    color:var(--text);

}


/* Tag */
#skills .tag-overlay{

    position:absolute;

    top:2rem;
    left:50%;

    transform:translateX(-50%);

    z-index:5;

    margin:0;

    background:#f2f7fc;

    padding:.7rem 1rem;

    border-radius:999px;

    letter-spacing:.12em;
    text-transform:uppercase;

    color:var(--accent);
    font-weight:600;
}
#skills .tag-overlay{
    left:28.5%;
    transform:translateX(-50%);
    background:none !important;
}

}

/* ==========================================================
   EVALUACIÓN INTEGRAL DE SALUD
   ========================================================== */


/* ==========================================================
   UTILIDADES
   ========================================================== */

.justify {
    text-align: center;
}


/* ==========================================================
   SECCIÓN
   ========================================================== */

.evaluation-section {
    width: min(100%, 1050px);

    margin: 7rem auto 0;
    padding: 0 1rem;

    opacity: 0;

    transform:
        translateY(60px)
        scale(.97);

    transition:
        opacity .8s cubic-bezier(.22,.61,.36,1),
        transform .8s cubic-bezier(.22,.61,.36,1);
}

.evaluation-section.show {
    opacity: 1;

    transform:
        translateY(0)
        scale(1);
}


/* ==========================================================
   CABECERA
   ========================================================== */

.evaluation-header {
    text-align: center;

    margin-bottom: 4rem;
}

.evaluation-header .section-tag {
    display: block;

    margin-bottom: 1.5rem;

    color: var(--accent);

    font-family: "Inter", sans-serif;

    font-size:
        clamp(2rem, 4vw, 3.2rem);

    font-weight: 700;

    letter-spacing: .08em;

    text-transform: uppercase;

    line-height: 1.15;
}

.evaluation-header .philosophy-line {
    display: block;

    width: 120px;
    height: 3px;

    margin:
        1.5rem auto 2.8rem;

    background: var(--accent);

    border-radius: 999px;
}

.evaluation-intro {
    max-width: 850px;
    margin: 1rem auto 0;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--muted);
    text-align: center;
}
.evaluation-info-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 12px 24px;
    border: 1px solid currentColor;
    border-radius: 999px;

    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    white-space: nowrap;

    cursor: pointer;
    opacity: 0.75;

    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        opacity 0.25s ease,
        transform 0.25s ease;
}

.evaluation-info-text:hover {
    opacity: 1;
    transform: translateY(-1px);
    background-color: rgba(0, 0, 0, 0.12);
    border-color: currentColor;
}


/* ==========================================================
   GRID
   ========================================================== */

.evaluation-grid {
    display: flex;

    flex-direction: column;

    gap: 1.5rem;
}


/* ==========================================================
   TARJETAS
   ========================================================== */

.evaluation-item {
    position: relative;

    z-index: 1;

    background:
        rgba(255, 255, 255, .96);

    border:
        1px solid rgba(16, 32, 51, .10);

    border-radius: 22px;

    overflow: visible;

    box-shadow:
        0 8px 30px rgba(16, 32, 51, .06);

    transition:
        transform .3s ease,
        box-shadow .3s ease,
        border-color .3s ease;

    animation:
        evaluationCardIn
        .65s
        cubic-bezier(.22,.61,.36,1)
        both;
    
    margin-bottom: 1.5rem;
}

.evaluation-item:hover {
    transform:
        translateY(-2px);

    box-shadow:
        0 14px 38px rgba(16, 32, 51, .09);

    border-color:
        rgba(42, 157, 143, .22);
}

.evaluation-item:active {
    position: relative;
    z-index: 1000;
}

.evaluation-item.is-open {
    border-color:
        rgba(42, 157, 143, .18);

    box-shadow:
        0 14px 40px rgba(42, 157, 143, .10);
}


/*
   La tarjeta cuyo tooltip está abierto
   queda por encima de las demás.
*/

.evaluation-item:has(.evaluation-info.is-visible) {
    z-index: 1000;
}


/* ==========================================================
   ANIMACIÓN DE ENTRADA
   ========================================================== */

@keyframes evaluationCardIn {

    from {
        opacity: 0;

        transform:
            translateY(30px);
    }

    to {
        opacity: 1;

        transform:
            translateY(0);
    }
}

.evaluation-item:nth-child(1) {
    animation-delay: .05s;
}

.evaluation-item:nth-child(2) {
    animation-delay: .12s;
}

.evaluation-item:nth-child(3) {
    animation-delay: .19s;
}

.evaluation-item:nth-child(4) {
    animation-delay: .26s;
}


/* ==========================================================
   CABECERA DE CADA TARJETA
   ========================================================== */

.evaluation-toggle {
    position: relative;

    width: 100%;

    min-height: 145px;

    display: grid;

    grid-template-columns:
        90px
        96px
        minmax(0, 1fr)
        64px;

    grid-template-areas:
        "number icon title button";

    align-items: center;

    column-gap: 22px;

    padding:
        24px 32px;

    border: none;

    border-radius: 22px;

    background: transparent;

    color: var(--text);

    cursor: pointer;

    text-align: left;
}


/* ==========================================================
   NÚMERO
   ========================================================== */

.evaluation-number {
    grid-area: number;

    display: flex;

    align-items: center;
    justify-content: center;

    height: 70px;

    padding-right: 20px;

    border-right:
        1px solid rgba(16, 32, 51, .12);

    color: var(--accent);

    font-family: "Inter", sans-serif;

    font-size: 2.7rem;

    font-weight: 500;

    line-height: 1;
}


/* ==========================================================
   ICONO PRINCIPAL
   ========================================================== */

/*
   IMPORTANTE:

   El primer .evaluation-icon es el icono principal.
   El segundo .evaluation-icon es el "add" original
   del HTML y lo ocultamos más abajo.
*/

.evaluation-toggle > .evaluation-icon:nth-child(2) {

    grid-area: icon;

    width: 96px;
    height: 96px;

    display: flex !important;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background:
        rgba(42, 157, 143, .10);

    color: var(--accent);

    font-family:
        "Material Symbols Rounded";

    /*
       El icono se genera mediante ::before.
    */

    font-size: 0 !important;

    line-height: 1;

    flex-shrink: 0;

    overflow: hidden;

    transition:
        background .3s ease,
        color .3s ease;
}


/* ==========================================================
   ICONOS DE CADA TARJETA
   ========================================================== */

/* 01 — Historia clínica y estilo de vida */
.evaluation-item:nth-of-type(1) .evaluation-icon::before {
    content: "assignment";
    font-size: 46px;
}

/* 02 — Valoración clínica y funcional */
.evaluation-item:nth-of-type(2) .evaluation-icon::before {
    content: "person_heart";
    font-size: 46px;
}

/* 03 — Pruebas complementarias personalizadas */
.evaluation-item:nth-of-type(3) .evaluation-icon::before {
    content: "science";
    font-size: 46px;
}

/* 04 — Diseño de tu plan personalizado */
.evaluation-item:nth-of-type(4) .evaluation-icon::before {
    content: "my_location";
    font-size: 46px;
}


/*
   Ocultamos el "add" que sigue existiendo
   en el HTML.

   El + / − real lo genera ::after.
*/

.evaluation-toggle > .evaluation-icon:nth-child(4) {

    display: none !important;
}


/*
   Evita cualquier rotación del icono
   cuando la tarjeta está abierta.
*/

.evaluation-item.is-open
.evaluation-toggle > .evaluation-icon:nth-child(2) {

    transform: none;
}


/* ==========================================================
   TÍTULO
   ========================================================== */

.evaluation-title {
    grid-area: title;

    min-width: 0;

    margin: 0;

    font-family: "Inter", sans-serif;

    font-size:
        clamp(1.45rem, 2.4vw, 2rem);

    font-weight: 700;

    line-height: 1.25;

    color: var(--text);
}


/* ==========================================================
   BOTÓN + / -
   ========================================================== */

.evaluation-toggle::after {

    grid-area: button;

    content: "+";

    width: 56px;
    height: 56px;

    display: flex;

    align-items: center;
    justify-content: center;

    justify-self: end;

    border:
        2px solid var(--accent);

    border-radius: 50%;

    color: var(--accent);

    font-family: "Inter", sans-serif;

    font-size: 2rem;

    font-weight: 300;

    line-height: 1;

    transition:
        background .3s ease,
        color .3s ease;
}


/* ==========================================================
   ESTADO ABIERTO
   ========================================================== */

.evaluation-item.is-open
.evaluation-toggle::after {

    content: "−";

    background:
        var(--accent);

    color: white;
}


/* ==========================================================
   CONTENIDO DESPLEGABLE
   ========================================================== */

.evaluation-content {

    display: grid;

    grid-template-rows: 0fr;

    transition:
        grid-template-rows
        .45s
        cubic-bezier(.22,.61,.36,1);
    overflow: hidden;
}


/* ==========================================================
   CONTENEDOR INTERNO
   ========================================================== */

.evaluation-content-inner {
    overflow: hidden;
    opacity: 0;

    min-height: 0;

    display: flex;

    align-items: center;

    gap: 20px;

    padding:
        0 48px;

    background:
        rgba(42, 157, 143, .07);

    border-top:
        1px solid rgba(42, 157, 143, .12);

    border-left:
        5px solid var(--accent);

    transition:
        padding .45s ease;
}


/*
   Cuando está abierta permitimos
   que el tooltip salga.
*/

.evaluation-item.is-open
.evaluation-content-inner {
    opacity: 1;
    overflow: visible;
}

.evaluation-item.is-open
.evaluation-content {

    overflow: visible;
}

.evaluation-item.is-open {

    overflow: visible;
}


/* ==========================================================
   TEXTO DEL CONTENIDO
   ========================================================== */

.evaluation-content-inner p {

    flex: 1;

    min-width: 0;

    margin: 0;

    padding: 0;

    color: var(--text);

    font-family: "Inter", sans-serif;

    font-size: 1.15rem;

    line-height: 1.75;

    opacity: 0;

    transform:
        translateY(-10px);

    transition:
        opacity .3s ease,
        transform .4s ease;
}


/* ==========================================================
   ESTADO ABIERTO
   ========================================================== */

.evaluation-item.is-open
.evaluation-content {

    grid-template-rows: 1fr;
}

.evaluation-item.is-open
.evaluation-content-inner {

    padding:
        28px 48px 32px;
}

.evaluation-item.is-open
.evaluation-content-inner p {

    opacity: 1;

    transform:
        translateY(0);
}


/* ==========================================================
   BOTÓN DE INFORMACIÓN
   ========================================================== */

.evaluation-info {

    position: relative;

    z-index: 10000;

    width: 34px;
    height: 34px;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    color:
        rgba(16, 32, 51, .45);

    cursor: help;
}


/* ==========================================================
   ICONO INFO
   ========================================================== */

.evaluation-info > .material-symbols-rounded {

    display: flex !important;

    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    font-size:
        22px !important;

    line-height: 1;

    transition:
        color .25s ease,
        transform .25s ease;
}


/* ==========================================================
   HOVER DEL ICONO INFO
   ========================================================== */

.evaluation-info:hover
> .material-symbols-rounded {

    color:
        var(--accent);

    transform:
        scale(1.08);
}


/* ==========================================================
   TOOLTIP
   ========================================================== */

.evaluation-tooltip {

    position: absolute;

    right: 0;

    top:
        calc(100% + 14px);

    width: 320px;

    min-width: 320px;

    max-width: 320px;

    box-sizing: border-box;

    padding:
        18px 20px;

    background: white;

    border:
        1px solid rgba(16, 32, 51, .10);

    border-radius: 14px;

    box-shadow:
        0 14px 35px rgba(16, 32, 51, .14);

    color: var(--text);

    font-family: "Inter", sans-serif;

    font-size: .95rem;

    font-weight: 400;

    line-height: 1.55;

    text-align: left;

    white-space: normal;

    word-break: normal;

    overflow-wrap: break-word;

    opacity: 0;

    visibility: hidden;

    transform:
        translateY(-8px);

    transition:
        opacity .2s ease,
        transform .2s ease,
        visibility .2s ease;

    pointer-events: none;

    z-index: 99999;
}


/* ==========================================================
   ESCRITORIO
   ========================================================== */

@media (min-width: 769px) {

    .evaluation-item {
        position: relative;

        z-index: 1;
    }

    .evaluation-item:hover {
        z-index: 10;
    }

    .evaluation-info {
        position: relative;

        z-index: 100;
    }

    .evaluation-info:hover {
        z-index: 9999;
    }

    /*
       En escritorio el tooltip aparece
       exclusivamente mediante hover.
    */

    .evaluation-info:hover
    .evaluation-tooltip {

        opacity: 1;

        visibility: visible;

        transform:
            translateY(0);

        pointer-events: auto;

        z-index: 99999;
    }
}


/* ==========================================================
   MÓVIL
   ========================================================== */

@media (max-width: 768px) {

    .evaluation-info {
        cursor: pointer;
    }

    /*
       En móvil :hover NO abre el tooltip.
    */

    .evaluation-info:hover
    .evaluation-tooltip {

        opacity: 0 !important;

        visibility: hidden !important;

        pointer-events: none !important;

        transform:
            translateY(-8px);
    }

    /*
       Solo .is-visible lo muestra.
    */

    .evaluation-info.is-visible
    .evaluation-tooltip {

        opacity: 1 !important;

        visibility: visible !important;

        pointer-events: auto;

        transform:
            translateY(0);
    }
}


/* ==========================================================
   FLECHA DEL TOOLTIP
   ========================================================== */

.evaluation-tooltip::after {

    content: "";

    position: absolute;

    right: 12px;

    top: -7px;

    width: 13px;
    height: 13px;

    background: white;

    border-left:
        1px solid rgba(16, 32, 51, .10);

    border-top:
        1px solid rgba(16, 32, 51, .10);

    transform:
        rotate(45deg);
}


/* ==========================================================
   MÓVIL — TABLET / TELÉFONO
   ========================================================== */

@media (max-width: 768px) {

    /* ---------- Sección ---------- */

    .evaluation-section {

        width: 100%;

        margin-top: 5rem;

        padding: 0 .5rem;
    }


    /* ---------- Cabecera ---------- */

    .evaluation-header {

        margin-bottom: 2.5rem;
    }

    .evaluation-header .section-tag {

        font-size:
            clamp(1.7rem, 7vw, 2.5rem);

        letter-spacing: .08em;
    }

    .evaluation-header .philosophy-line {

        width: 100px;

        margin:
            1.2rem auto 2.2rem;
    }

    .evaluation-intro {

        padding:
            0 .4rem;

        font-size: 1.15rem;

        line-height: 1.55;

    }


    /* ---------- Grid ---------- */

    .evaluation-grid {

        gap: 1rem;
    }


    /* ---------- Tarjetas ---------- */

    .evaluation-item {

        border-radius: 18px;
    }


    /* ---------- Cabecera tarjeta ---------- */

    .evaluation-toggle {

        min-height: 125px;

        grid-template-columns:
            52px
            64px
            minmax(0, 1fr)
            48px;

        grid-template-areas:
            "number icon title button";

        column-gap: 12px;

        padding:
            18px 16px;

        border-radius: 18px;
    }


    /* ---------- Número ---------- */

    .evaluation-number {

        height: 60px;

        padding-right: 12px;

        font-size: 1.8rem;
    }


    /* ---------- Icono principal ---------- */

    .evaluation-toggle
    > .evaluation-icon:nth-child(2) {

        width: 64px;

        height: 64px;
    }


    .evaluation-item:nth-child(1)
    .evaluation-toggle
    > .evaluation-icon:nth-child(2)::before,

    .evaluation-item:nth-child(2)
    .evaluation-toggle
    > .evaluation-icon:nth-child(2)::before,

    .evaluation-item:nth-child(3)
    .evaluation-toggle
    > .evaluation-icon:nth-child(2)::before,

    .evaluation-item:nth-child(4)
    .evaluation-toggle
    > .evaluation-icon:nth-child(2)::before {

        font-size: 32px;
    }


    /* ---------- Título ---------- */

    .evaluation-title {

        font-size: 1.15rem;

        line-height: 1.25;
    }


    /* ---------- + / - ---------- */

    .evaluation-toggle::after {

        width: 42px;

        height: 42px;

        font-size: 1.6rem;
    }


    /* ---------- Contenido ---------- */

    .evaluation-item.is-open
    .evaluation-content-inner {

        padding:
            22px 20px 26px 24px;
    }

    .evaluation-content-inner p {

        font-size: 1rem;

        line-height: 1.65;
    }


    /* ---------- Info ---------- */

    .evaluation-info {

        width: 30px;

        height: 30px;

        cursor: pointer;
    }

    .evaluation-info
    > .material-symbols-rounded {

        font-size:
            20px !important;
    }


    /* ---------- Tooltip ---------- */

    .evaluation-tooltip {

        right: -5px;

        top:
            calc(100% + 12px);

        width:
            min(280px, calc(100vw - 40px));

        min-width: 0;

        max-width:
            calc(100vw - 40px);

        padding:
            16px 18px;

        font-size: .85rem;
    }


    /*
       En móvil el tooltip empieza oculto.
    */

    .evaluation-info
    .evaluation-tooltip {

        opacity: 0;

        visibility: hidden;

        pointer-events: none;

        transform:
            translateY(-8px);
    }


    /*
       .is-visible = tooltip abierto.
    */

    .evaluation-info.is-visible
    .evaluation-tooltip {

        opacity: 1;

        visibility: visible;

        pointer-events: auto;

        transform:
            translateY(0);
    }
}


/* ==========================================================
   MÓVILES PEQUEÑOS
   ========================================================== */

@media (max-width: 480px) {

    /* ---------- Cabecera tarjeta ---------- */

    .evaluation-toggle {

        grid-template-columns:
            42px
            56px
            minmax(0, 1fr)
            42px;

        grid-template-areas:
            "number icon title button";

        column-gap: 9px;

        padding:
            15px 12px;
    }


    /* ---------- Número ---------- */

    .evaluation-number {

        font-size: 1.5rem;

        padding-right: 8px;
    }


    /* ---------- Icono principal ---------- */

    .evaluation-toggle
    > .evaluation-icon:nth-child(2) {

        width: 56px;

        height: 56px;
    }


    .evaluation-item:nth-child(1)
    .evaluation-toggle
    > .evaluation-icon:nth-child(2)::before,

    .evaluation-item:nth-child(2)
    .evaluation-toggle
    > .evaluation-icon:nth-child(2)::before,

    .evaluation-item:nth-child(3)
    .evaluation-toggle
    > .evaluation-icon:nth-child(2)::before,

    .evaluation-item:nth-child(4)
    .evaluation-toggle
    > .evaluation-icon:nth-child(2)::before {

        font-size: 27px;
    }


    /* ---------- Título ---------- */

    .evaluation-title {

        font-size: 1.05rem;
    }


    /* ---------- + / - ---------- */

    .evaluation-toggle::after {

        width: 38px;

        height: 38px;

        font-size: 1.4rem;
    }


    /* ---------- Info ---------- */

    .evaluation-info {

        width: 27px;

        height: 27px;
    }

    .evaluation-info
    > .material-symbols-rounded {

        font-size:
            19px !important;
    }


    /* ---------- Contenido ---------- */

    .evaluation-item.is-open
    .evaluation-content-inner {

        gap: 12px;

        padding:
            20px 16px 22px 20px;
    }

    .evaluation-content-inner p {

        font-size: .95rem;

        line-height: 1.6;
    }


    /* ---------- Tooltip ---------- */

    .evaluation-tooltip {

        right: -10px;

        top:
            calc(100% + 10px);

        width:
            min(260px, calc(100vw - 30px));

        min-width: 0;

        max-width:
            calc(100vw - 30px);

        padding:
            14px 16px;

        font-size: .82rem;
    }
}

.benefits-btn {
    align-self: flex-start;
    margin-top: auto;
    padding: 10px 20px;

    border: 1px solid var(--accent);
    border-radius: 999px;

    background: transparent;
    color: var(--accent);

    font-family: "Inter", sans-serif;
    font-size: .85rem;
    font-weight: 600;

    cursor: pointer;

    transition:
        background .25s ease,
        color .25s ease,
        transform .25s ease,
        box-shadow .25s ease;
}

.benefits-btn:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(42, 157, 143, .18);
}

@media (min-width: 769px) {
    .slide {
        display: flex;
        flex-direction: column;
    }

    .slide-content {
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .benefits-btn {
        margin-top: auto;
    }
}

.benefits-popup {
    position: fixed;
    inset: 0;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 20px;

    background: rgba(16, 32, 51, .45);
    backdrop-filter: blur(6px);

    opacity: 0;
    visibility: hidden;

    transition:
        opacity .3s ease,
        visibility .3s ease;

    z-index: 99999;
}

.benefits-popup.show {
    opacity: 1;
    visibility: visible;
}

.benefits-popup__content {
    position: relative;

    width: min(600px, 100%);
    max-height: 85vh;

    padding: 2.5rem;

    overflow-y: auto;

    background: white;
    border-radius: 24px;

    text-align: center;

    box-shadow:
        0 30px 80px rgba(16, 32, 51, .22);

    transform: translateY(20px) scale(.96);

    transition:
        transform .3s ease;
}

.benefits-popup.show
.benefits-popup__content {
    transform: translateY(0) scale(1);
}


/* Icono */

.benefits-popup__icon {
    width: 64px;
    height: 64px;

    margin: 0 auto 1.5rem;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: rgba(42, 157, 143, .12);

    color: var(--accent);
}

.benefits-popup__icon
.material-symbols-rounded {
    font-size: 32px;
}


/* Título */

.benefits-popup__content h3 {
    margin: 0 0 1.5rem;

    font-family: "Cormorant Garamond", serif;
    font-size: 2rem;
    font-weight: 600;

    color: var(--text);
}


/* Lista */

.benefits-popup__content ul {
    margin: 0 0 2rem;
    padding: 0;

    list-style: none;

    text-align: left;
}

.benefits-popup__content li {
    position: relative;

    padding: 10px 0 10px 30px;

    color: var(--muted);

    font-family: "Inter", sans-serif;
    font-size: 1rem;
    line-height: 1.6;

    border-bottom: 1px solid rgba(16, 32, 51, .06);
}

.benefits-popup__content li:last-child {
    border-bottom: none;
}

.benefits-popup__content li::before {
    content: "✓";

    position: absolute;
    left: 0;
    top: 10px;

    color: var(--accent);

    font-weight: 700;
}


/* Botón cerrar */

.benefits-popup__close {
    position: absolute;

    top: 16px;
    right: 18px;

    width: 36px;
    height: 36px;

    display: grid;
    place-items: center;

    border: none;
    border-radius: 50%;

    background: rgba(16, 32, 51, .05);

    color: var(--muted);

    font-size: 1.5rem;
    line-height: 1;

    cursor: pointer;

    transition:
        background .2s ease,
        color .2s ease,
        transform .2s ease;
}

.benefits-popup__close:hover {
    background: rgba(42, 157, 143, .12);
    color: var(--accent);
    transform: rotate(90deg);
}


/* Móvil */

@media (max-width: 600px) {

    .benefits-popup {
        padding: 14px;
    }

    .benefits-popup__content {
        padding: 2rem 1.4rem;

        max-height: 90vh;

        border-radius: 20px;
    }

    .benefits-popup__content h3 {
        font-size: 1.7rem;
    }

    .benefits-popup__content li {
        font-size: .92rem;
    }
}

.whatsapp-float {
    position: fixed;
    right: 24px;
    bottom: 24px;

    width: 58px;
    height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #25D366;
    border-radius: 50%;

    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);

    z-index: 9999;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.whatsapp-float img {
    width: 31px;
    height: 31px;
    object-fit: contain;
     filter: brightness(0) invert(1);
}

.whatsapp-float:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

@media (max-width: 600px) {
    .whatsapp-float {
        right: 16px;
        bottom: 16px;

        width: 52px;
        height: 52px;
    }

    .whatsapp-float img {
        width: 28px;
        height: 28px;
    }
}

.privacy-consent {
    margin-top: 18px;
}

.privacy-consent__label {
    display: flex;
    align-items: flex-start;
    gap: 10px;

    font-size: 0.75rem;
    line-height: 1.5;

    cursor: pointer;
}

.privacy-consent__label input {
    width: 16px;
    height: 16px;

    margin: 2px 0 0;

    flex-shrink: 0;
    cursor: pointer;
}

.privacy-consent__label a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.site-footer {
    margin-top: 0;
    padding: 4rem 2rem 1.5rem;

    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.site-footer__inner {
    max-width: 1200px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 4rem;
}


/* MARCA */

.site-footer__brand {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.site-footer__brand h3 {
    margin: 0;

    font-size: 1.05rem;
    font-weight: 600;
}

.site-footer__brand p {
    max-width: 280px;
    margin: 0;

    font-size: 0.8rem;
    line-height: 1.6;

    opacity: 0.6;
}


/* COLUMNAS */

.site-footer__column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
}

.site-footer__column h4 {
    margin: 0 0 0.4rem;

    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;

    opacity: 0.5;
}

.site-footer__column a {
    color: inherit;
    text-decoration: none;

    font-size: 0.8rem;

    opacity: 0.65;

    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.site-footer__column a:hover {
    opacity: 1;
    transform: translateX(3px);
}


/* PARTE INFERIOR */

.site-footer__bottom {
    max-width: 1200px;
    margin: 3rem auto 0;
    padding-top: 1.2rem;

    border-top: 1px solid rgba(0, 0, 0, 0.06);

    display: flex;
    justify-content: space-between;
    gap: 20px;

    font-size: 0.7rem;

    opacity: 0.45;
}


/* MÓVIL */

@media (max-width: 700px) {

    .site-footer {
        padding: 3rem 1.5rem 1.5rem;
    }

    .site-footer__inner {
        grid-template-columns: 1fr;
        gap: 2.2rem;
    }

    .site-footer__bottom {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* =========================================================
   MÓVIL
   ========================================================= */

@media (max-width: 770px) {

    .legal-page {
        padding: 30px 16px;
    }

    .legal-container {
        width: 100%;
        max-width: 100%;
    }

    .legal-header {
        margin-bottom: 40px;
    }

    .legal-header h1 {
        font-size: 2rem;
        line-height: 1.15;
        overflow-wrap: break-word;
    }

    .legal-header p {
        width: 100%;
        max-width: 100%;
        font-size: 0.85rem;
    }

    .legal-section {
        margin-bottom: 50px;
    }

    .legal-section h2 {
        font-size: 1.5rem;
        line-height: 1.25;
    }

    .legal-section h3 {
        font-size: 0.95rem;
        line-height: 1.4;
    }

    .legal-section p,
    .legal-section li {
        font-size: 0.85rem;
        line-height: 1.7;
    }

    .legal-section ul {
        padding-left: 20px;
    }


    /* Checkbox */

    .privacy-consent {
        width: 100%;
        margin-top: 16px;
    }

    .privacy-consent__label {
        gap: 9px;
        font-size: 0.72rem;
        line-height: 1.5;
    }

    .privacy-consent__label input[type="checkbox"] {
        width: 16px;
        min-width: 16px;
        max-width: 16px;

        height: 16px;
        min-height: 16px;

        flex-basis: 16px;
    }


    /* Footer legal */

    .legal-footer {
        width: 100%;
        box-sizing: border-box;
    }
}

.technology-header .section-tag {
    font-family: sans-serif;

}

.philosophy-text .section-tag {
    font-family: sans-serif;

}

/* ==========================================================
   CONTENIDO SEO DE LAS TERAPIAS
   ========================================================== */

.therapy-details {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: normal;
    border: 0;
}


/* Evita que el contenido SEO interfiera visualmente
   con la tarjeta */

.therapy-card {
    position: relative;
}