/* ESSENTIA Health Management — hoja de estilos única.
   Medidas, tipografías y colores calcados de la web publicada (Astra + Elementor).
   Fuentes alojadas en el propio dominio (sin Google Fonts). */

/* ---------- Fuentes (latin, licencia SIL OFL) ---------- */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/poppins-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/poppins-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 100 900; font-stretch: 100%; font-display: swap;
  src: url("../fonts/roboto-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Quicksand"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("../fonts/quicksand-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --text: #353231;
  --head: #120f0e;
  --eyebrow: #929091;
  --menu: #484645;
  --strategy: #667cac;
  --efficiency: #767572;
  --clinical: #953945;
  --safety: #bb9246;
  --slate: #647c85;
  --mail: #cb4f6d;
  --clock: #858889;
  --poppins: "Poppins", sans-serif;
  --roboto: "Roboto", sans-serif;
  --quicksand: "Quicksand", sans-serif;
}

/* ---------- Base (Astra) ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: #fff; color: var(--text);
  font-family: var(--poppins); font-weight: 400; font-size: 1rem; line-height: 1.85714285714286;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; border: 0; vertical-align: middle; }
a { color: #1e73be; text-decoration: none; }
a:hover, a:focus { color: var(--text); }
:focus-visible { outline: 2px solid var(--strategy); outline-offset: 2px; }
p { margin: 0 0 1em; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 400; color: var(--head); clear: both; }
ul { margin: 0 0 1.5em 3em; padding: 0; }
address { font-style: normal; margin: 0; }
strong, b { font-weight: 700; }
.ico { display: inline-block; width: 1em; height: 1em; fill: currentColor; flex: none; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 200; background: #000; color: #fff; padding: 8px 14px; }
.skip:focus { top: 8px; color: #fff; }

/* ---------- Rejilla (Elementor: caja 1140 px, columnas con 10 px) ---------- */
.wrap { width: 100%; max-width: 1140px; margin-left: auto; margin-right: auto; }
.col { padding: 10px; }
.w { margin-top: 0; margin-bottom: 20px; }
.w:last-child { margin-bottom: 0; }
.spacer-10 { height: 10px; } .spacer-20 { height: 20px; } .spacer-25 { height: 25px; }
.spacer-30 { height: 30px; } .spacer-50 { height: 50px; }
.spacer-60 { height: 60px; } .spacer-70 { height: 70px; }
.text p:last-child { margin-bottom: 16px; }
.text { font-family: var(--poppins); display: flow-root; }
.text-roboto { font-family: var(--roboto); }
@media (max-width: 1024px) { .wrap { max-width: 1024px; } }
@media (max-width: 767px)  { .wrap { max-width: 767px; } }

/* ---------- Cabecera (Astra, transparente sobre el contenido) ---------- */
.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 99; }
.header-inner { display: flex; align-items: center; justify-content: space-between; background: #fff; padding: 16px 35px; min-height: 96px; }
.brand { display: block; line-height: 0; }
.brand img { width: 350px; height: auto; }
.menu-toggle { display: none; }
.site-nav .menu { display: flex; list-style: none; margin: 0; padding: 0; }
.site-nav .menu a { display: block; padding: 0 16px; line-height: 64px; font-family: var(--poppins); font-size: 1rem; color: var(--menu); text-transform: uppercase; }
.site-nav .menu .lang a { color: rgba(0, 0, 0, .72); }
.site-nav .menu a:hover, .site-nav .menu a:focus { color: #1e73be; }

@media (max-width: 921px) {
  .header-inner { padding: 15px 20px 14px; min-height: 75px; flex-wrap: wrap; }
  .brand img { width: 277px; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 46px; padding: 0 11px; border: 0; background: #fff; color: #000; cursor: pointer; }
  .ico-menu { width: 22px; height: 15px; fill: currentColor; }
  .ico-close { width: 18px; height: 18px; fill: currentColor; display: none; }
  .menu-toggle[aria-expanded="true"] .ico-menu { display: none; }
  .menu-toggle[aria-expanded="true"] .ico-close { display: block; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-top: 1px solid #ddd; box-shadow: 0 8px 14px rgba(0, 0, 0, .12); }
  .site-nav.is-open { display: block; }
  .site-nav .menu { display: block; }
  .site-nav .menu a { padding: 0 20px; line-height: 2.73em; border-bottom: 1px solid #ddd; color: #387dff; }
  .site-nav .menu .lang a { color: #1a1a1a; }
  /* Sin JS: menú siempre visible */
  .no-js .site-nav { display: block; position: static; width: 100%; }
  .no-js .menu-toggle { display: none; }
}

/* ---------- Tipografía de títulos ---------- */
.eyebrow { font-family: var(--roboto); font-size: 1.125rem; line-height: 1.25; letter-spacing: 3.5px; color: var(--eyebrow); text-transform: uppercase; font-weight: 400; }
.title-xl { font-family: var(--roboto); font-size: 40px; line-height: 1.3; letter-spacing: .6px; font-weight: 700; color: var(--head); }
.tracked { letter-spacing: 3px; color: #000; }
.indent { padding-left: 8px; }
.lead { font-size: 24px; }
@media (max-width: 768px) { .title-xl { font-size: 25px; } }

/* ---------- Portada ---------- */
.hero { padding: 100px 0 0; background-color: #fff; background-image: url("../img/portada.jpg"); background-image: image-set(url("../img/portada.webp") type("image/webp"), url("../img/portada.jpg") type("image/jpeg")); background-position: center center; background-size: 100% auto; background-repeat: no-repeat; }
.hero-col { width: 50%; padding: 0 130px 0 160px; }
.btn-info { display: inline-flex; align-items: center; gap: 7px; padding: 9px 20px; border-radius: 30px; background: rgba(255, 255, 255, .063); color: #000; font-family: var(--quicksand); font-weight: 500; font-size: .9375rem; line-height: 1; text-transform: uppercase; }
.btn-info:hover, .btn-info:focus { color: #000; }
.btn-info .ico { width: 15px; height: 15px; }
@media (max-width: 1024px) {
  .hero { background-size: cover; }
  .hero-col { width: auto; margin-right: 40px; padding: 0 300px 0 30px; }
  .hero-col > .w { margin-bottom: 0; }
}
@media (max-width: 767px) {
  .hero { padding: 15px; background-image: url("../img/hero-960.jpg"); background-image: image-set(url("../img/hero-960.webp") type("image/webp"), url("../img/hero-960.jpg") type("image/jpeg")); background-size: cover; }
  .hero-col { margin: 0; padding: 0; }
}

/* ---------- Qué hacemos ---------- */
.cards { display: flex; flex-wrap: wrap; }
.card { width: 50%; padding: 10px; }
.card-head { display: flex; align-items: flex-end; margin-bottom: 20px; }
.card .dot { width: 38px; height: 38px; border-radius: 50%; background: var(--c); flex: none; margin-right: 15px; }
.card h3 { font-family: var(--roboto); font-size: 26px; line-height: 1.4; color: var(--c); padding-top: 1.4em; text-transform: uppercase; }
.card ul { font-family: var(--poppins); line-height: 2.3em; }
.card-strategy ul { line-height: 2em; }
.card-strategy { --c: var(--strategy); }
.card-efficiency { --c: var(--efficiency); }
.card-clinical { --c: var(--clinical); }
.card-safety { --c: var(--safety); }
@media (max-width: 1024px) { .card h3 { font-size: 19px; } }
@media (max-width: 767px) {
  .card { width: 100%; }
  .card-head { flex-direction: column; align-items: center; text-align: center; margin-bottom: 20px; }
  .card .dot { margin: 0 0 9px; }
}

/* ---------- Bandas fotográficas ---------- */
.band { height: 560px; background-size: cover; background-position: center center; background-color: #d9dde0; }
.band-1 { background-image: url("../img/banner-1.jpg"); background-image: image-set(url("../img/banner-1.webp") type("image/webp"), url("../img/banner-1.jpg") type("image/jpeg")); }
.band-2 { background-image: url("../img/banner-2.jpg"); background-image: image-set(url("../img/banner-2.webp") type("image/webp"), url("../img/banner-2.jpg") type("image/jpeg")); }
@media (max-width: 767px) {
  .band { height: 240px; }
  .band-1 { background-image: url("../img/banner-1-960.jpg"); background-image: image-set(url("../img/banner-1-960.webp") type("image/webp"), url("../img/banner-1-960.jpg") type("image/jpeg")); }
  .band-2 { background-image: url("../img/banner-2-960.jpg"); background-image: image-set(url("../img/banner-2-960.webp") type("image/webp"), url("../img/banner-2-960.jpg") type("image/jpeg")); }
}

.quote { padding-top: 12px; }
.quote p { margin: 0 0 20px; text-align: center; font-family: var(--quicksand); font-size: 28px; line-height: 1.4; color: var(--head); }

/* ---------- Quiénes somos ---------- */
.who-lead { font-family: var(--poppins); font-size: 28px; line-height: 1.85714285714286; color: var(--text); font-weight: 400; }
.people { display: flex; flex-wrap: wrap; padding-bottom: 9px; }
.pcol { padding: 10px; width: 41%; }
.pcol-gap { width: 14%; }
.pcol:last-child { width: 45%; }
.person-name { font-family: var(--poppins); font-size: 21.3333px; line-height: 1.85714285714286; color: var(--text); margin-bottom: 10px; }
.person-mail { display: flex; align-items: flex-end; gap: 4px; margin: 0; min-height: 34px; }
.person-mail > a:first-child { color: var(--mail); }
.person-mail > a:first-child:hover { color: var(--text); }
.person-bio { margin: 0 0 20px; }
.social-dark, .social-light { display: inline-block; width: 34px; height: 34px; line-height: 0; border-radius: 50%; }
.social-dark img, .social-light img { width: 34px; height: 34px; }
.social-dark img { filter: invert(1); } /* círculo negro con «in» blanco, como el original */
@media (max-width: 767px) { .pcol, .pcol-gap, .pcol:last-child { width: 100%; } .pcol-gap .spacer-50 { height: 30px; } }

/* ---------- Contacto ---------- */
.clock { margin: 0; padding-left: 95px; text-align: center; color: var(--text); }
.clock time { font-size: 26px; color: var(--clock); }
.contact-logo { padding-right: 72px; text-align: center; line-height: 0; }
.contact-mail { padding-left: 63px; text-align: center; font-family: var(--quicksand); font-size: 1.25rem; line-height: 1.2; }
.contact-mail a { color: var(--head); display: inline-block; margin-bottom: 20px; }
.contact-mail a:hover { color: #1e73be; }
.contact-lines, .contact-address { margin-left: 490px; padding-right: 5px; }
.contact-lines .tel { font-family: Tahoma, Verdana, Segoe, sans-serif; font-size: 16px; color: var(--text); line-height: 1.2; }
.contact-address { padding-right: 0; line-height: .5em; display: flow-root; }
.contact-address p { margin: 0 0 1em; }
.directions-row { display: flex; }
.dcol { width: 33.333%; padding: 10px; }
.dcol-empty { padding: 0; }
.directions { display: inline-flex; align-items: flex-start; gap: 11px; padding-left: 110px; margin-bottom: 20px; color: #000; }
.directions .ico { width: 23px; height: 23px; margin-top: 1px; }
.directions span { font-family: var(--quicksand); font-size: 22px; line-height: 1.2; font-weight: 700; color: var(--head); }
.directions:hover span { color: #1e73be; }
@media (max-width: 1024px) {
  .contact-lines, .contact-address { margin-left: 0; padding: 0 0 0 295px; }
  .directions { padding-left: 40px; }
}
@media (max-width: 767px) {
  .clock { margin-left: 20px; }
  .contact-logo { margin-left: -50px; padding: 0; }
  .contact-mail { margin: -20px 10px 0 0; padding-left: 55px; }
  .contact-lines, .contact-address { margin-left: 135px; padding: 0; }
  .directions-row { flex-direction: column; }
  .dcol { width: 100%; text-align: center; }
  .dcol-empty { height: 1px; }
  .directions { margin-left: -40px; padding-left: 45px; flex-direction: column; align-items: center; gap: 15px; }
}

/* ---------- Pie ---------- */
.footer-photo { height: 420px; background-color: #b8c3c8; background-size: cover; background-position: center center; background-image: url("../img/footer-bcn.jpg"); background-image: image-set(url("../img/footer-bcn.webp") type("image/webp"), url("../img/footer-bcn.jpg") type("image/jpeg")); }
.footer-bar { background: var(--slate); }
.footer-grid { display: flex; }
.fcol { padding: 10px; }
.fcol-empty { width: 40%; padding: 0; }
.fcol-logo { width: 38%; text-align: right; line-height: 0; }
.fcol-logo img { width: 300px; }
.fcol-social { width: 21.554%; text-align: center; padding: 18px 10px 20px; line-height: 0; }
.footer-bar-sub .fcol-social { padding: 15px 10px 10px; }
.footer-bar-sub .social-light, .footer-bar-sub .social-light img { width: 35px; height: 35px; }
@media (max-width: 767px) {
  .footer-photo { height: 160px; background-image: url("../img/footer-bcn-960.jpg"); background-image: image-set(url("../img/footer-bcn-960.webp") type("image/webp"), url("../img/footer-bcn-960.jpg") type("image/jpeg")); }
  .footer-grid { flex-direction: column; }
  .fcol-empty, .fcol-logo, .fcol-social { width: 100%; }
  .fcol-empty { height: 1px; }
  .fcol-logo { text-align: center; }
}

/* ---------- Subpáginas ---------- */
.center-title { text-align: center; }
.center-btn { text-align: center; }
.btn-back { display: inline-block; padding: 16px 24px; border-radius: 70px; background: #fff; color: #000; font-family: var(--quicksand); font-weight: 500; font-size: .9375rem; line-height: 1; }
.btn-back:hover, .btn-back:focus { color: #000; }
.title-quicksand { font-family: var(--quicksand); letter-spacing: 0; }
.gap-lines p + p { padding-top: 1.85714285714286em; }
.band-team { background-image: url("../img/banner-2.jpg"); background-image: image-set(url("../img/banner-2.webp") type("image/webp"), url("../img/banner-2.jpg") type("image/jpeg")); }
@media (min-width: 1025px) { .band-team { background-attachment: fixed; } }
@media (max-width: 767px) {
  .center-title { text-align: left; }
  .band-team { background-image: url("../img/banner-2-960.jpg"); background-image: image-set(url("../img/banner-2-960.webp") type("image/webp"), url("../img/banner-2-960.jpg") type("image/jpeg")); }
}

/* ---------- Móvil pequeño (Astra: html 91,2 %) ---------- */
@media (max-width: 544px) {
  html { font-size: 91.2%; }
  .title-xl { font-size: 24px; }
  .eyebrow { font-size: 1rem; }
  .contact-mail { font-size: 1.125rem; }
  .directions span { font-size: 20px; }
}

@media print {
  .site-header, .band, .footer-photo, .menu-toggle, .skip { display: none !important; }
  .hero { background: none; }
}

/* Desplegable «Info» de la portada (sustituye a la subpágina, funciona sin JS) */
details.more > summary { list-style: none; cursor: pointer; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary .ico { transition: transform .2s; }
details.more[open] > summary .ico { transform: rotate(45deg); }
.more-text { margin-top: 20px; }
