/* Clínica Marco — propuesta de diseño: clínica moderna, azul petróleo y coral */
:root {
  --petrol: #0E4D5C; --petrol-d: #093843; --coral: #F2795E; --coral-d: #D9614A;
  --soft: #EEF4F5; --white: #fff; --ink: #142A30; --muted: #4F6469; --line: rgba(14,77,92,.14);
  --serif: "Instrument Serif", Georgia, serif; --sans: "Outfit", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; font: 17px/1.6 var(--sans); color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3 { font-weight: 600; line-height: 1.1; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.6rem, 7.5vw, 5rem); }
h2 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); }
h1 em, h2 em, .logo em, .footer__logo em { font-family: var(--serif); font-weight: 400; font-style: italic; letter-spacing: 0; }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; }
.container { width: min(1140px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(800px, 100% - 40px); }
.center { text-align: center; margin-top: 22px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }
.ico { width: 20px; height: 20px; flex: none; }
.ico--xl { width: 52px; height: 52px; color: var(--coral); }

.btn { display: inline-flex; align-items: center; gap: 9px; padding: 12px 22px; border-radius: 12px; font-weight: 600; text-decoration: none; border: 2px solid transparent; transition: transform .2s, background .2s; font-size: 1rem; }
.btn:hover { transform: translateY(-2px); }
.btn--lg { padding: 15px 26px; font-size: 1.05rem; }
.btn--coral { background: var(--coral); color: #fff; }
.btn--coral:hover { background: var(--coral-d); }
.btn--line { border-color: rgba(255,255,255,.55); color: #fff; }
.btn--line:hover { background: rgba(255,255,255,.12); }
.btn--line-dark { border-color: var(--petrol); color: var(--petrol); }
.btn--line-dark:hover { background: var(--petrol); color: #fff; }
.btn--petrol { background: var(--petrol); color: #fff; }
.btn--petrol:hover { background: var(--petrol-d); }
.btn--white { background: #fff; color: var(--petrol); }

.header { position: sticky; top: 0; z-index: 50; background: var(--petrol); color: #fff; transition: box-shadow .3s; }
.header.scrolled { box-shadow: 0 10px 30px -18px rgba(0,0,0,.5); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo__mark { width: 38px; height: 38px; border-radius: 10px; background: var(--coral); display: grid; place-items: center; font-weight: 700; font-size: 1.6rem; line-height: 1; }
.logo__text { font-size: 1.35rem; font-weight: 600; }
.menu-btn { width: 46px; height: 46px; border: 1px solid rgba(255,255,255,.3); background: none; border-radius: 12px; display: grid; place-content: center; gap: 5px; cursor: pointer; }
.menu-btn span { display: block; width: 20px; height: 2px; background: #fff; transition: transform .3s, opacity .3s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav { position: fixed; inset: 70px 0 auto 0; background: var(--petrol-d); padding: 14px 20px 26px; display: flex; flex-direction: column; gap: 2px; clip-path: inset(0 0 100% 0); transition: clip-path .35s ease; }
.nav.open { clip-path: inset(0 0 0 0); }
.nav a:not(.btn) { padding: 12px 4px; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.12); }
.nav .btn { margin-top: 12px; justify-content: center; }
@media (min-width: 960px) {
  .menu-btn { display: none; }
  .nav { position: static; flex-direction: row; align-items: center; gap: 26px; padding: 0; background: none; clip-path: none; }
  .nav a:not(.btn) { border: 0; padding: 0; font-size: .95rem; opacity: .85; }
  .nav a:not(.btn):hover { opacity: 1; }
  .nav .btn { margin: 0; }
}

.hero { position: relative; overflow: hidden; background: linear-gradient(160deg, var(--petrol) 0%, var(--petrol-d) 100%); color: #fff; padding: 56px 0 72px; }
.hero .container { position: relative; z-index: 1; }
.kicker { display: inline-block; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; opacity: .8; }
.lead { font-size: 1.15rem; max-width: 34em; opacity: .9; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 30px; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { border: 1px solid rgba(255,255,255,.3); border-radius: 999px; padding: 6px 14px; font-size: .9rem; }
.hero__shape { position: absolute; right: -180px; bottom: -180px; width: 520px; opacity: .35; }
.hero__shape svg { width: 100%; animation: spin 60s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (min-width: 900px) { .hero { padding: 96px 0 110px; } .hero__shape { right: -60px; top: 50%; bottom: auto; transform: translateY(-50%); width: 560px; opacity: 1; } }

.section { padding: 76px 0; }
.section--soft { background: var(--soft); }
.section--petrol { background: var(--petrol); color: #fff; }
.head { text-align: center; max-width: 640px; margin: 0 auto 38px; }
.eyebrow { font-weight: 600; font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--coral-d); margin-bottom: 8px; }
.sub { color: var(--muted); }
.head--light .eyebrow { color: var(--coral); }
.head--light .sub { color: rgba(255,255,255,.8); }

.tabs { background: var(--soft); border-radius: 24px; padding: 14px; }
.tabs__list { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.tabs__list button { flex: none; font: 600 .95rem var(--sans); color: var(--petrol); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; cursor: pointer; }
.tabs__list button[aria-selected="true"] { background: var(--petrol); color: #fff; border-color: var(--petrol); }
.tabs__panel { background: #fff; border-radius: 18px; padding: 30px 26px; margin-top: 10px; animation: fade .35s ease; }
.tabs__panel h3 { font-family: var(--serif); font-weight: 400; font-size: 2rem; color: var(--petrol); }
.tabs__panel p { color: var(--muted); max-width: 40em; }
.link { color: var(--coral-d); font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } }

.split { display: grid; gap: 30px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 60px; } }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: center; background: #fff; border-radius: 14px; padding: 16px 18px; font-weight: 500; }
.ticks .ico { color: #fff; background: var(--coral); border-radius: 50%; padding: 4px; width: 26px; height: 26px; }

.hours { display: grid; gap: 16px; align-items: center; border: 1px solid var(--line); border-radius: 22px; padding: 30px; }
.hours h2 { margin-bottom: .3em; }
.hours p { margin: 0; color: var(--muted); }
@media (min-width: 720px) { .hours { grid-template-columns: auto 1fr auto; } }

.booking { background: rgba(255,255,255,.07); border: 2px dashed rgba(255,255,255,.35); border-radius: 22px; padding: 40px 24px; text-align: center; }
.booking__ico { width: 54px; height: 54px; margin: 0 auto 12px; color: var(--coral); }
.booking__title { font-family: var(--serif); font-size: 1.9rem; margin-bottom: .3em; }
.booking p { opacity: .85; }
.booking__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 8px; }

.map { border-radius: 22px; overflow: hidden; border: 1px solid var(--line); }
.map iframe { width: 100%; height: 380px; border: 0; display: block; }

.contact { display: grid; gap: 12px; }
@media (min-width: 700px) { .contact { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .contact { grid-template-columns: repeat(4, 1fr); } }
.contact__item { display: flex; gap: 12px; align-items: center; background: #fff; border-radius: 16px; padding: 18px; text-decoration: none; transition: transform .2s; min-width: 0; }
.contact__item:hover { transform: translateY(-3px); }
.contact__item span { min-width: 0; overflow-wrap: anywhere; }
.contact__item .ico { width: 26px; height: 26px; color: var(--coral-d); }
.contact__item strong { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }

.footer { background: var(--petrol-d); color: rgba(255,255,255,.75); padding: 36px 0 110px; text-align: center; font-size: .92rem; }
.footer__logo { font-size: 1.5rem; font-weight: 600; color: #fff; }
.footer__demo { display: inline-block; margin-top: 6px; padding: 4px 12px; background: var(--coral); color: #fff; border-radius: 6px; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
@media (min-width: 960px) { .footer { padding-bottom: 36px; } }

.mobile-cta { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; }
.mobile-cta__btn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px; border-radius: 14px; font-weight: 600; text-decoration: none; background: #fff; color: var(--petrol); box-shadow: 0 10px 30px -10px rgba(0,0,0,.4); }
.mobile-cta__btn--main { background: var(--coral); color: #fff; }
@media (min-width: 960px) { .mobile-cta { display: none; } }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible, .no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero__shape svg, .tabs__panel { animation: none; }
}
