/* inicio.css — Portada Centro Médico Mirador (2026-10) */

:root {
  --teal-900: #063f42;
  --teal-800: #0a5559;
  --teal-700: #007c82;
  --teal-600: #0d9399;
  --mint-400: #3cc6a8;
  --mint-100: #e3f6f1;
  --sand-50: #f7f5f1;
  --ink-900: #14212b;
  --ink-600: #4a5a66;
  --ink-400: #7d8b96;
  --line: #e4e9ec;
  --white: #ffffff;
  --radius-lg: 22px;
  --radius-md: 14px;
  --shadow-sm: 0 2px 10px rgba(6, 63, 66, .06);
  --shadow-md: 0 14px 40px rgba(6, 63, 66, .10);
  --max: 1180px;
  --font: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; }

.container { width: min(var(--max), 100% - 40px); margin-inline: auto; }

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--teal-700); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--mint-400); outline-offset: 3px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px; font: 600 1rem/1 var(--font);
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease, color .2s ease;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--mint-400); color: var(--teal-900); box-shadow: 0 10px 24px rgba(60, 198, 168, .35); }
.btn-primary:hover { transform: translateY(-2px); background: #52d4b7; }
.btn-ghost { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .55); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .22); }
.btn-dark { background: var(--teal-700); color: #fff; }
.btn-dark:hover { background: var(--teal-800); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--teal-700); border-color: var(--teal-700); }
.btn-outline:hover { background: var(--teal-700); color: #fff; }

/* ---------- Cabecera ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s ease, box-shadow .3s ease;
}
.site-header .bar {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  height: 76px;
}
.site-header .brand img { height: 46px; width: auto; filter: brightness(0) invert(1); transition: filter .3s ease; }
.site-header.solid { background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.site-header.solid .brand img { filter: none; }

.main-nav ul { list-style: none; display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; }
.main-nav a {
  display: block; padding: 10px 14px; border-radius: 999px; text-decoration: none;
  color: #fff; font-weight: 500; font-size: .97rem; transition: background .2s, color .2s;
}
.main-nav a:hover { background: rgba(255, 255, 255, .15); }
.site-header.solid .main-nav a { color: var(--ink-900); }
.site-header.solid .main-nav a:hover { background: var(--mint-100); color: var(--teal-800); }
.main-nav .nav-cta { background: var(--mint-400); color: var(--teal-900) !important; font-weight: 600; margin-left: 6px; }
.main-nav .nav-cta:hover { background: #52d4b7 !important; }

.menu-toggle {
  display: none; width: 46px; height: 46px; border-radius: 12px; border: 0;
  background: rgba(255, 255, 255, .15); color: #fff; cursor: pointer;
  align-items: center; justify-content: center;
}
.menu-toggle svg { width: 24px; height: 24px; }
.site-header.solid .menu-toggle { background: var(--mint-100); color: var(--teal-800); }

@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; }
  .main-nav {
    position: fixed; inset: 76px 0 auto 0; background: #fff; box-shadow: var(--shadow-md);
    padding: 12px 20px 22px; display: none;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .main-nav a, .site-header.solid .main-nav a { color: var(--ink-900); padding: 14px 12px; border-radius: 10px; }
  .main-nav .nav-cta { text-align: center; margin: 10px 0 0; }
}

/* ---------- Hero con video ---------- */
.hero {
  position: relative; min-height: 100svh; display: grid; align-items: end;
  color: #fff; overflow: hidden; background: var(--teal-900);
}
.hero-media { position: absolute; inset: 0; }
.hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 63, 66, .55) 0%, rgba(6, 63, 66, .15) 35%, rgba(6, 63, 66, .82) 100%),
    linear-gradient(90deg, rgba(6, 63, 66, .55) 0%, rgba(6, 63, 66, 0) 65%);
}
.hero-content { position: relative; z-index: 2; padding: 140px 0 70px; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .14); backdrop-filter: blur(6px); font-size: .9rem; font-weight: 500;
}
.hero .eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--mint-400); }
.hero h1 {
  font-size: clamp(2.3rem, 6vw, 4.3rem); line-height: 1.05; letter-spacing: -.02em;
  margin: 18px 0 18px; max-width: 14ch; font-weight: 700;
}
.hero p.lead { font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 46ch; margin: 0 0 30px; opacity: .92; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.video-toggle {
  position: absolute; z-index: 3; right: 20px; bottom: 22px;
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .5);
  background: rgba(0, 0, 0, .25); color: #fff; cursor: pointer; display: grid; place-items: center;
}
.video-toggle svg { width: 18px; height: 18px; }
@media (max-width: 760px) { .video-toggle { bottom: auto; top: 90px; right: 16px; } }

/* Datos rápidos */
.quick-facts { position: relative; z-index: 4; margin-top: -1px; background: var(--teal-900); color: #fff; }
.quick-facts .grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.quick-facts .fact { display: flex; gap: 14px; align-items: center; padding: 22px 18px; border-left: 1px solid rgba(255, 255, 255, .12); }
.quick-facts .fact:first-child { border-left: 0; }
.quick-facts svg { width: 26px; height: 26px; color: var(--mint-400); flex: none; }
.quick-facts strong { display: block; font-size: .98rem; }
.quick-facts span { font-size: .9rem; opacity: .8; }
@media (max-width: 760px) {
  .quick-facts .grid { grid-template-columns: 1fr; }
  .quick-facts .fact { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .12); padding: 16px 4px; }
  .quick-facts .fact:first-child { border-top: 0; }
}

/* ---------- Secciones ---------- */
.section { padding: clamp(70px, 9vw, 120px) 0; }
.section.alt { background: var(--sand-50); }
.section-head { max-width: 720px; margin-bottom: 46px; }
.section-head.center { text-align: center; margin-inline: auto; }
.kicker { color: var(--teal-700); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: .82rem; }
.section h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1.12; letter-spacing: -.015em; margin: 10px 0 14px; }
.section-head p { color: var(--ink-600); font-size: 1.1rem; margin: 0; }

/* Especialidades */
.areas-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.area-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px;
  display: flex; flex-direction: column; gap: 12px; transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
}
.area-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.area-icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--mint-100); color: var(--teal-700); }
.area-icon svg { width: 28px; height: 28px; }
.area-card h3 { margin: 6px 0 0; font-size: 1.3rem; }
.area-card p { margin: 0; color: var(--ink-600); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.chip { font-size: .8rem; padding: 5px 10px; border-radius: 999px; background: var(--sand-50); color: var(--ink-600); border: 1px solid var(--line); }
.area-foot { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px dashed var(--line); }
.area-price { font-size: .92rem; color: var(--ink-600); }
.area-price strong { color: var(--teal-800); font-size: 1.05rem; }
.area-link { color: var(--teal-700); font-weight: 600; text-decoration: none; white-space: nowrap; }
.area-link:hover { text-decoration: underline; }
.areas-more { text-align: center; margin-top: 36px; }

/* Cómo reservar */
.booking { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: paso; }
.steps li {
  counter-increment: paso; display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: start;
  background: #fff; border-radius: var(--radius-md); padding: 18px 20px; box-shadow: var(--shadow-sm);
}
.steps li::before {
  content: counter(paso); width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--teal-700); color: #fff; font-weight: 700; font-size: 1.25rem;
}
.steps h3 { margin: 2px 0 2px; font-size: 1.08rem; }
.steps p { margin: 0; color: var(--ink-600); font-size: .97rem; }
.booking-card {
  background: linear-gradient(150deg, var(--teal-700), var(--teal-900)); color: #fff;
  border-radius: var(--radius-lg); padding: 38px; box-shadow: var(--shadow-md); position: relative; overflow: hidden;
}
.booking-card::after {
  content: ""; position: absolute; width: 280px; height: 280px; right: -90px; top: -90px; border-radius: 50%;
  background: radial-gradient(circle, rgba(60, 198, 168, .45), transparent 70%);
}
.booking-card h3 { font-size: 1.6rem; margin: 0 0 10px; position: relative; }
.booking-card p { opacity: .88; margin: 0 0 24px; position: relative; }
.booking-card .btn { width: 100%; margin-bottom: 12px; position: relative; }
.booking-card small { display: block; opacity: .75; position: relative; margin-top: 6px; }
@media (max-width: 900px) { .booking { grid-template-columns: 1fr; } }

/* Equipo */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.member {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px;
  display: flex; flex-direction: column; gap: 6px;
}
.avatar {
  width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 10px;
  font-weight: 700; font-size: 1.5rem; color: #fff; background: linear-gradient(140deg, var(--teal-600), var(--mint-400));
}
.member h3 { margin: 0; font-size: 1.18rem; }
.member .role { color: var(--teal-700); font-weight: 600; font-size: .95rem; }
.member .chips { margin-top: 8px; }
.team-note { color: var(--ink-400); font-size: .92rem; margin-top: 22px; text-align: center; }
.skeleton { background: linear-gradient(90deg, #eef2f3 25%, #f6f8f9 50%, #eef2f3 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--radius-lg); min-height: 210px; }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; } }

/* Instalaciones */
.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: 50px; align-items: center; }
.about p { color: var(--ink-600); font-size: 1.06rem; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 200px 200px; gap: 12px; }
.gallery figure { margin: 0; position: relative; border-radius: var(--radius-md); overflow: hidden; }
.gallery figure:first-child { grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption {
  position: absolute; left: 10px; bottom: 10px; background: rgba(255, 255, 255, .92); color: var(--ink-900);
  font-size: .82rem; font-weight: 600; padding: 5px 10px; border-radius: 999px;
}
@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; }
  .gallery { grid-template-rows: 160px 160px; }
}

/* Ubicación */
.visit { display: grid; grid-template-columns: .85fr 1.15fr; gap: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); background: #fff; }
.visit-info { padding: 40px; }
.visit-info h2 { margin-top: 6px; }
.info-list { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 16px; }
.info-list li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; color: var(--ink-600); }
.info-list svg { width: 22px; height: 22px; color: var(--teal-700); margin-top: 2px; }
.info-list strong { color: var(--ink-900); display: block; }
.info-list a { color: var(--teal-700); }
.visit iframe { width: 100%; height: 100%; min-height: 380px; border: 0; }
@media (max-width: 900px) { .visit { grid-template-columns: 1fr; } .visit-info { padding: 28px; } }

/* Pie */
.site-footer { background: var(--teal-900); color: rgba(255, 255, 255, .82); padding: 56px 0 100px; }
.site-footer .cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.site-footer img { height: 46px; width: auto; filter: brightness(0) invert(1); margin-bottom: 14px; }
.site-footer h4 { color: #fff; margin: 0 0 12px; font-size: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: rgba(255, 255, 255, .82); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .legal { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 40px; padding-top: 20px; font-size: .88rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr; } }
@media (min-width: 761px) { .site-footer { padding-bottom: 56px; } }

/* Barra fija en móvil */
.mobile-cta {
  position: fixed; inset: auto 0 0 0; z-index: 40; display: none; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .97); box-shadow: 0 -6px 20px rgba(0, 0, 0, .08);
}
.mobile-cta .btn { flex: 1; padding: 13px 10px; font-size: .95rem; }
@media (max-width: 760px) { .mobile-cta { display: flex; } }

/* Animación de aparición */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* El chatbot no debe tapar la barra fija en móvil */
@media (max-width: 760px) { #chatbot-widget { bottom: 84px !important; } }

/* =========================================================
   Páginas interiores (quiénes somos, servicios, contacto)
   ========================================================= */
.main-nav a[aria-current="page"] { background: rgba(255, 255, 255, .18); }
.site-header.solid .main-nav a[aria-current="page"] { background: var(--mint-100); color: var(--teal-800); }

.page-hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(140deg, var(--teal-700) 0%, var(--teal-900) 75%);
  padding: 150px 0 70px;
}
.page-hero::after {
  content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(60, 198, 168, .35), transparent 70%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.08; letter-spacing: -.02em; margin: 12px 0 14px; max-width: 18ch; }
.page-hero p { font-size: 1.15rem; max-width: 56ch; opacity: .9; margin: 0; }

.breadcrumb { font-size: .9rem; opacity: .85; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; opacity: .6; }
.breadcrumb a { color: #fff; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* Valores */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.value { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; }
.value h3 { margin: 14px 0 6px; font-size: 1.2rem; }
.value p { margin: 0; color: var(--ink-600); }
@media (max-width: 900px) { .values { grid-template-columns: 1fr; } }

/* Catálogo */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.filter-btn {
  font: 500 .95rem var(--font); padding: 10px 18px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: #fff; color: var(--ink-600); transition: all .2s;
}
.filter-btn:hover { border-color: var(--teal-700); color: var(--teal-700); }
.filter-btn[aria-pressed="true"] { background: var(--teal-700); border-color: var(--teal-700); color: #fff; }

.catalog-area { margin-bottom: 54px; }
.catalog-area[hidden] { display: none; }
.catalog-area > header { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; }
.catalog-area > header h2 { margin: 0; font-size: clamp(1.5rem, 3vw, 2rem); }
.catalog-area > p { color: var(--ink-600); margin: 0 0 22px; max-width: 70ch; }
.group-title { font-size: 1.05rem; color: var(--teal-800); margin: 26px 0 4px; }
.group-desc { color: var(--ink-600); margin: 0 0 14px; font-size: .97rem; max-width: 75ch; }

.services { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.service {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 20px;
  display: flex; flex-direction: column; gap: 10px; transition: box-shadow .2s, transform .2s;
}
.service:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.service h4 { margin: 0; font-size: 1.05rem; line-height: 1.3; }
.service .meta { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-top: auto; }
.service .dur { color: var(--ink-400); font-size: .9rem; }
.service .price { font-weight: 700; color: var(--teal-800); font-size: 1.1rem; }
.service .price s { color: var(--ink-400); font-weight: 400; font-size: .85rem; margin-right: 6px; }
.service .promo { align-self: flex-start; font-size: .75rem; font-weight: 600; color: #8a4b00; background: #fff1dc; padding: 3px 9px; border-radius: 999px; }
.service .btn { padding: 11px 16px; font-size: .92rem; }
.catalog-note { color: var(--ink-400); font-size: .92rem; margin-top: 10px; }

/* Contacto */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 30px; align-items: start; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; }
.contact-card h2 { font-size: 1.5rem; margin: 0 0 6px; }
.form-grid { display: grid; gap: 14px; margin-top: 18px; }
.form-grid .two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; font: 1rem var(--font); padding: 13px 14px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--sand-50); color: var(--ink-900); transition: border-color .2s, background .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--teal-700); background: #fff; box-shadow: 0 0 0 3px rgba(0, 124, 130, .12); }
.field textarea { min-height: 130px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; color: var(--ink-600); }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--teal-700); }
.check a { color: var(--teal-700); }
.hp { position: absolute; left: -9999px; }
.notice { display: none; padding: 14px 16px; border-radius: 12px; margin-bottom: 18px; font-weight: 500; }
.notice.show { display: block; }
.notice.ok { background: #e7f8f1; color: #0b6b4f; border: 1px solid #bfeadb; }
.notice.err { background: #fdecec; color: #a32121; border: 1px solid #f7c9c9; }
.map-wrap { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); margin-top: 30px; }
.map-wrap iframe { width: 100%; height: 360px; border: 0; display: block; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } .form-grid .two { grid-template-columns: 1fr; } }

/* Textos largos (correo) no deben ensanchar las columnas en móvil */
.contact-grid > *, .visit > *, .info-list li > div { min-width: 0; }
.info-list a { overflow-wrap: anywhere; }
