:root {
  --navy: #18344d;
  --navy-deep: #102638;
  --ink: #23333e;
  --muted: #71808a;
  --cream: #fbfaf7;
  --gold: #c78a27;
  --gold-light: #e8c477;
  --line: #e7e4dc;
  --teal: #3e7379;
  --white: #fff;
  --shadow: 0 20px 55px rgba(24, 52, 77, .11);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.6; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
.container { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.section-pad { padding: 112px 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 30; padding: 10px 16px; background: var(--gold); color: var(--navy-deep); font-weight: 800; border-radius: 0 0 8px 8px; }
.skip-link:focus { top: 0; }

.site-header { position: sticky; top: 0; z-index: 20; background: rgba(251, 250, 247, .9); border-bottom: 1px solid rgba(231, 228, 220, .82); backdrop-filter: blur(16px); }
.nav-wrap { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { width: 158px; flex: 0 0 auto; }
.brand img { width: 100%; height: 58px; object-fit: contain; object-position: left center; }
.primary-nav { display: flex; align-items: center; gap: 24px; font-size: .78rem; font-weight: 700; letter-spacing: .015em; color: #51606a; }
.primary-nav a:not(.nav-cta) { transition: color .25s ease; }
.primary-nav a:not(.nav-cta):hover, .primary-nav a:not(.nav-cta):focus-visible { color: var(--gold); }
.nav-cta { padding: 12px 17px; color: var(--white); background: var(--navy); border-radius: 99px; box-shadow: 0 8px 20px rgba(24, 52, 77, .15); transition: transform .25s ease, background .25s ease; }
.nav-cta:hover, .nav-cta:focus-visible { background: var(--gold); color: var(--navy-deep); transform: translateY(-2px); }
.menu-toggle { display: none; border: 0; background: transparent; padding: 8px; cursor: pointer; }
.menu-toggle > span:not(.sr-only) { width: 23px; height: 2px; display: block; margin: 4px; background: var(--navy); transition: transform .2s ease; }

.hero { position: relative; overflow: hidden; min-height: 650px; display: flex; align-items: center; background: var(--cream); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: 80px; }
.hero-copy { padding: 34px 0 44px; }
.eyebrow { display: flex; align-items: center; gap: 11px; margin: 0 0 22px; color: var(--gold); font-size: .7rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow-line { width: 30px; height: 1px; display: inline-block; background: currentColor; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--navy); font-family: Georgia, "Times New Roman", serif; font-weight: 500; line-height: 1.08; }
h1 { max-width: 650px; margin-bottom: 24px; font-size: clamp(3.3rem, 6vw, 5.8rem); letter-spacing: -.055em; }
h2 { margin-bottom: 18px; font-size: clamp(2.5rem, 4vw, 4.2rem); letter-spacing: -.045em; }
.hero-lead { max-width: 495px; margin-bottom: 32px; color: var(--muted); font-size: 1.1rem; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 13px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 49px; padding: 13px 20px; border: 1px solid transparent; border-radius: 99px; font-size: .83rem; font-weight: 800; transition: transform .25s ease, background .25s ease, color .25s ease, border-color .25s ease; }
.button:hover, .button:focus-visible { transform: translateY(-2px); }
.button-primary { background: var(--navy); color: var(--white); box-shadow: 0 10px 25px rgba(24, 52, 77, .17); }
.button-primary:hover, .button-primary:focus-visible { background: var(--gold); color: var(--navy-deep); }
.button-quiet { color: var(--navy); background: transparent; border-color: var(--line); }
.button-quiet:hover, .button-quiet:focus-visible { border-color: var(--gold-light); color: var(--gold); }
.button-outline { border-color: var(--gold); color: var(--navy); margin-top: 13px; }
.button-outline:hover, .button-outline:focus-visible { background: var(--gold); color: var(--navy-deep); }
.button-light { border-color: rgba(255, 255, 255, .4); color: var(--white); margin-top: 13px; }
.button-light:hover, .button-light:focus-visible { background: var(--gold-light); color: var(--navy-deep); border-color: var(--gold-light); }
.hero-note { display: flex; align-items: center; gap: 9px; margin-top: 34px; color: var(--navy); font-size: .76rem; font-weight: 800; letter-spacing: .03em; }
.note-mark { color: var(--gold); font-size: 1.1rem; }
.hero-visual { position: relative; min-height: 500px; display: grid; place-items: center; }
.hero-visual::before { content: ""; position: absolute; width: min(455px, 80vw); aspect-ratio: 1; border: 1px solid rgba(199, 138, 39, .33); border-radius: 50%; transform: rotate(-18deg); }
.hero-visual::after { content: ""; position: absolute; width: min(360px, 68vw); aspect-ratio: 1; border: 1px dashed rgba(62, 115, 121, .35); border-radius: 50%; transform: rotate(31deg); }
.logo-frame { position: relative; z-index: 1; width: min(390px, 76vw); padding: 27px; background: rgba(255, 255, 255, .83); border: 1px solid rgba(199, 138, 39, .62); box-shadow: var(--shadow); }
.logo-frame::before { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(24, 52, 77, .13); pointer-events: none; }
.logo-frame img { position: relative; z-index: 1; width: 100%; aspect-ratio: 1; object-fit: contain; }
.frame-corner { position: absolute; z-index: 2; width: 38px; height: 38px; border-color: var(--gold); border-style: solid; }
.frame-corner-tl { top: -7px; left: -7px; border-width: 2px 0 0 2px; }
.frame-corner-br { right: -7px; bottom: -7px; border-width: 0 2px 2px 0; }
.visual-label { position: absolute; z-index: 2; padding: 7px 12px; background: var(--navy); color: var(--white); font-size: .65rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; box-shadow: 0 8px 18px rgba(24, 52, 77, .14); }
.label-top { top: 47px; right: 0; }
.label-bottom { bottom: 47px; left: 0; background: var(--gold); color: var(--navy-deep); }
.hero-glow { position: absolute; border-radius: 50%; filter: blur(1px); pointer-events: none; }
.hero-glow-one { width: 420px; height: 420px; top: -220px; right: -100px; background: rgba(232, 196, 119, .18); }
.hero-glow-two { width: 260px; height: 260px; bottom: -150px; left: -100px; background: rgba(62, 115, 121, .1); }

.info-rail { background: var(--navy); color: var(--white); }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.info-item { display: flex; align-items: center; gap: 14px; padding: 25px 28px; border-right: 1px solid rgba(255, 255, 255, .13); }
.info-item:first-child { padding-left: 0; }
.info-item:last-child { border-right: 0; }
.info-icon { display: grid; place-items: center; width: 35px; height: 35px; color: var(--gold-light); border: 1px solid rgba(232, 196, 119, .6); border-radius: 50%; font-size: 1.2rem; }
.info-item small { display: block; color: rgba(255, 255, 255, .57); font-size: .64rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.info-item strong { display: block; font-size: .84rem; font-weight: 700; }

.services-overview { background: var(--white); }
.section-heading { max-width: 690px; margin-bottom: 53px; }
.section-heading p:last-child, .split-heading > p { max-width: 515px; color: var(--muted); }
.overview-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.overview-card { position: relative; min-height: 300px; padding: 29px 32px; overflow: hidden; border: 1px solid var(--line); transition: transform .3s ease, box-shadow .3s ease; }
.overview-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.overview-podologia { background: #f5f0e7; }
.overview-enfermeria { background: #eaf1f1; }
.card-topline { display: flex; justify-content: space-between; color: var(--gold); font-size: .72rem; font-weight: 800; letter-spacing: .1em; }
.round-arrow { display: grid; place-items: center; width: 35px; height: 35px; border: 1px solid currentColor; border-radius: 50%; font-size: 1rem; transition: background .25s ease, color .25s ease; }
.overview-card:hover .round-arrow { background: var(--gold); color: var(--navy-deep); }
.service-symbol { position: absolute; top: 26px; left: 50%; color: rgba(199, 138, 39, .26); font-family: Georgia, serif; font-size: 10rem; line-height: .8; pointer-events: none; }
.symbol-foot { transform: rotate(-20deg); }
.symbol-cross { color: rgba(62, 115, 121, .21); font-size: 12rem; font-family: system-ui, sans-serif; font-weight: 200; }
.overview-card h3 { position: relative; margin: 70px 0 10px; font-size: 2.3rem; }
.overview-card p { position: relative; max-width: 310px; margin-bottom: 25px; color: #66747b; }
.text-link { position: relative; color: var(--navy); font-size: .78rem; font-weight: 800; }
.text-link span { margin-left: 8px; color: var(--gold); }

.visual-services { background: #f1eee7; }
.visual-services-grid { display: grid; grid-template-columns: .72fr 1.28fr; align-items: center; gap: clamp(45px, 8vw, 120px); }
.visual-services-copy h2 { max-width: 390px; }
.visual-services-copy > p:last-child { max-width: 320px; color: var(--muted); }
.provided-image-wrap { position: relative; isolation: isolate; margin: 0; padding: 10px; border: 1px solid rgba(199, 138, 39, .82); background: var(--white); box-shadow: 0 18px 40px rgba(24, 52, 77, .12); }
.provided-image-wrap::before { content: ""; position: absolute; z-index: -1; inset: 12px -5px -7px 12px; border-radius: 18px; background: rgba(199, 138, 39, .65); filter: blur(14px); opacity: .7; }
.provided-image { width: 100%; height: auto; border: 1px solid rgba(24, 52, 77, .18); border-radius: 11px; }

.detail-section { overflow: hidden; }
.podologia-section { background: var(--cream); }
.detail-grid { display: grid; grid-template-columns: .82fr 1.18fr; align-items: start; gap: clamp(50px, 8vw, 130px); }
.detail-intro h2 { max-width: 480px; }
.detail-intro > p:not(.eyebrow) { max-width: 430px; color: var(--muted); }
.service-list { border-top: 1px solid var(--navy); }
.list-heading { display: flex; justify-content: space-between; padding: 12px 0; color: var(--gold); font-size: .68rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.service-row { display: grid; grid-template-columns: 37px 1fr 10px; gap: 15px; align-items: center; min-height: 59px; border-top: 1px solid var(--line); }
.service-row .row-number { color: var(--gold); font-size: .7rem; font-weight: 800; }
.service-row strong { color: var(--navy); font-size: .93rem; font-weight: 700; }
.row-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.nursing-section { position: relative; background: var(--navy); color: var(--white); }
.nursing-section::after { content: ""; position: absolute; width: 420px; height: 420px; right: -180px; bottom: -190px; border: 1px solid rgba(232, 196, 119, .25); border-radius: 50%; }
.nursing-section h2 { color: var(--white); }
.nursing-section .detail-intro > p:not(.eyebrow) { color: rgba(255, 255, 255, .7); }
.eyebrow-light { color: var(--gold-light); }
.service-list-light { position: relative; z-index: 1; border-top-color: var(--gold-light); }
.service-list-light .list-heading { color: var(--gold-light); }
.service-list-light .service-row { border-top-color: rgba(255, 255, 255, .15); }
.service-list-light .service-row strong { color: var(--white); }

.attention-section { background: var(--white); }
.split-heading { display: flex; align-items: end; justify-content: space-between; gap: 50px; margin-bottom: 48px; }
.split-heading h2 { margin-bottom: 0; }
.split-heading > p { margin-bottom: 8px; }
.attention-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.attention-card { position: relative; padding: 34px 36px; min-height: 265px; border: 1px solid var(--line); background: var(--cream); }
.attention-card-accent { background: var(--gold); border-color: var(--gold); }
.attention-index { position: absolute; top: 28px; right: 32px; color: var(--gold); font-size: .72rem; font-weight: 800; letter-spacing: .1em; }
.attention-card-accent .attention-index { color: var(--navy-deep); }
.attention-icon { display: grid; place-items: center; width: 49px; height: 49px; margin-bottom: 25px; border: 1px solid var(--gold); border-radius: 50%; color: var(--gold); font-size: 1.35rem; }
.attention-card-accent .attention-icon { border-color: var(--navy); color: var(--navy); }
.attention-card h3 { margin-bottom: 9px; font-size: 2rem; }
.attention-card-accent h3, .attention-card-accent p, .attention-card-accent a { color: var(--navy-deep); }
.attention-card p { max-width: 370px; margin-bottom: 19px; color: var(--muted); }
.attention-card a { color: var(--navy); font-size: .78rem; font-weight: 800; }
.attention-card a span { margin-left: 9px; }

.patients-section { background: var(--teal); color: var(--white); }
.patients-layout { display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: 80px; }
.patients-title h2 { max-width: 450px; color: var(--white); }
.patient-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.patient-card { min-height: 142px; display: flex; flex-direction: column; justify-content: space-between; padding: 19px; border: 1px solid rgba(255, 255, 255, .34); }
.patient-card span { color: var(--gold-light); font-size: .7rem; font-weight: 800; }
.patient-card strong { font-family: Georgia, serif; font-size: 1.15rem; font-weight: 500; }

.contact-section { background: var(--cream); }
.contact-card { display: grid; grid-template-columns: 1fr 1fr auto; gap: 45px; align-items: end; padding: 48px; background: var(--white); box-shadow: var(--shadow); }
.contact-main h2 { margin-bottom: 12px; }
.contact-main > p:last-child { max-width: 300px; margin-bottom: 0; color: var(--muted); font-size: .9rem; }
.contact-details { border-left: 1px solid var(--line); padding-left: 34px; }
.contact-line { display: block; padding: 9px 0; border-bottom: 1px solid var(--line); }
.contact-line:last-child { border-bottom: 0; }
.contact-label { display: block; color: var(--gold); font-size: .64rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.contact-line strong { color: var(--navy); font-size: .9rem; }
.contact-button { white-space: nowrap; }

.site-footer { padding: 44px 0 23px; background: var(--navy-deep); color: rgba(255, 255, 255, .67); }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: 30px; padding-bottom: 30px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.footer-brand { width: 150px; padding: 5px; background: var(--white); }
.footer-brand img { width: 100%; height: 56px; object-fit: contain; }
.footer-grid p { margin: 0; font-size: .76rem; }
.footer-phone { color: var(--gold-light); font-size: .85rem; font-weight: 800; }
.footer-phone span { margin-left: 7px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 20px; font-size: .68rem; }
.footer-bottom a { color: var(--white); }
.floating-whatsapp { position: fixed; right: 22px; bottom: 22px; z-index: 15; display: grid; place-items: center; width: 56px; height: 56px; border: 3px solid var(--white); border-radius: 50%; background: #1f9d65; color: var(--white); box-shadow: 0 10px 24px rgba(16, 38, 56, .24); font-size: 1.5rem; transition: transform .25s ease; }
.floating-whatsapp:hover, .floating-whatsapp:focus-visible { transform: translateY(-4px) scale(1.04); }

.reveal { opacity: 1; transform: none; }
.js-ready .reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.js-ready .reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay { transition-delay: .11s !important; }

@media (max-width: 1030px) {
  .primary-nav { gap: 15px; }
  .primary-nav .nav-cta { padding-inline: 13px; }
  .hero-grid { gap: 35px; }
  .detail-grid { gap: 55px; }
  .contact-card { grid-template-columns: 1fr 1fr; }
  .contact-button { grid-column: 1 / -1; justify-self: start; }
}

@media (max-width: 800px) {
  .container { width: min(100% - 36px, 620px); }
  .section-pad { padding: 78px 0; }
  .nav-wrap { min-height: 72px; }
  .brand { width: 145px; }
  .brand img { height: 52px; }
  .menu-toggle { display: block; }
  .primary-nav { position: absolute; top: 72px; left: 18px; right: 18px; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 12px; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
  .primary-nav.is-open { display: flex; }
  .primary-nav a { padding: 12px 13px; }
  .primary-nav .nav-cta { margin-top: 6px; text-align: center; }
  .hero { min-height: auto; }
  .hero-grid, .detail-grid, .patients-layout { grid-template-columns: 1fr; }
  .hero-copy { padding: 24px 0 0; }
  h1 { max-width: 600px; font-size: clamp(3rem, 11vw, 4.5rem); }
  .hero-visual { min-height: 420px; margin-top: 10px; }
  .hero-visual::before { width: min(410px, 80vw); }
  .hero-visual::after { width: min(315px, 66vw); }
  .label-top { right: 7%; }
  .label-bottom { left: 7%; }
  .info-grid { grid-template-columns: 1fr; }
  .info-item, .info-item:first-child { padding: 17px 0; border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .13); }
  .info-item:last-child { border-bottom: 0; }
  .overview-grid, .attention-grid { grid-template-columns: 1fr; }
  .visual-services-grid { grid-template-columns: 1fr; gap: 35px; }
  .detail-grid { gap: 48px; }
  .split-heading { display: block; }
  .split-heading > p { margin-top: 19px; }
  .patients-layout { gap: 35px; }
  .contact-card { grid-template-columns: 1fr; gap: 30px; padding: 30px 25px; }
  .contact-details { border-left: 0; border-top: 1px solid var(--line); padding: 19px 0 0; }
  .contact-button { grid-column: auto; width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 18px; }
}

@media (max-width: 440px) {
  .container { width: calc(100% - 28px); }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .hero-visual { min-height: 340px; }
  .logo-frame { padding: 17px; }
  .visual-label { font-size: .56rem; }
  .overview-card, .attention-card { padding-inline: 23px; }
  .patient-cards { grid-template-columns: 1fr; }
  .patient-card { min-height: 93px; }
  .footer-bottom { flex-direction: column; }
  .floating-whatsapp { right: 14px; bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
