/* drarzeno.com — colours from the brand manual (Pantone 7689C, 640C, 7693C and the greys). */
:root {
  --azul: #2396CB;
  --azul-medio: #1780B8;
  --azul-profundo: #094979;
  --tinta: #0B2A42;
  --texto: #1D3447;
  --suave: #55697A;
  --niebla: #F2F7FA;
  --linea: #D3E1EA;
  --gris: #EDEDED;
  --blanco: #fff;
  --titulo: "Josefin Sans", "Albert Sans", system-ui, sans-serif;
  --cuerpo: "Albert Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ancho: 72rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--cuerpo);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--texto);
  background: var(--blanco);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--azul-profundo); text-underline-offset: 0.18em; }
a:hover { color: var(--azul-medio); }
:focus-visible { outline: 3px solid var(--azul); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--titulo); font-weight: 600; color: var(--tinta); line-height: 1.15; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.25rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1.1em; }
.wrap { width: min(100% - 2.5rem, var(--ancho)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--blanco); padding: 0.75rem 1rem; z-index: 50; }
.skip:focus { left: 0.5rem; top: 0.5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  font-family: var(--cuerpo); font-weight: 600; font-size: 1rem; line-height: 1.2;
  padding: 0.9rem 1.4rem; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; text-align: center;
}
.btn .ico { width: 1.3em; height: 1.3em; flex: none; }
.btn-primary { background: var(--azul-profundo); color: var(--blanco); }
.btn-primary:hover { background: var(--azul-medio); color: var(--blanco); }
.btn-outline { border-color: var(--azul-profundo); color: var(--azul-profundo); background: var(--blanco); }
.btn-outline:hover { background: var(--niebla); color: var(--azul-profundo); }
.btn-light { background: var(--blanco); color: var(--azul-profundo); }
.btn-light:hover { background: var(--gris); color: var(--azul-profundo); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.75); color: var(--blanco); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.14); color: var(--blanco); }
.btn-small { padding: 0.6rem 1.1rem; font-size: 0.95rem; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: var(--blanco); border-bottom: 1px solid var(--linea); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }
.brand img { width: clamp(11.5rem, 9rem + 9vw, 16.5rem); }
.menu ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 1.5rem; }
.menu a { text-decoration: none; font-weight: 500; font-size: 0.98rem; color: var(--tinta); }
.menu a:hover, .menu a[aria-current] { color: var(--azul-medio); }
.menu a.btn-primary, .menu a.btn-primary:hover { color: var(--blanco); }
.menu .lang { border: 1px solid var(--linea); border-radius: 999px; padding: 0.4rem 0.85rem; }
.menu-btn { display: none; font: inherit; font-weight: 600; color: var(--azul-profundo); background: var(--blanco);
  border: 2px solid var(--azul-profundo); border-radius: 999px; padding: 0.5rem 1rem; cursor: pointer; }
@media (max-width: 62rem) {
  .menu-btn { display: inline-block; }
  .menu { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--blanco);
    border-bottom: 1px solid var(--linea); box-shadow: 0 18px 30px -18px rgba(9, 73, 121, 0.35); }
  .menu.open { display: block; }
  .menu ul { flex-direction: column; align-items: stretch; gap: 0; padding: 0.5rem 1.25rem 1.25rem; }
  .menu li { border-bottom: 1px solid var(--linea); }
  .menu li:last-child, .menu li:nth-last-child(2) { border-bottom: 0; }
  .menu a { display: block; padding: 0.95rem 0; font-size: 1.05rem; }
  .menu .lang { display: inline-block; margin: 0.9rem 0 0.4rem; padding: 0.5rem 1rem; }
  .menu a.btn { display: flex; padding: 0.9rem 1.4rem; margin-top: 0.4rem; }
}

/* Hero: the eye photograph, with the text on its dark side */
.hero { position: relative; background: #17140e; color: var(--blanco); overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 72% center; }
.hero::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(14, 12, 8, 0.88) 0%, rgba(14, 12, 8, 0.7) 38%, rgba(14, 12, 8, 0) 68%); }
.hero .wrap { position: relative; z-index: 1; }
.hero-text { max-width: 35rem; padding: clamp(4rem, 11vw, 8.5rem) 0; }
.hero h1 { color: var(--blanco); font-size: clamp(2rem, 1.2rem + 2.6vw, 3rem); }
.hero p { font-size: 1.15rem; margin: 1.25rem 0 2rem; color: rgba(255, 255, 255, 0.9); max-width: 31rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }
@media (max-width: 46rem) {
  .hero { background: var(--tinta); }
  .hero-img { position: static; height: 13.5rem; object-position: 80% center; }
  .hero::after { display: none; }
  .hero-text { padding: 2rem 0 2.75rem; }
  .hero-actions .btn { flex: 1 1 100%; }
}

/* Bands */
.band { padding: clamp(3.25rem, 7vw, 6rem) 0; }
.band-tint { background: var(--niebla); }
.band-deep { background: var(--azul-profundo); color: var(--blanco); }
.band-deep h2 { color: var(--blanco); }
.band-book { background: var(--niebla); border-top: 1px solid var(--linea); }
.band-intro { max-width: 44rem; margin: 1rem 0 2.25rem; color: var(--suave); font-size: 1.1rem; }
.sub-h { margin-top: clamp(3rem, 6vw, 4.5rem); }

/* Doctor: the portrait takes the heart-lobe shape of the logo */
.portrait { width: 100%; max-width: 27rem; aspect-ratio: 1; object-fit: cover; border-radius: 50% 50% 0 50%;
  box-shadow: 1rem 1rem 0 var(--linea); }
.doc { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center; }
.doc h2 { margin-bottom: 1.25rem; }
.more { font-weight: 600; }
@media (max-width: 52rem) {
  .doc { grid-template-columns: 1fr; }
  .portrait { max-width: 19rem; }
}

/* Index lists (services and conditions) */
.index-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(17.5rem, 1fr)); gap: 0 2.5rem; }
.index-list li { border-top: 1px solid var(--linea); }
.index-list a { display: block; padding: 1.15rem 0 1.2rem 1.6rem; text-decoration: none; position: relative; color: var(--texto); }
.index-list a::before { content: ""; position: absolute; left: 0.15rem; top: 1.65rem; width: 0.6rem; height: 0.6rem; background: var(--azul); transform: rotate(45deg); }
.index-list strong { display: block; font-family: var(--titulo); font-weight: 600; font-size: 1.25rem; color: var(--tinta); line-height: 1.25; }
.index-list span { display: block; color: var(--suave); font-size: 0.98rem; margin-top: 0.2rem; }
.index-list a:hover strong { color: var(--azul-medio); }
.index-list a:hover::before { background: var(--azul-profundo); }

/* International teaser */
.intl { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.intl p { color: rgba(255, 255, 255, 0.92); font-size: 1.1rem; margin-top: 1rem; }
.intl p:last-child { margin: 1.75rem 0 0; }
.intl img { border-radius: 1.25rem; }
@media (max-width: 52rem) { .intl { grid-template-columns: 1fr; } }

/* Clinics and booking */
.clinics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.clinics-single { grid-template-columns: minmax(0, 34rem); margin-top: 2.25rem; }
.clinic { background: var(--blanco); border: 1px solid var(--linea); border-radius: 1.25rem; padding: clamp(1.5rem, 3vw, 2.25rem); display: flex; flex-direction: column; }
.clinic-logo { height: 4.5rem; display: flex; align-items: center; margin-bottom: 1.25rem; }
.clinic-logo img { max-height: 100%; width: auto; }
.clinic h2, .clinic h3 { font-size: 1.5rem; }
.clinic h2 a, .clinic h3 a { color: inherit; text-decoration: none; }
.clinic h2 a:hover, .clinic h3 a:hover { color: var(--azul-medio); }
.clinic-kind { font-weight: 600; color: var(--azul-profundo); margin: 0.4rem 0 0.35rem; }
.clinic-addr { color: var(--suave); margin-bottom: 1.5rem; }
.clinic-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: auto; }
.clinic-more { font-size: 0.95rem; color: var(--suave); margin: 0.9rem 0 0; }
@media (max-width: 46rem) {
  .clinics { grid-template-columns: 1fr; }
  .clinic-actions .btn { flex: 1 1 100%; }
}

/* Article pages */
.page-head { background: var(--niebla); border-bottom: 1px solid var(--linea); padding: clamp(2rem, 5vw, 3.75rem) 0 clamp(2.25rem, 5vw, 4rem); }
.crumbs { font-size: 0.92rem; color: var(--suave); margin-bottom: 1.25rem; }
.crumbs a { color: var(--suave); }
.lead { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem); color: var(--texto); max-width: 44rem; margin: 1.1rem 0 0; }
.article { display: grid; grid-template-columns: minmax(0, 1fr) 16rem; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.prose { max-width: 44rem; }
.prose h2 { margin: 2.75rem 0 1rem; font-size: clamp(1.4rem, 1.2rem + 1vw, 1.8rem); }
.prose > h2:first-child { margin-top: 0; }
.prose ul { padding: 0; margin: 0 0 1.4em; list-style: none; }
.prose ul li { position: relative; padding-left: 1.6rem; margin-bottom: 0.5rem; }
.prose ul li::before { content: ""; position: absolute; left: 0.15rem; top: 0.6em; width: 0.5rem; height: 0.5rem; background: var(--azul); transform: rotate(45deg); }
.defs { margin: 0 0 1.5rem; border-top: 1px solid var(--linea); }
.defs > div { display: grid; grid-template-columns: 12rem minmax(0, 1fr); gap: 0.25rem 1.5rem; padding: 1rem 0; border-bottom: 1px solid var(--linea); }
.defs dt { font-family: var(--titulo); font-weight: 600; font-size: 1.15rem; color: var(--tinta); }
.defs dd { margin: 0; }
.steps { list-style: none; counter-reset: paso; margin: 0 0 1.5rem; padding: 0; }
.steps li { counter-increment: paso; position: relative; padding: 0 0 1.5rem 3.5rem; }
.steps li::before { content: counter(paso); position: absolute; left: 0; top: -0.1rem; width: 2.35rem; height: 2.35rem; border-radius: 50%;
  background: var(--azul-profundo); color: var(--blanco); font-family: var(--titulo); font-weight: 600; display: grid; place-items: center; padding-top: 0.15rem; }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 1.15rem; top: 2.5rem; bottom: 0.25rem; width: 2px; background: var(--linea); }
.steps strong { display: block; font-family: var(--titulo); font-size: 1.2rem; color: var(--tinta); }
.note { background: var(--niebla); border-left: 4px solid var(--azul); padding: 1.1rem 1.35rem; border-radius: 0 0.75rem 0.75rem 0; margin: 1.75rem 0; }
.photo { border-radius: 1.25rem; margin-bottom: 2rem; }
.portrait-inline { max-width: 19rem; margin: 0 0 2.75rem; }
.related { border-top: 3px solid var(--azul); padding-top: 1.1rem; position: sticky; top: 6.5rem; }
.related h2 { font-size: 1.1rem; margin-bottom: 0.6rem; }
.related ul { list-style: none; margin: 0; padding: 0; }
.related li { border-bottom: 1px solid var(--linea); }
.related a { display: block; padding: 0.6rem 0; text-decoration: none; }
@media (max-width: 60rem) {
  .article { grid-template-columns: 1fr; }
  .related { position: static; }
}
@media (max-width: 36rem) { .defs > div { grid-template-columns: 1fr; } }

/* Footer */
.foot { background: var(--tinta); color: rgba(255, 255, 255, 0.82); padding: clamp(2.75rem, 6vw, 4.5rem) 0 2rem; font-size: 0.98rem; }
.foot a { color: var(--blanco); text-decoration: none; }
.foot a:hover { text-decoration: underline; color: var(--blanco); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 3fr); gap: 2.5rem; }
.foot-grid img { width: 15rem; margin-bottom: 1.25rem; }
.foot h2 { color: var(--blanco); font-size: 1.1rem; margin-bottom: 0.9rem; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: 0.5rem; }
.foot-legal { border-top: 1px solid rgba(255, 255, 255, 0.18); margin-top: 2.5rem; padding-top: 1.5rem; font-size: 0.9rem; color: rgba(255, 255, 255, 0.7); }
.foot-legal p { margin: 0 0 0.35rem; }
@media (max-width: 46rem) { .foot-grid { grid-template-columns: 1fr; gap: 2rem; } }
