/* Actualización visual del cliente · octubre 2026 */

/* Portada: la fotografía permanece visible y el texto tiene su propio espacio. */
.hero.hero-home{min-height:800px;height:100svh;max-height:1200px;padding:110px 0 140px;align-items:center;background:#f6f0e6}
.hero-picture{position:absolute;inset:0;display:block}
.hero.hero-home .hero-image{opacity:1!important;object-position:65% center;filter:saturate(1.08) contrast(1.025)}
.hero.hero-home .hero-overlay{background:linear-gradient(90deg,rgba(255,251,244,.91),rgba(255,251,244,.6) 34%,rgba(255,251,244,.04) 64%,transparent 80%)!important}
.hero.hero-home .hero-content{padding-top:20px}
.hero.hero-home .hero-copy{max-width:650px;width:54%}
.hero.hero-home h1{font-size:clamp(3.3rem,5.6vw,6.1rem);line-height:1.02;margin-bottom:24px;letter-spacing:-.055em}
.hero.hero-home h1>span{display:block}
.hero.hero-home h1 em{color:#029bcd;letter-spacing:-.06em}
.hero.hero-home .eyebrow{font-size:.68rem;letter-spacing:.15em;color:#087da5;max-width:100%}
.hero.hero-home .hero-copy>p{max-width:410px;color:#34546a;font-size:1.02rem;line-height:1.7;margin-bottom:26px}
.hero-actions{align-items:flex-start}
.hero-actions .btn{padding:14px 22px;font-size:.88rem;white-space:normal}
.hero-actions .btn-primary{background:linear-gradient(120deg,#087a9d,#064361);box-shadow:0 10px 24px #06436124}
.hero-actions .btn-primary:hover{background:linear-gradient(120deg,#086480,#03314a)}
.hero-actions .btn-glass{background:#fffdf3eb;border:1px solid #ffffffd9;box-shadow:0 5px 20px #05375212;color:#17485d}
.hero.hero-home .hero-trust{position:absolute;z-index:2;left:0;right:0;bottom:30px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;margin:0;padding:28px max(calc((100vw - 850px)/2),24px) 5px;text-align:center;color:#3e5665;background:linear-gradient(0deg,#fffaf2f2,#fffaf2b8 65%,transparent);font-size:.78rem;line-height:1.4;font-weight:500}
.hero-trust>span{display:flex;flex-direction:column;align-items:center;gap:7px;padding:4px 14px;border-right:1px solid #a68c6b50}
.hero-trust>span:last-child{border-right:0}
.hero.hero-home .hero-trust i{display:grid;place-items:center;margin:0;width:38px;height:38px;border-radius:50%;color:#286882;border:1px solid #b9b09c88;background:#fffdf67a;font-size:1.25rem}
.hero-coverage{position:absolute;z-index:2;bottom:0;left:0;right:0;display:block;text-align:center;padding:7px 10px;color:#526477;background:#fffaf2f2;font-size:.64rem;line-height:1.4}
.page-inicio .site-header:not(.scrolled){background:linear-gradient(180deg,#fffdf7e0,#fffdf788 75%,transparent);box-shadow:none;backdrop-filter:none}
.home-care-photo>img,.visual-frame img,.journal-card>img,.gallery-open img{filter:saturate(1.2) contrast(1.05)}

/* Fotografías, acentos de color y una ficha accesible por terapia. */
.services{background:linear-gradient(150deg,#edf8fc 0%,#f4f9f4 55%,#fff9ed 100%)}
.theme-citrus{--service-accent:#b96a08;--service-tint:#fff4da}
.theme-ocean{--service-accent:#077ba9;--service-tint:#e8f7ff}
.theme-botanical{--service-accent:#237a50;--service-tint:#edf9ec}
.theme-rose{--service-accent:#ab4770;--service-tint:#fff0f5}
.theme-lime{--service-accent:#638223;--service-tint:#f3f9df}
.theme-indigo{--service-accent:#4f58aa;--service-tint:#f0f1ff}
.theme-aqua{--service-accent:#0d858a;--service-tint:#e6f8f5}
.theme-sand{--service-accent:#9a7346;--service-tint:#fff4e7}
.theme-sky{--service-accent:#1874a8;--service-tint:#eaf6ff}
.service-card.service-card-visual{padding:0;border:1px solid #ffffff;border-top:0;background:#fff;backdrop-filter:none;box-shadow:0 10px 35px #163d5910;border-radius:24px}
.service-card-visual:hover{transform:translateY(-6px);box-shadow:0 20px 45px #123d641c}
.service-card-visual:focus-within{outline:3px solid var(--service-accent);outline-offset:4px}
.service-open{height:100%;display:flex;flex-direction:column;color:inherit;outline-offset:-5px}
.service-open:hover{color:inherit}
.service-visual{position:relative;isolation:isolate;height:210px;overflow:hidden;background:var(--service-tint)}
.service-visual>img{display:block;width:100%;height:100%;object-fit:cover;filter:saturate(1.06) contrast(1.025);transition:transform .45s ease}
.service-open:hover .service-visual>img{transform:scale(1.045)}
.service-visual:after{content:"";position:absolute;inset:0;z-index:0;background:linear-gradient(180deg,#00233614,transparent 35%,#002336b8)}
.service-card-visual .service-icon{position:absolute;top:18px;left:18px;z-index:1;width:46px;height:46px;margin:0;border-radius:14px;font-size:1.45rem;color:var(--service-accent);background:var(--service-tint);box-shadow:0 5px 15px #173a5c16}
.service-card-visual .card-number{z-index:1;right:18px;top:18px;color:#fff;font:700 .9rem var(--sans);border:1px solid #ffffff80;border-radius:50%;width:32px;height:32px;display:grid;place-items:center;background:#16395640}
.service-tag{position:absolute;z-index:1;bottom:17px;left:22px;right:18px;color:#fff;font-size:.68rem;font-weight:700;letter-spacing:.035em;line-height:1.5}
.service-card-copy{display:flex;flex-direction:column;align-items:flex-start;flex:1;padding:25px 25px 26px;background:linear-gradient(130deg,#fff 60%,var(--service-tint))}
.service-card-copy h3{color:#103650;font-size:1.15rem;line-height:1.4;margin-bottom:10px}
.service-card-copy p{font-size:.91rem;color:#526c7d;line-height:1.75;min-height:0;margin-bottom:20px}
.service-card-copy .card-link{display:flex;align-items:center;justify-content:space-between;gap:14px;width:100%;color:var(--service-accent);font-size:.88rem}
.service-card-copy .card-link>i{display:grid;place-items:center;border:1px solid currentColor;width:31px;height:31px;border-radius:50%}
.services-footnote{max-width:780px;margin:32px auto 0;color:#586f7e;font-size:.79rem;line-height:1.7;text-align:center}
.services-footnote>i{color:#137696}

/* Las fichas comparten el diálogo existente de la web. */
#contentDialog{overscroll-behavior:contain;scrollbar-width:thin}
.dialog-close{position:sticky;top:0;z-index:5;display:block;margin:-36px -16px -2px auto;box-shadow:0 3px 14px #082e5e24}
.service-detail-image{position:relative;height:175px;border-radius:16px;overflow:hidden;margin:8px 0 24px;background:var(--service-tint)}
.service-detail-image>img{width:100%;height:100%;object-fit:cover;filter:saturate(1.06) contrast(1.025);border-radius:0}
.service-detail-image>span{position:absolute;bottom:15px;left:16px;display:grid;place-items:center;width:48px;height:48px;border-radius:15px;background:var(--service-tint);color:var(--service-accent);font-size:1.6rem}
.service-detail .section-kicker{color:var(--service-accent);font-size:.66rem;margin:0}
.service-detail h2{font-size:2.4rem;line-height:1.12;margin:10px 0 18px}
.service-detail h3{font-size:1rem;line-height:1.5;margin:23px 0 14px}
.service-detail>p{color:#50697a;font-size:.94rem;line-height:1.75}
.service-benefits{list-style:none;margin:0;padding:0;display:grid;gap:11px}
.service-benefits li{display:flex;gap:10px;align-items:flex-start;font-size:.92rem;line-height:1.7}
.service-benefits i{display:grid;place-items:center;flex:0 0 24px;height:24px;background:var(--service-tint);color:var(--service-accent);border-radius:50%;margin-top:2px}
.service-detail .service-note{display:flex;gap:10px;padding:16px;background:#f1f6f9;border-radius:12px;font-size:.79rem;line-height:1.7;margin:24px 0}
.service-note>i{color:#39758c;font-size:1.15rem}
.service-detail-actions{display:flex;flex-wrap:wrap;gap:12px}
.service-detail-actions .btn{font-size:.84rem;line-height:1.5;padding:13px 19px}
.btn-service-contact{background:#ecf8f0;color:#216344}
.btn-service-contact:hover{background:#d9f1e3;color:#174b32}
.service-sources{margin:22px 0 0;color:#5f7685;font-size:.75rem}
.service-sources summary{cursor:pointer}
.service-sources ul{padding-left:20px;margin:12px 0 0}
.service-sources a{color:#1a6d95;overflow-wrap:anywhere}

/* Información de contacto visible en todas las páginas. */
.footer-information{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px;border-top:1px solid #ffffff24;padding-top:30px;margin-top:32px}
.footer-information>div{display:flex;flex-direction:column;align-items:flex-start;gap:9px;min-width:0}
.footer-information strong{color:#fff;font-size:.98rem;margin-bottom:3px}
.footer-information a{margin:0;font-size:.88rem;overflow-wrap:anywhere}
.footer-information i{color:#7bd8ff}
.footer-bottom{margin-top:30px}

/* El menú mantiene su propio fondo opaco incluso en la parte superior de la portada. */
.navbar-toggler .menu-icon-close{display:none}
.navbar-toggler[aria-expanded="true"] .menu-icon-open{display:none}
.navbar-toggler[aria-expanded="true"] .menu-icon-close{display:inline-block}
@media(max-width:991.98px){
  .site-header .navbar>.container{position:relative}
  .site-header #mainNav{position:absolute;left:12px;right:12px;top:calc(100% + 8px);padding:0 18px;background:#fffdf8;border:1px solid #dbe6ed;border-radius:18px;box-shadow:0 20px 55px #082e5e30;max-height:calc(100svh - 100px);overflow-y:auto;overscroll-behavior:contain;backdrop-filter:none}
  .site-header #mainNav .navbar-nav{padding:12px 0 16px;gap:2px}
  .site-header #mainNav .nav-link{display:flex;align-items:center;gap:8px;color:#153d59;padding:10px 13px!important;border-radius:10px;font-size:.94rem}
  .site-header #mainNav .nav-link:hover,.site-header #mainNav .nav-link.active{background:#eaf5fa;color:#077bab}
  .site-header #mainNav .nav-item:last-child{padding:8px 8px 2px}
  .site-header #mainNav .nav-item:last-child>.btn{display:block;width:100%;padding:13px 18px}
  .site-header:has(#mainNav.show),.site-header:has(#mainNav.collapsing){background:#fffdf8;box-shadow:0 5px 20px #173d5714;backdrop-filter:none}
}

@media(min-width:768px) and (max-width:1199.98px){
  .hero.hero-home .hero-copy{width:59%;max-width:560px}
  .hero.hero-home h1{font-size:clamp(3.1rem,6.2vw,4.65rem)}
  .hero.hero-home .hero-copy>p{max-width:340px}
  .hero-actions{flex-direction:column}
}

@media(max-width:767.98px){
  .hero.hero-home{display:block;min-height:740px;height:100svh;max-height:none;padding:0 0 130px}
  .hero.hero-home .hero-image{object-position:75% center;filter:saturate(1.08) contrast(1.025)}
  .hero.hero-home .hero-overlay{background:linear-gradient(90deg,#fffaf334,transparent 62%),linear-gradient(0deg,#fffaf285,transparent 32%)!important}
  .hero.hero-home .hero-content{padding-top:clamp(124px,17svh,160px);padding-left:24px;padding-right:16px}
  .hero.hero-home .hero-copy{width:65%;max-width:390px}
  .hero.hero-home h1{font-size:clamp(1.8rem,8.5vw,3.55rem);line-height:1.03;margin-bottom:18px;letter-spacing:-.055em}
  .hero.hero-home .eyebrow{font-size:clamp(.5rem,1.6vw,.65rem);letter-spacing:.1em;gap:5px;line-height:1.6;margin-bottom:17px}
  .hero.hero-home .hero-copy>p{max-width:95%;font-size:clamp(.75rem,2.9vw,.95rem);line-height:1.7;margin-bottom:22px;color:#2d5266}
  .hero-actions{flex-direction:column;gap:11px!important}
  .hero-actions .btn{font-size:clamp(.66rem,2.65vw,.85rem);padding:12px 16px;max-width:100%;line-height:1.5;display:inline-flex;align-items:center;gap:9px;justify-content:center}
  .hero.hero-home .hero-social{display:none}
  .hero.hero-home .hero-trust{bottom:26px;padding:35px 14px 6px;font-size:.66rem;line-height:1.4;grid-template-columns:repeat(3,minmax(0,1fr));gap:0}
  .hero-trust>span{padding:3px 6px;gap:6px}
  .hero.hero-home .hero-trust i{width:31px;height:31px;font-size:1.08rem}
  .hero-coverage{font-size:.58rem;padding-bottom:7px}
  .hero.hero-home .hero-actions .btn-glass{background:#fffdf2ed}
  .whatsapp-float{right:16px;bottom:18px;width:52px;height:52px;box-shadow:0 8px 25px #0a703957}
  .page-inicio .whatsapp-float{bottom:124px}
  .back-top{right:21px;bottom:82px}
  .service-visual{height:215px}
  .footer-information{grid-template-columns:1fr 1fr;gap:26px 16px}
  .footer-information>div:last-child{grid-column:1/-1}
}

@media(max-width:399.98px){
  .hero.hero-home .hero-content{padding-left:19px;padding-top:128px}
  .hero.hero-home .hero-copy{width:67%}
  .hero.hero-home .hero-copy>p{max-width:94%}
  .hero-actions .btn{padding:11px 13px}
  .service-card-copy{padding:23px}
  .service-card-copy h3{font-size:1.12rem}
  .service-detail h2{font-size:1.85rem}
  .service-detail-image{height:145px}
  .service-detail-actions{flex-direction:column}
  .footer-information{grid-template-columns:1fr}
}

@media(prefers-reduced-motion:reduce){
  .service-card-visual:hover{transform:none}
  .service-open:hover .service-visual>img{transform:none}
}
