/*
Theme Name: Healpo 2027
Description: Maqueta corporativa de Healpo con importador de contenidos públicos.
Version: 1.26.4
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: healpo-2027
*/
:root{--ink:#211c19;--paper:#fbf8f4;--accent:#9d7f06;--button:#c2b065;--link:#6a5504;--line:#e5ddc9}
*{box-sizing:border-box}
[hidden]{display:none!important}
body{margin:0;color:var(--ink);background:var(--paper);font:16px/1.65 Inter,system-ui,-apple-system,sans-serif}
a{color:var(--link);text-underline-offset:.17em}
a:focus-visible,button:focus-visible,input:focus-visible{outline:3px solid #0064ad;outline-offset:4px}
img{max-width:100%;height:auto;vertical-align:middle}
button{cursor:pointer;font:inherit}
.wrap{width:min(1120px,calc(100% - 2 * clamp(22px,6vw,88px)));margin-inline:auto}
.skip{position:absolute;left:16px;top:8px;transform:translateY(-220%);padding:.65rem 1rem;background:white;z-index:10}
.skip:focus{transform:none}
.site-header{background:white;border-bottom:1px solid var(--line)}
.header-inner{min-height:110px;padding-block:22px;display:flex;align-items:center;justify-content:space-between;gap:20px}
.logo{width:clamp(175px,18vw,218px)}
nav{display:flex;flex-wrap:wrap;gap:8px 26px;align-items:center}
.site-header nav a{font-size:calc(.88rem + 1pt);color:var(--ink);text-decoration:none;padding:.4rem 0}
.site-header nav a:hover,.site-header nav a[aria-current]{text-decoration:underline;text-decoration-color:var(--accent);text-decoration-thickness:2px}
.hero{background:linear-gradient(90deg,#18120ff2 0%,#211c19a3 50%,#211c1933),url(assets/oficina.jpg) center 51%/cover;color:white;position:relative;overflow:hidden}
.hero::before{content:"";position:absolute;inset:0 auto 0 0;width:min(32vw,300px);background:var(--accent);opacity:.2;border-radius:95% 0 0 95%;pointer-events:none}
.hero-inner{position:relative;padding-block:calc(clamp(35px,6svh,66px) + 25px)}
h1,h2,h3,h4{line-height:1.16;letter-spacing:-.02em}
h1{font-size:clamp(2rem,4.8vw,4rem);margin:0 0 1.6rem;max-width:19ch}
.hero h1{font-size:clamp(1.85rem,4.3vw,3.6rem);max-width:24ch;margin-bottom:1rem}
.hero a{display:inline-block;text-decoration:none;margin:0 .7rem .55rem 0;padding:.66rem 1.35rem;border-radius:5px;font-weight:650}
.primary{background:var(--button);color:#17140a}
.secondary{background:var(--button);color:#17140a;border:1px solid #8e7a42}
.content{padding-block:clamp(32px,5vw,72px)}
.home .content{padding-top:clamp(20px,4svh,36px)}
.home-grid h2:first-child{margin-top:0}
.content article:not(.page-id-0){overflow-wrap:anywhere}
.content article > p,.content article > ol,.content article > ul{max-width:82ch}
.home-grid{display:grid;grid-template-columns:1fr 1fr;gap:clamp(28px,5vw,66px);margin-bottom:3rem}
.news-box ul{list-style:none;margin:0;padding:0}
.news-box li{background:white;border:1px solid var(--line);padding:1rem;margin-bottom:1rem;border-radius:7px}
.news-box li .img{display:block;float:left;margin:0 1rem .5rem 0}
.news-box li::after{content:"";display:block;clear:both}
.news-box h3{margin:.2rem 0}
.service-links{display:grid;grid-template-columns:repeat(2,1fr);list-style:none;gap:12px;padding:0}
.service-links a{display:block;background:white;padding:1rem;border:1px solid var(--line);border-radius:6px}
table{max-width:100%;display:block;overflow:auto}
.site-footer{border-top:1px solid var(--line);background:white;padding:30px 0;text-align:center;font-size:.86rem}
.site-footer nav{justify-content:center}
.site-footer button,.map-choice{background:none;border:0;text-decoration:underline;color:var(--link);padding:0}
.cookie-banner{position:fixed;z-index:20;inset:auto 0 0;background:white;border-top:3px solid var(--accent);padding:18px max(22px,6vw);box-shadow:0 -6px 28px #211c1922;display:flex;justify-content:space-between;align-items:center;gap:24px;max-height:48vh;overflow:auto}
.cookie-banner h2{font-size:1.14rem;margin:0}
.cookie-banner p{margin:.3rem 0;font-size:.9rem}
.cookie-actions{display:flex;flex-wrap:wrap;gap:8px}
.cookie-actions button{color:var(--ink);border:1px solid #8e7a42;background:var(--button);border-radius:5px;padding:.35rem .75rem}
#cookie-panel{margin-top:.5rem}
.healpo-map{padding:1rem;background:#f3edd7;margin-bottom:1rem}
.healpo-map iframe{width:100%;height:360px;border:0}
@media(max-width:680px){.header-inner{align-items:flex-start;flex-direction:column;padding-block:20px;gap:5px}.site-header nav{gap:6px 15px}.home-grid,.service-links{grid-template-columns:1fr}.cookie-banner{align-items:flex-start;flex-direction:column;gap:10px}}

.site-header nav{position:relative}
.site-header nav.has-indicator a{text-decoration:none}
.menu-indicator{position:absolute;left:0;top:0;height:2px;background:var(--accent);pointer-events:none}
.menu-indicator.is-ready{transition:transform 360ms cubic-bezier(.18,.72,.24,1),width 360ms cubic-bezier(.18,.72,.24,1)}
@media(prefers-reduced-motion:reduce){.menu-indicator.is-ready{transition:none}}

.healpo-about-link,
.healpo-about-button .wp-block-button__link {
  display: inline-block;
  padding: .66rem 1.35rem;
  border-radius: 5px;
  background: var(--button);
  color: #17140a;
  font-weight: 650;
  text-decoration: none;
}
.healpo-about-link:hover,
.healpo-about-button .wp-block-button__link:hover {
  text-decoration: underline;
}

.healpo-icono-local{height:auto;object-fit:contain}

.healpo-service-cards { list-style: none; display: grid; gap: 18px; padding: 0; margin: 1.4rem 0 0; }
.healpo-service-card { display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: start; gap: clamp(14px, 2.3vw, 25px); position: relative; padding: clamp(16px, 3vw, 30px); background: #faf7ed; border: 1px solid #e4dac0; border-radius: 8px; }
.healpo-service-card:not(:last-child)::after { content: ""; position: absolute; inset: 100% 0 auto; margin-inline: auto; width: 1px; height: 19px; background: #b7a361; }
.healpo-service-card :is(h2, h3) { margin: 0 0 6px; font-size: clamp(1.05rem, 2vw, 1.35rem); }
.healpo-service-card p { margin: 0; color: #514640; }
.healpo-service-card a { display: inline-block; margin-top: .55rem; font-weight: 600; }
.healpo-service-card > img { grid-area: 1 / 1; }
.healpo-service-card > div { grid-area: 1 / 2; min-width: 0; }
.healpo-service-card > br { display: none; }

.healpo-contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; margin: 0 0 24px; }
.healpo-contact-card { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 14px; align-items: start; background: #faf7ed; border: 1px solid #e4dac0; border-radius: 8px; padding: clamp(14px, 2vw, 22px); }
.healpo-contact-card > img { grid-area: 1 / 1; }
.healpo-contact-card > div { grid-area: 1 / 2; min-width: 0; }
.healpo-contact-card > br { display: none; }
.healpo-contact-card h2 { margin: 0 0 8px; font-size: 1.1rem; }
.healpo-contact-card p { margin: 0; color: #514640; }
@media (max-width: 760px) { .healpo-contact-grid { grid-template-columns: 1fr; } }

.healpo-values-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.healpo-values-grid > .healpo-service-card::after { content: none; }
@media (max-width: 960px) { .healpo-values-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .healpo-values-grid { grid-template-columns: 1fr; } }

/* Match the full content width used by the divider above the values. */
.content article > ul.healpo-values-grid,
.content article > ul.healpo-service-cards--services { width: 100%; max-width: none; }

.healpo-page-banner { height: 250px; overflow: hidden; background: #422c22; }
.healpo-page-banner img {
  display: block;
  width: min(1240px, calc(100% - 2 * clamp(18px, 5vw, 96px)));
  height: 100%;
  margin-inline: auto;
  object-fit: cover;
  mask-image: linear-gradient(to right, transparent, #000 13%, #000 87%, transparent);
}
.healpo-page-banner--equipo img { object-position: center 56%; }
.healpo-page-banner--servicios img { object-position: center 39%; }
.healpo-page-banner--tecnologia img { object-position: center 53%; }
.healpo-page-banner--contacto img { object-position: center 34%; }
@media (max-width: 600px) { .healpo-page-banner { height: 160px; } }

/* Match the active Healpo palette in the two optional plugins. */
.healpo-boletin .healpo-boletin__link { background: var(--button); color: #17140a; }
.healpo-boletin .healpo-boletin__item { border-color: var(--line); }
.content .healpo-services { --hs-accent: var(--link); --hs-border: #e4dac0; }
.content .healpo-services .healpo-services__item { background: #faf7ed; }
.content .healpo-services__icon,
.content .healpo-services__number { background: #f1e9ca; }
.content .healpo-services__item:not(:last-child)::after { background: #b7a361; }

.hero :is(.primary, .secondary):is(:hover, :focus-visible),
.healpo-technology-provider .primary:is(:hover, :focus-visible),
.healpo-about-link:is(:hover, :focus-visible),
.healpo-about-button .wp-block-button__link:is(:hover, :focus-visible),
.healpo-boletin .healpo-boletin__link:is(:hover, :focus-visible),
.cookie-actions button:is(:hover, :focus-visible),
.site-footer button:is(:hover, :focus-visible),
.map-choice:is(:hover, :focus-visible),
.content .wp-block-button__link:is(:hover, :focus-visible) {
  background-color: #868068;
  color: #fff;
}

@media (min-width: 961px) {
  .home .content .healpo-services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home .content .healpo-services__item::after {
    display: none;
  }
}

@media (min-width: 961px) {
  .healpo-service-cards--services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .healpo-service-cards--services > .healpo-service-card::after {
    display: none;
  }
}

.healpo-technology-provider {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  margin-block: 3rem 1rem;
  overflow: hidden;
  border: 1px solid #e4dac0;
  border-radius: 8px;
  background: #faf7ed;
}
.healpo-technology-provider > img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}
.healpo-technology-provider__content { padding: clamp(22px, 4vw, 44px); }
.healpo-technology-provider__label {
  margin: 0 0 .45rem;
  color: var(--link);
  font-size: .85rem;
  font-weight: 700;
}
.healpo-technology-provider h2 { margin: 0 0 .6rem; }
.healpo-technology-provider .primary {
  display: inline-block;
  padding: .66rem 1.35rem;
  border-radius: 5px;
  font-weight: 650;
  text-align: center;
  text-decoration: none;
}

@media (max-width: 680px) {
  .healpo-technology-provider { grid-template-columns: minmax(0, 1fr); }
  .healpo-technology-provider > img { height: 160px; }
}
