/* Links */
.link{ color:var(--primary); text-decoration:none; position:relative; font-weight:600; }
.link::after{ content:""; position:absolute; left:0; right:0; bottom:-2px; height:2px; background:currentColor; transform:scaleX(0); transform-origin:left; transition:transform var(--dur-fast) var(--ease-standard); }
.link:hover::after{ transform:scaleX(1); }
.link.subtle{ font-weight:500; }
.link.subtle::after{ display:none; }
.link.subtle:hover{ opacity:.9; }

/* =========================================
   BOTONES — Sistema global (tokens first)
   ========================================= */

/* Custom props del sistema de botones (puedes ajustarlas si quieres) */
:root{
  --btn-gap: var(--space-2);
  --btn-sm-pad: .55rem .85rem;
  --btn-md-pad: .9rem 1.25rem;
  --btn-xl-pad: 1.1rem 1.75rem;

  --btn-sm-fs: .9rem;
  --btn-md-fs: 1rem;
  --btn-xl-fs: 1.125rem;
}

/* Base: <a>, <button>, <input> con .btn */
a.btn, button.btn, input[type="submit"].btn, input[type="button"].btn{
  /* Defaults (derivan de tokens.css) */
  --btn-bg: var(--color-accent);
  --btn-fg: var(--color-text-inverted);
  --btn-fg-hover: var(--color-text-soft);
  --btn-border: transparent;
  --btn-radius: var(--radius-md);
  --btn-shadow: var(--shadow-sm);

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--btn-gap);

  font-family: var(--font-sanserif-display);
  font-weight: var(--font-weight-semibold);
  font-size: var(--btn-md-fs);
  line-height: 1;

  padding: var(--btn-md-pad);
  border: 1px solid var(--btn-border);
  background: var(--btn-bg);
  color: var(--btn-fg);
  text-decoration: none;
  box-shadow: var(--btn-shadow);

  cursor: pointer;
  transition:
    color var(--dur-med) var(--ease-standard),
    background-color var(--dur-med) var(--ease-standard),
    border-color var(--dur-med) var(--ease-standard),
    transform var(--dur-fast) ease-out,
    box-shadow var(--dur-med) var(--ease-standard);
  -webkit-tap-highlight-color: transparent;
}

/* Estados */
a.btn:hover, button.btn:hover, input[type="submit"].btn:hover, input[type="button"].btn:hover{
  color: var(--btn-fg-hover);
  box-shadow: var(--shadow-md);
}
a.btn:active, button.btn:active, input[type="submit"].btn:active, input[type="button"].btn:active{
  transform: translateY(1px);
  box-shadow: var(--shadow-xs);
}
a.btn:focus-visible, button.btn:focus-visible, input[type="submit"].btn:focus-visible, input[type="button"].btn:focus-visible{
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
}
.btn[disabled], .btn.is-disabled{ opacity:.55; cursor:not-allowed; pointer-events:none; }

/* ===== Variantes (todas via tokens) ===== */
.btn--primary{ --btn-bg: var(--color-accent); }
.btn--neutral{ --btn-bg: var(--color-bg-strong); }
.btn--success{ --btn-bg: var(--color-success); }
.btn--danger { --btn-bg: var(--color-error); }

/* Outline (borde/texto del color de contexto) */
.btn--outline{
  --btn-bg: transparent;
  --btn-border: currentColor;
  background: transparent;
  color: var(--color-text);
  box-shadow: none;
}
.btn--outline:hover{
  color: var(--color-text-medium);
  border-color: var(--color-text-medium);
}

/* Ghost (solo texto) */
.btn--ghost{
  --btn-bg: transparent;
  --btn-border: transparent;
  background: transparent;
  color: var(--color-text);
  box-shadow: none;
}
.btn--ghost:hover{ color: var(--color-text-medium); }

/* Contexto oscuro / imagen (hero, headers strong, overlays) */
.on-dark .btn,
.hero-slide__content .btn,
.site-header.header--strong .btn{
  color: var(--color-text-inverted);
}
.on-dark .btn:hover,
.hero-slide__content .btn:hover,
.site-header.header--strong .btn:hover{
  color: var(--color-text-soft);
}
.on-dark .btn--outline,
.hero-slide__content .btn--outline,
.site-header.header--strong .btn--outline{
  color: var(--color-text-inverted);
  border-color: currentColor;
}
.on-dark .btn--outline:hover,
.hero-slide__content .btn--outline:hover,
.site-header.header--strong .btn--outline:hover{
  color: var(--color-text-soft);
  border-color: var(--color-text-soft);
}

/* ===== Tamaños ===== */
.btn-sm{ padding: var(--btn-sm-pad); font-size: var(--btn-sm-fs); }
.btn-lg{ padding: 1rem 1.5rem; font-size: 1.05rem; }
.btn-xl{ padding: var(--btn-xl-pad); font-size: var(--btn-xl-fs); }

/* ===== Utilidades ===== */
.btn--block{ display:flex; width:100%; }
.btn .icon{ inline-size: var(--icon-md); block-size: var(--icon-md); line-height: 0; }

/* ===== Loading state ===== */
.btn.loading{ position: relative; pointer-events: none; opacity: .75; }
.btn.loading::after{
  content: "";
  inline-size: 1em; block-size: 1em;
  margin-inline-start: .5rem;
  border: 2px solid currentColor;
  border-right-color: transparent;
  display: inline-block;
  animation: btn-spin var(--dur-slow) linear infinite;
}
@keyframes btn-spin{ to{ transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce){
  .btn{ transition: none; }
  .btn.loading::after{ animation: none; }
}

/* ===== Compatibilidad con clases antiguas ===== */
/* (Para no romper markup anterior) */
.btn.btn-inverted{ --btn-bg: var(--color-accent); --btn-fg: var(--color-text-inverted); }
.btn.btn-outline-inverted{ --btn-bg: transparent; --btn-border: currentColor; color: var(--color-text-inverted); }
.btn.btn-outline-inverted:hover{ color: var(--color-text-soft); border-color: var(--color-text-soft); }

/* Alias antiguos → nuevas utilidades/variantes */
.btn.outline{ @supports not (selector(:has(*))){ } } /* no-op para compat */
.btn.outline{ /* map to outline */ background: transparent; color: var(--color-text); border:1px solid currentColor; box-shadow: none; }
.btn.ghost{   /* map to ghost   */ background: transparent; color: var(--color-text); border-color: transparent; box-shadow: none; }
.btn.full{    /* map to block   */ width: 100%; display: flex; }



/* Cards */
.card{ background:var(--surface); box-shadow:var(--shadow-sm); overflow:hidden; }
.badge{ display:inline-block; padding:.25rem .5rem; font-size:.75rem; background:var(--color-text-soft); color:#003; }

/* Brands list */
.brands-list h2{ text-align:center; margin-bottom:var(--space-8); }
.brand-logos{ display:flex; flex-wrap:wrap; justify-content:center; align-items:center; gap:var(--space-6); }
.brand-logo img{ height:48px; width:auto; opacity:.85; transition:opacity var(--dur-fast); filter:grayscale(1); }
.brand-logo:hover img{ opacity:1; filter:grayscale(0); }
@media (max-width: 768px){ .brand-logo img{ height:40px; } }

/* Footer */
.site-footer{ padding-block:var(--space-12); background:var(--color-bg-strong); color:var(--color-text-inverted); }
.site-footer a{ color:var(--color-text-inverted); text-decoration:none; }
.site-footer a:hover{ text-decoration:underline; }


/* === SOBRE LA DOCTORA (encapsulat) === */
.about-doctora {
  background: transparent; /* el fons clar només a la columna de text */
  width: 100%;
}

.about-doctora .about-doctora__inner{
  background-color: white;
  display: grid;
  grid-template-columns: 1fr 1fr; /* 50/50 */
  align-items: stretch;            /* clau: iguala l’alçada per fila */
  width: 100%;
  max-width: 100%;
}

/* Columnes */
.about-doctora .about-doctora__media,
.about-doctora .about-doctora__content{
  height: 100%;
}

/* Columna dreta (text) */
.about-doctora .about-doctora__content {
  padding: clamp(20px, 3.2vw, 48px);
  display: grid;
  align-content: center;
  gap: 12px;
}

.about-doctora .about-doctora__header { display: grid; gap: 6px; }
.about-doctora .about-doctora__title { margin: 0; }
.about-doctora .about-doctora__role  { margin: 0; font-size: 14px; opacity: .9; }
.about-doctora .about-doctora__bio p { margin: 0 0 10px 0; }

.about-doctora .about-doctora__cta .btn{
  border-radius: 10px;
  font-weight: 600;
  padding: 10px 16px;
}

/* Columna esquerra (media/slider): omple l’alçada de la fila del grid */
.about-doctora .splide--doctora,
.about-doctora .splide--doctora .splide__track,
.about-doctora .splide--doctora .splide__list,
.about-doctora .splide--doctora .splide__slide,
.about-doctora .about-doctora__figure{
  height: 100%;
}

.about-doctora .about-doctora__figure{
  margin: 0;
  width: 100%;
}

.about-doctora .about-doctora__img{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;  /* retalla amb elegància per igualar alçades */
}

/* Ajustos visuals Splide només aquí */
.about-doctora .splide--doctora .splide__arrow{
  background: rgba(255,255,255,.75);
  border: 1px solid rgba(0,0,0,.06);
}
.about-doctora .splide--doctora .splide__pagination__page{ background: rgba(255,255,255,.7); }
.about-doctora .splide--doctora .splide__pagination__page.is-active{ background:#fff; }

/* RESPONSIVE: apilar i donar aspect-ratio perquè no quedi massa alt */
@media (max-width: 980px){
  .about-doctora .about-doctora__inner{ grid-template-columns: 1fr; }
  .about-doctora .about-doctora__media{ height: auto; }
  .about-doctora .about-doctora__figure{ height: auto; aspect-ratio: 4 / 3; }
  .about-doctora .about-doctora__img{ height: 100%; }
}
