
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--navy); font: 1rem/1.5 var(--font); background: var(--page); }
a { color: inherit; text-decoration: none; }
h1, h2, p { margin: 0; }
img { display: block; max-width: 100%; }
svg { flex: none; width: 1.2rem; height: 1.2rem; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #0082c8; outline-offset: 4px; }

/* Photo, contrast wash and vector ribbons are separate responsive layers. */
.hero { position: relative; isolation: isolate; min-height: clamp(29rem, 32vw, 35rem); overflow: hidden; background: linear-gradient(90deg, #e4f3ff 65%, #124574 100%); }
.hero-photo, .hero-wash, .ribbons { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-photo { z-index: -3; width: 94%; mask-image: linear-gradient(90deg, #000 91%, transparent); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 54% 51%; }
.hero-wash { z-index: -2; background: linear-gradient(90deg, #f9fcfff2 1%, #fbfdffeb 23%, #f5fbffce 34%, #eaf7ff28 50%, transparent 61%), linear-gradient(0deg, #dcf5ffbb 0%, transparent 38%); }
.ribbons { z-index: -1; pointer-events: none; overflow: visible; }
.ribbon-back { opacity: .83; transform-origin: 24% 12%; }
.ribbon-front { transform-origin: 73% 90%; }
.ribbon-glint { stroke-dasharray: 2.2 97.8; stroke-dashoffset: 20; opacity: 0; filter: drop-shadow(0 0 5px #42f0ff); }
.hero-inner { position: relative; display: flex; align-items: center; min-height: inherit; padding: 2rem clamp(1rem, 3.6vw, 3.9rem) 3.55rem; }
.hero-copy { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(3.45rem, 5.92vw, 6.2rem); font-weight: 800; line-height: .98; letter-spacing: -.064em; word-spacing: .055em; }
.hero h1 strong { display: block; margin-bottom: -.16em; padding-bottom: .16em; width: fit-content; color: #0069a6; background: linear-gradient(103deg, #064187 0%, #008ac0 85%); background-clip: text; -webkit-text-fill-color: transparent; }
.hero-copy > p { margin-top: 1rem; font-size: clamp(1.17rem, 1.92vw, 1.95rem); font-weight: 700; line-height: 1.19; letter-spacing: -.034em; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem; margin-top: clamp(1.35rem, 2.9vw, 2.65rem); }
.hero-actions .btn { min-height: clamp(2.85rem, 3.6vw, 3.65rem); padding-inline: clamp(.7rem, 1.55vw, 1.55rem); font-size: clamp(.81rem, 1.2vw, 1.16rem); }
.hero-actions .btn svg { width: clamp(1.05rem, 1.53vw, 1.55rem); height: clamp(1.05rem, 1.53vw, 1.55rem); }
.anniversary { position: absolute; top: clamp(1.3rem, 3.1vw, 3.15rem); right: .5rem; color: white; text-align: center; text-shadow: 0 2px 5px #07163c, 0 4px 22px #07163cbd; line-height: .9; }
.anniversary > div { display: flex; position: relative; align-items: flex-end; justify-content: center; font-style: italic; }
.anniversary > div::after { content: ''; position: absolute; bottom: -.72rem; left: 4%; width: 85%; height: 1.15rem; border-radius: 0 0 70% 55%; border-bottom: .43rem solid #21def7; transform: rotate(-5deg); filter: drop-shadow(0 2px 5px #003c89); }
.anniversary strong { font-size: clamp(3.55rem, 7vw, 7.1rem); letter-spacing: -.12em; font-weight: 800; }
.anniversary span { margin: 0 0 .03em -.09em; font-size: clamp(1.12rem, 2.35vw, 2.3rem); font-weight: 800; }
.anniversary p { margin-top: .9rem; font-size: clamp(.76rem, 1.1vw, 1.08rem); font-weight: 800; line-height: 1.13; }
.contact-rail { position: absolute; z-index: 2; top: 57%; right: clamp(1rem, 2.25vw, 2rem); display: grid; justify-items: center; gap: .08rem; padding: .38rem; border: 1px solid white; border-radius: 1.15rem; background: #fbfdfff7; box-shadow: 0 .52rem 1.25rem #06498031; }
.contact-rail a { display: grid; width: 2.48rem; height: 2.48rem; place-items: center; border-radius: .65rem; color: #075097; }
.contact-rail a:hover { background: #dbeefa; }
.contact-rail svg { width: 1.38rem; height: 1.38rem; }
.contact-rail .wa { color: #007b4d; }
.motion { display: grid; place-items: center; border-radius: 50%; position: absolute; z-index: 3; right: clamp(1.1rem, 2.55vw, 2.3rem); bottom: 1.6rem; width: 2.4rem; height: 2.4rem; color: #0b4278; border: 1px solid #bbddf6; background: #f5fbfff2; }
.motion svg { display: block; width: 1rem; height: 1rem; }

@keyframes float-ribbon { 0%, 100% { transform: translateY(0) scaleX(1); } 50% { transform: translateY(-12px) scaleX(1.018); } }
@keyframes run-light { 0% { stroke-dashoffset: 102; opacity: 0; } 13%, 86% { opacity: .85; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .with-motion .ribbon-front { animation: float-ribbon 10s ease-in-out infinite; }
  .with-motion .ribbon-back { animation: float-ribbon 13s ease-in-out infinite reverse; }
  .with-motion .ribbon-glint { animation: run-light 8s 1s linear infinite; }
  .with-motion .hero-copy { animation: enter .65s cubic-bezier(.22,.72,.22,1) both; }
  .with-motion .service { animation: enter .55s .12s both; }
  .with-motion .service:nth-of-type(2) { animation-delay: .19s; }
  .with-motion .service:nth-of-type(3) { animation-delay: .26s; }
  .with-motion .service:nth-of-type(4) { animation-delay: .33s; }
}
.motion-paused :is(.ribbon-front, .ribbon-back, .ribbon-glint) { animation-play-state: paused; }

/* Feature cards preserve their text contrast regardless of the source photo. */
.services { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; margin-top: -1.05rem; scroll-margin-top: 1.6rem; }
.service { position: relative; isolation: isolate; display: block; min-height: clamp(10rem, 12vw, 12.5rem); overflow: hidden; padding: clamp(.8rem, 1.62vw, 1.55rem) clamp(.75rem, 1.55vw, 1.55rem) 2.55rem; border: 2px solid #fff; border-radius: clamp(.9rem, 1.8vw, 1.7rem); background: #d9f3fd; box-shadow: 0 .52rem 1.1rem #034e9414; }
.service img { position: absolute; top: 0; right: 0; z-index: -2; width: 61%; height: 100%; object-fit: cover; object-position: var(--position, center); mask-image: linear-gradient(90deg, transparent, #000 37%); transition: scale .38s; }
.service::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #e9f7ffff 0%, #e3f6fff7 38%, #d9f3fcc4 58%, #d9f2fa24 77%, transparent 87%), linear-gradient(0deg, #70d8f6a6, transparent 48%); }
.service:hover img { scale: 1.045; }
.service-exequiales { color: #fff; background: #054786; --position: 79% center; }
.service-exequiales::before { background: linear-gradient(90deg, #063c79 0%, #07568edf 52%, #0b82bc2e 78%, transparent 88%); }
.service-gerontologia { --position: 49% center; }
.service-mascotas { --position: 43% center; }
.service-exequiales img { object-position: 75% center; }
.service-gerontologia img { object-position: 61% center; }
.service-mascotas img { object-position: 57% center; }
.service-convenios { --position: 47% center; }
.service h2 { display: flex; align-items: center; gap: clamp(.38rem, 1vw, .95rem); font-size: clamp(1rem, 1.7vw, 1.65rem); font-weight: 800; line-height: 1.05; letter-spacing: -.045em; }
.service h2 svg { width: clamp(1.65rem, 3.1vw, 3rem); height: clamp(1.65rem, 3.1vw, 3rem); }
.service-exequiales h2 span { max-width: 8.5ch; }
.service p { max-width: 17ch; margin-top: .65rem; font-size: clamp(.84rem, 1.12vw, 1.08rem); font-weight: 650; line-height: 1.18; }
.service-arrow { position: absolute; right: 27%; bottom: .58rem; display: grid; place-items: center; width: 2.15rem; height: 2.15rem; border-radius: 50%; background: white; color: #0751ac; box-shadow: 0 2px 8px #0d386332; }
.service-arrow svg { width: 1rem; height: 1rem; stroke-width: 2.2; }
.service:hover .service-arrow { background: #d8f4ff; }

.assistance { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .65rem clamp(1rem, 3.8vw, 4rem); min-height: clamp(6.75rem, 8vw, 8.6rem); margin-top: clamp(1.25rem, 2vw, 2rem); padding: 1rem 1.7rem; border: 1px solid #26d3f8; border-radius: 2.2rem 4.6rem 4.6rem 2.2rem; background: linear-gradient(113deg, #062552 0%, #034a92 65%, #006eab 93%, #61ddff 113%); color: #fff; box-shadow: 0 .7rem 1.4rem #07518e23; scroll-margin-top: 1rem; }
.assist-art { position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 10% 110%, #09d4f890, transparent 33%), radial-gradient(ellipse at 90% 125%, #00caffbf, transparent 37%); }
.assist-art::after { content: ''; position: absolute; left: -7%; bottom: -140%; width: 115%; height: 174%; border-radius: 50%; border-top: 2px solid #82ecff87; box-shadow: 0 -4px 20px #53cfff65; transform: rotate(-3deg); }
.assist-heading { display: flex; align-items: center; gap: clamp(.65rem, 1.65vw, 1.5rem); }
.assist-heading > span { display: grid; place-items: center; padding-right: clamp(.65rem, 1.65vw, 1.5rem); border-right: 1px solid #b9e9ff9c; }
.assist-heading svg { width: clamp(1.8rem, 3.9vw, 3.7rem); height: clamp(1.8rem, 3.9vw, 3.7rem); }
.assist-heading h2 { font-size: clamp(1.2rem, 2.15vw, 2rem); font-weight: 800; line-height: 1.08; letter-spacing: -.045em; }
.assist-heading p { margin-top: .25rem; color: #e1f4ff; font-size: clamp(.83rem, 1.2vw, 1.1rem); }
.assist-call { display: inline-flex; align-items: center; justify-content: center; gap: .65rem; padding: .24rem clamp(.8rem, 1.7vw, 1.7rem); min-height: 2.88rem; border: 2px solid #47e1fa; border-radius: 5rem; background: #074882; box-shadow: 0 0 1rem #20daf364; font-size: clamp(1.35rem, 2.6vw, 2.6rem); font-weight: 800; line-height: 1.1; white-space: nowrap; }
.assist-call:hover { background: #07335e; }
.assist-call svg { width: clamp(1.1rem, 2vw, 2.15rem); height: clamp(1.1rem, 2vw, 2.15rem); }
.assist-wa { display: inline-flex; align-items: center; min-height: 2.68rem; gap: .35rem; font-size: .88rem; font-weight: 800; }
.assist-wa:hover { text-decoration: underline; }

.shortcuts { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: .25rem 1.25rem; padding-block: 1.6rem; }
.shortcuts strong { font-size: .77rem; letter-spacing: .09em; text-transform: uppercase; color: #345d80; }
.shortcuts a { display: flex; align-items: center; gap: .35rem; min-height: 2.75rem; color: #075095; font-size: .84rem; font-weight: 800; }
.shortcuts svg, .results svg { width: .95rem; height: .95rem; }
.shortcuts a:hover, .footer a:hover { text-decoration: underline; }

/* Content and account shortcuts below the V3 presentation hero. */
.home-about { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); align-items: center; gap: clamp(1.4rem, 5vw, 5.5rem); padding-block: clamp(2rem, 5vw, 5rem); border-top: 1px solid #d8e9f9; }
.home-about img { width: 100%; height: auto; aspect-ratio: 1.75; object-fit: cover; border-radius: clamp(.85rem, 2vw, 1.8rem); }
.home-kicker { margin-bottom: .35rem; color: #086098; font-size: .75rem; font-weight: 800; letter-spacing: .105em; text-transform: uppercase; }
.home-about h2, .home-resources h2, .home-section-head h2 { font-size: clamp(1.75rem, 3.3vw, 3.35rem); font-weight: 800; letter-spacing: -.05em; line-height: 1.08; }
.home-about h2 + p, .home-resources h2 + p { max-width: 49ch; margin-top: .7rem; color: #37536f; }
.home-actions { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.15rem; }
.home-resources { padding-block: clamp(1.8rem, 3.8vw, 3.8rem); background: linear-gradient(115deg, #e1f3fe, #d6e9ff); scroll-margin-top: 1rem; }
.home-resource-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr); align-items: center; gap: 1.2rem 2.5rem; }
.home-resources-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.home-resources-links a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .6rem; min-height: 3rem; padding: .5rem .7rem; border: 1px solid #b8d6f1; border-radius: .6rem; background: #ffffffbf; color: #0a497c; font-size: .85rem; font-weight: 800; }
.home-resources-links a:hover { background: #fff; border-color: #80b8e5; }
.home-resources-links svg { width: 1rem; height: 1rem; }
.home-partners, .home-news { padding-block: clamp(1.7rem, 4vw, 4rem); }
.home-partners + .home-news { border-top: 1px solid #d8e9f9; }
.home-section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: .75rem; margin-bottom: 1.15rem; }
.home-partner-list { display: flex; flex-wrap: wrap; gap: .55rem; padding: 0; margin: 0; list-style: none; }
.home-partner-list a { display: grid; place-items: center; min-width: 6rem; min-height: 3.8rem; padding: .5rem .8rem; border-radius: .62rem; border: 1px solid #d0e3f3; background: #fff; color: #154d7b; font-size: .86rem; font-weight: 800; }
.home-partner-list a:hover { border-color: #80b8e5; }
.home-partner-list img { width: auto; max-width: 8.4rem; height: 2.4rem; object-fit: contain; }
.home-news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.home-news-card { overflow: hidden; border: 1px solid #d0e3f3; border-radius: .85rem; background: #fff; }
.home-news-card img { width: 100%; aspect-ratio: 2.25; object-fit: contain; background: #eaf4ff; }
.home-news-card > div { padding: .95rem; }
.home-news-card time { color: #335e82; font-size: .77rem; font-weight: 700; }
.home-news-card h3 { margin: .2rem 0 .35rem; line-height: 1.25; overflow-wrap: anywhere; }
.home-news-card a:hover { text-decoration: underline; }
.home-news-card p, .home-empty { color: #37536f; font-size: .9rem; }
.home-empty { padding: 1.1rem; border: 1px solid #d0e3f3; border-radius: .7rem; background: #fff; }

/* Service detail preview. */
.dialog-icon { display: inline-grid; place-items: center; width: 2.9rem; height: 2.9rem; margin-bottom: .7rem; border-radius: .78rem; background: #e4f3ff; color: var(--blue); }
.dialog-icon svg { width: 1.6rem; height: 1.6rem; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.1rem; }

@media (max-width: 62rem) {
  .hero-inner { padding-inline: 1rem; }
  .hero-wash { background: linear-gradient(90deg, #fafdfefa 0%, #f7fbfff0 27%, #f5fbffba 41%, #eaf7ff16 61%, transparent 68%), linear-gradient(0deg, #dcf5ffa8, transparent 35%); }
  .service h2 { font-size: 1.06rem; }
}

@media (max-width: 47.5rem) {
  .hero { display: grid; grid-template-rows: auto clamp(13rem, 47vw, 19rem); min-height: 0; background: linear-gradient(#f7fcff, #e3f5ff); }
  .hero-inner { display: contents; }
  .hero-copy { grid-row: 1; width: var(--wrap); margin: 0 auto; padding: 1.65rem 0 .9rem; }
  .hero h1 { font-size: clamp(2.96rem, 11.5vw, 4.75rem); }
  .hero-copy > p { margin-top: .65rem; font-size: clamp(1.05rem, 3.65vw, 1.45rem); }
  .desktop-break { display: none; }
  .hero-actions { gap: .38rem; margin-top: .92rem; }
  .hero-actions .btn { font-size: .78rem; min-height: 2.7rem; }
  .hero-actions .primary svg:last-child { display: none; }
  .hero-photo { grid-row: 2; inset: 0; width: 100%; mask-image: none; }
  .hero-photo img { object-position: 50% 40%; }
  .hero-wash, .ribbons { grid-row: 2; }
  .hero-wash { background: linear-gradient(180deg, #e7f6ff 0%, #e7f6ff64 13%, transparent 31%, transparent 76%, #d6f3fc9d 100%); }
  .ribbon-back { display: none; }
  .anniversary { top: auto; right: .95rem; bottom: 1.95rem; padding: .42rem .45rem .55rem; border-radius: .68rem; background: #052856db; }
  .anniversary strong { font-size: 2.75rem; }
  .anniversary span { font-size: .9rem; }
  .anniversary > div::after { bottom: -.33rem; height: .7rem; border-bottom-width: .19rem; }
  .anniversary p { margin-top: .5rem; font-size: .62rem; }
  .contact-rail { display: none; }
  .motion { bottom: 1rem; left: 1rem; width: 2.75rem; height: 2.75rem; }
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .52rem; margin-top: -.5rem; }
  .service { min-height: 9.45rem; padding: .62rem .6rem 2.25rem; }
  .service h2 { min-height: 2.25rem; gap: .32rem; font-size: clamp(.9rem, 3.25vw, 1.2rem); }
  .service h2 svg { width: 1.35rem; height: 1.35rem; }
  .service p { max-width: 15ch; margin-top: .44rem; font-size: .75rem; }
  .service img { width: 56%; }
  .service::before { background: linear-gradient(90deg, #e9f7ff 20%, #e3f6fff0 54%, #def4fc50 84%, transparent), linear-gradient(0deg, #70d8f677, transparent 55%); }
  .service-exequiales::before { background: linear-gradient(90deg, #063c79 18%, #07568ef5 57%, #0b82bc2e 90%, transparent); }
  .service-arrow { right: .55rem; bottom: .39rem; width: 1.65rem; height: 1.65rem; }
  .assistance { justify-content: flex-start; padding: .85rem; gap: .65rem .8rem; border-radius: 1.15rem; }
  .assist-heading { width: 100%; }
  .assist-call { margin-inline-start: .12rem; }
  .home-about, .home-resource-grid, .home-news-grid { grid-template-columns: 1fr; }
  .home-about img { max-height: 18rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .service img, .site-popup { transition: none; }
}
