/* =========================================================
   CLÍNICA PODOSEL — Hoja de estilos principal
   ========================================================= */

/* ---------- Fuentes ---------- */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@500;600;700;800&family=Inter:wght@400;500;600&display=swap');

/* ---------- Variables ---------- */
:root {
  --white: #ffffff;
  --off-white: #f7faf9;
  --bg-soft: #eef4f3;
  --border: #e1e9e7;

  --ink: #1d2a28;
  --ink-soft: #4d5c59;
  --ink-faint: #7c8b88;

  --primary: #0d6e63;
  --primary-dark: #094f47;
  --primary-darker: #06332d;
  --primary-light: #e2f2ef;
  --primary-soft: #cde9e4;

  --accent: #2f8f9d;

  --success-bg: #e5f6ee;
  --success-text: #1d7a4c;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 10px rgba(9, 40, 35, 0.06);
  --shadow-md: 0 10px 30px rgba(9, 40, 35, 0.09);
  --shadow-lg: 0 24px 60px rgba(9, 40, 35, 0.14);

  --container: 1180px;
  --header-h: 76px;
  --utility-h: 40px;

  --notch: 20px;
  --notch-sm: 10px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Firma visual: esquina cortada ---------- */
.cut-corner {
  clip-path: polygon(
    var(--notch) 0, 100% 0, 100% calc(100% - var(--notch)),
    calc(100% - var(--notch)) 100%, 0 100%, 0 var(--notch)
  );
}
.cut-corner-sm {
  clip-path: polygon(
    var(--notch-sm) 0, 100% 0, 100% calc(100% - var(--notch-sm)),
    calc(100% - var(--notch-sm)) 100%, 0 100%, 0 var(--notch-sm)
  );
}

/* ---------- Reset ---------- */
* , *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  color: var(--ink);
  line-height: 1.18;
  margin: 0;
  font-weight: 700;
}
p { line-height: 1.7; margin: 0; color: var(--ink-soft); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}
@media (max-width: 780px) {
  .section { padding: 64px 0; }
}
.section-soft { background: var(--off-white); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-light);
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

.section-head {
  max-width: 640px;
  margin: 0 0 56px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  margin-bottom: 14px;
}
.section-head p { font-size: 1.05rem; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  font-weight: 700;
  font-size: 0.94rem;
  letter-spacing: 0.01em;
  border: 1.5px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 19px; height: 19px; flex-shrink: 0; }
.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }

.btn-light {
  background: var(--white);
  color: var(--primary-dark);
}
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-whatsapp {
  background: #25D366;
  color: var(--white);
}
.btn-whatsapp:hover { background: #1ebc59; transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-block { width: 100%; }
.btn-lg { padding: 17px 34px; font-size: 1.02rem; }

/* =========================================================
   HEADER / NAVBAR
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  width: 100%;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease), height 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.is-scrolled {
  box-shadow: 0 6px 24px rgba(9, 40, 35, 0.08);
  border-bottom-color: var(--border);
  height: 72px;
  background: rgba(255, 255, 255, 0.96);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* ---- Barra de utilidad (superior, se desplaza con la página) ---- */
.utility-bar {
  background: var(--primary-darker);
  color: rgba(255, 255, 255, 0.82);
}
.utility-bar .container {
  height: var(--utility-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
}
.utility-left, .utility-right { display: flex; align-items: center; gap: 20px; }
.utility-bar a { color: inherit; transition: color 0.2s var(--ease); display: inline-flex; align-items: center; gap: 6px; }
.utility-bar a:hover { color: var(--white); }
.utility-bar svg { width: 13px; height: 13px; flex-shrink: 0; }
@media (max-width: 700px) {
  .utility-hide-sm { display: none; }
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.brand-logo {
  height: 38px;
  width: auto;
  transition: transform 0.25s var(--ease);
}
.brand:hover .brand-logo { transform: scale(1.03); }

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-link {
  position: relative;
  padding: 6px 0;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-soft);
  transition: color 0.2s var(--ease);
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--primary);
  transition: right 0.3s var(--ease);
}
.nav-link:hover { color: var(--primary-dark); }
.nav-link:hover::after { right: 0; }
.nav-link[aria-current="page"] { color: var(--primary-dark); }
.nav-link[aria-current="page"]::after { right: 0; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.hamburger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--white);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.hamburger span {
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.hamburger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-active span:nth-child(2) { opacity: 0; }
.hamburger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--white);
  padding: 28px 24px 40px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
  z-index: 490;
  transform: translateY(-12px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}
.mobile-menu.is-open {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
}
.mobile-menu a.nav-link {
  font-size: 1.15rem;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
}
.mobile-menu .mobile-actions {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mobile-menu .mobile-contact-info {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--ink-faint);
  font-size: 0.9rem;
}
body.menu-open { overflow: hidden; }

@media (max-width: 960px) {
  .main-nav, .header-actions .btn-cta { display: none; }
  .hamburger { display: flex; }
}

/* =========================================================
   HERO — pantalla completa con foto e info rápida
   ========================================================= */
.hero-full {
  position: relative;
  min-height: 600px;
  height: 86vh;
  max-height: 780px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--white);
}
.hero-media { position: absolute; inset: 0; }
.hero-bg-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.04);
  animation: heroZoom 16s var(--ease) forwards;
}
@keyframes heroZoom {
  from { transform: scale(1.1); }
  to { transform: scale(1); }
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(6, 20, 18, 0.86) 0%, rgba(6, 20, 18, 0.42) 46%, rgba(6, 20, 18, 0.18) 100%),
    linear-gradient(90deg, rgba(6, 20, 18, 0.55) 0%, rgba(6, 20, 18, 0.05) 60%);
}
.hero-watermark {
  position: absolute;
  right: -60px;
  top: -40px;
  width: 420px;
  max-width: 46vw;
  opacity: 0.14;
  filter: brightness(0) invert(1);
  pointer-events: none;
}
.hero-full-inner {
  position: relative;
  width: 100%;
  padding-bottom: 96px;
}
.hero-full-content { max-width: 640px; }
.eyebrow-light {
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.eyebrow-light::before { background: var(--white); }
.hero-full-content h1 {
  color: var(--white);
  font-size: clamp(2.3rem, 4.6vw, 3.6rem);
  letter-spacing: -0.01em;
  margin: 18px 0 22px;
}
.hero-full-content h1 .accent {
  display: block;
  color: var(--primary-soft);
  font-weight: 500;
}
.hero-full-content p.lead {
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.12rem;
  max-width: 480px;
  margin-bottom: 34px;
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }
.hero-link-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-weight: 700;
  font-size: 0.96rem;
  text-underline-offset: 5px;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.5);
  transition: gap 0.25s var(--ease), text-decoration-color 0.25s var(--ease);
}
.hero-link-cta svg { width: 17px; height: 17px; transition: transform 0.25s var(--ease); }
.hero-link-cta:hover { gap: 13px; text-decoration-color: var(--white); }
.hero-link-cta:hover svg { transform: translateX(3px); }

/* ---- Franja de datos rápidos, superpuesta al hero ---- */
.quick-facts-wrap {
  position: relative;
  z-index: 30;
  margin-top: -56px;
}
.quick-facts {
  background: var(--white);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  filter: drop-shadow(0 18px 40px rgba(9, 40, 35, 0.16));
}
.quick-fact {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 26px 22px;
  border-right: 1px solid var(--border);
  transition: background 0.2s var(--ease);
}
a.quick-fact:hover { background: var(--primary-light); }
.quick-fact:last-child { border-right: none; }
.quick-fact .icon-circle {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.quick-fact .icon-circle svg { width: 20px; height: 20px; }
.quick-fact strong { display: block; font-size: 0.92rem; }
.quick-fact span { font-size: 0.8rem; color: var(--ink-faint); }

@media (max-width: 860px) {
  .hero-full { height: auto; min-height: 0; padding-top: calc(var(--header-h) + var(--utility-h) + 60px); align-items: stretch; }
  .hero-full-inner { padding-bottom: 76px; }
  .quick-facts { grid-template-columns: 1fr 1fr; }
  .quick-fact:nth-child(2) { border-right: none; }
  .quick-fact:nth-child(1), .quick-fact:nth-child(2) { border-bottom: 1px solid var(--border); }
}
@media (max-width: 520px) {
  .quick-facts { grid-template-columns: 1fr; }
  .quick-fact { border-right: none !important; border-bottom: 1px solid var(--border); }
  .quick-fact:last-child { border-bottom: none; }
}

/* =========================================================
   TRUST / VALUES — franja editorial con divisores
   ========================================================= */
.section-band {
  background: var(--primary-light);
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.value-card {
  position: relative;
  padding: 6px 30px 6px 0;
  background: transparent;
  border: none;
  transition: transform 0.3s var(--ease);
}
.value-card:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 15px;
  top: 6%;
  height: 88%;
  width: 1px;
  background: rgba(9, 79, 71, 0.16);
}
.value-card:hover { transform: translateY(-4px); }
.value-card .icon-circle {
  width: 30px; height: 30px;
  border-radius: 0;
  background: none;
  color: var(--primary-dark);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.value-card .icon-circle svg { width: 30px; height: 30px; }
.value-card h3 { font-size: 1.02rem; margin-bottom: 8px; }
.value-card p { font-size: 0.9rem; }

@media (max-width: 860px) {
  .values-grid { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .value-card:nth-child(2)::after { display: none; }
  .value-card { padding-right: 20px; }
}
@media (max-width: 560px) {
  .values-grid { grid-template-columns: 1fr; }
  .value-card::after { display: none; }
}

/* =========================================================
   INTRO / CONOCE LA CLÍNICA (foto + texto)
   ========================================================= */
.intro-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.intro-photo {
  position: relative;
}
.intro-photo .photo-main {
  overflow: hidden;
  filter: drop-shadow(0 14px 30px rgba(9, 40, 35, 0.14));
  aspect-ratio: 6 / 5;
}
.intro-photo .photo-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.intro-photo:hover .photo-main img { transform: scale(1.04); }
.intro-photo .photo-badge {
  position: absolute;
  bottom: -22px;
  right: -18px;
  background: var(--white);
  filter: drop-shadow(0 14px 26px rgba(9, 40, 35, 0.18));
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 230px;
}
.intro-photo .photo-badge svg { width: 26px; height: 26px; color: var(--primary); flex-shrink: 0; }
.intro-photo .photo-badge strong { display: block; font-size: 0.88rem; }
.intro-photo .photo-badge span { font-size: 0.76rem; color: var(--ink-faint); }

.intro-content ul { display: flex; flex-direction: column; gap: 14px; margin: 26px 0 32px; }
.intro-content ul li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.96rem;
  color: var(--ink-soft);
}
.intro-content ul li svg { width: 20px; height: 20px; color: var(--primary); flex-shrink: 0; margin-top: 2px; }

@media (max-width: 900px) {
  .intro-grid { grid-template-columns: 1fr; gap: 60px; }
  .intro-photo .photo-badge { right: 12px; }
}

/* =========================================================
   SERVICIOS (home) — listado editorial numerado
   ========================================================= */
.service-list { border-top: 1px solid var(--border); }
.service-row {
  position: relative;
  display: grid;
  grid-template-columns: 56px 230px 1fr 56px 22px;
  grid-template-areas: "idx title desc icon arrow";
  align-items: center;
  gap: 22px;
  padding: 30px 10px;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.service-row::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0;
  background: var(--primary-light);
  transition: width 0.45s var(--ease);
  z-index: 0;
}
.service-row:hover::before,
.service-row:focus-visible::before { width: 100%; }
.service-row > * { position: relative; z-index: 1; }
.service-row-index { grid-area: idx; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 0.85rem; color: var(--primary); }
.service-row-title { grid-area: title; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 1.2rem; color: var(--ink); transition: color 0.3s var(--ease); }
.service-row:hover .service-row-title { color: var(--primary-dark); }
.service-row-desc { grid-area: desc; font-size: 0.92rem; color: var(--ink-soft); }
.service-row-icon {
  grid-area: icon;
  width: 46px; height: 46px;
  border-radius: 13px;
  background: var(--white);
  border: 1.5px solid var(--border);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.service-row-icon svg { width: 21px; height: 21px; }
.service-row:hover .service-row-icon { background: var(--primary); color: var(--white); border-color: var(--primary); transform: scale(1.06) rotate(-4deg); }
.service-row-arrow { grid-area: arrow; width: 20px; height: 20px; color: var(--ink-faint); transition: transform 0.3s var(--ease), color 0.3s var(--ease); }
.service-row:hover .service-row-arrow { transform: translateX(6px); color: var(--primary-dark); }

@media (max-width: 760px) {
  .service-row {
    grid-template-columns: 34px 1fr 44px;
    grid-template-areas:
      "idx title icon"
      "desc desc desc";
    row-gap: 12px;
    padding: 24px 6px;
  }
  .service-row-title { font-size: 1.05rem; }
  .service-row-arrow { display: none; }
}

.section-cta-btn { text-align: center; margin-top: 48px; }

/* =========================================================
   CTA — díptico foto / texto
   ========================================================= */
.cta-split {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  filter: drop-shadow(0 22px 50px rgba(9, 40, 35, 0.2));
}
.cta-split-media { position: relative; min-height: 320px; }
.cta-split-media img { width: 100%; height: 100%; object-fit: cover; }
.cta-split-content {
  background: var(--primary-darker);
  color: var(--white);
  padding: 56px 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.cta-split-content .eyebrow-light { margin-bottom: 18px; align-self: flex-start; }
.cta-split-content h2 { color: var(--white); font-size: clamp(1.5rem, 2.8vw, 2.15rem); margin-bottom: 14px; }
.cta-split-content p { color: rgba(255, 255, 255, 0.82); max-width: 420px; margin-bottom: 32px; font-size: 1.02rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 16px; }

@media (max-width: 780px) {
  .cta-split { grid-template-columns: 1fr; }
  .cta-split-media { min-height: 220px; order: -1; }
  .cta-split-content { padding: 44px 28px; }
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--primary-darker);
  color: rgba(255,255,255,0.72);
  padding: 72px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand { display: flex; align-items: center; margin-bottom: 18px; }
.footer-brand .brand-logo {
  height: 34px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}
.footer-col h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 18px; }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 0.92rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--white); }
.footer-col p { color: rgba(255,255,255,0.7); font-size: 0.92rem; margin-bottom: 16px; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 10px; font-size: 0.9rem; margin-bottom: 14px; }
.footer-contact-item svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; color: var(--primary-soft); }
.footer-bottom {
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}

@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* =========================================================
   FLOATING ELEMENTS — WhatsApp & Back to top
   ========================================================= */
.float-stack {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 600;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}

.whatsapp-float {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.45);
  transition: transform 0.25s var(--ease);
}
.whatsapp-float svg { width: 30px; height: 30px; }
.whatsapp-float:hover { transform: scale(1.07); }
.whatsapp-float::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #25D366;
  animation: pulseRing 2.4s ease-out infinite;
}
.whatsapp-float .tooltip {
  position: absolute;
  right: 72px;
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  background: var(--ink);
  color: var(--white);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.whatsapp-float:hover .tooltip,
.whatsapp-float:focus-visible .tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

@keyframes pulseRing {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.55); opacity: 0; }
}

.back-to-top {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--white);
  border: 1.5px solid var(--border);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top svg { width: 20px; height: 20px; }
.back-to-top:hover { transform: translateY(-3px); }

/* =========================================================
   PAGE HEADER (páginas internas)
   ========================================================= */
.page-header {
  position: relative;
  padding: 64px 0 88px;
  background: linear-gradient(180deg, var(--off-white), var(--white));
  text-align: center;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--primary-light), transparent 70%);
  top: -260px;
  left: 50%;
  transform: translateX(-50%);
}
.page-header .logo-mark-badge {
  position: relative;
  width: 54px;
  height: 54px;
  margin: 0 auto 22px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 8px 20px rgba(9, 40, 35, 0.14));
}
.page-header .logo-mark-badge img { width: 28px; height: auto; }
.page-header .eyebrow { position: relative; }
.page-header h1 { position: relative; font-size: clamp(1.9rem, 3.6vw, 2.9rem); margin-bottom: 16px; }
.page-header p { position: relative; max-width: 620px; margin: 0 auto; font-size: 1.08rem; }
.breadcrumb {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--ink-faint);
  margin-bottom: 20px;
}
.breadcrumb a:hover { color: var(--primary-dark); }
.breadcrumb .current { color: var(--primary-dark); font-weight: 600; }

/* =========================================================
   SERVICIOS — bloques detallados
   ========================================================= */
.service-detail {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 48px;
  align-items: center;
  padding: 56px 0;
}
.service-detail:not(:last-child) { border-bottom: 1px solid var(--border); }
.service-detail:nth-child(even) .service-visual { order: 2; }
.service-visual {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, var(--primary-light), var(--bg-soft));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.service-visual svg { width: 46%; height: 46%; color: var(--primary); }
.service-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.service-visual:hover img { transform: scale(1.05); }
.service-visual .visual-icon-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--white);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}
.service-visual .visual-icon-badge svg { width: 22px; height: 22px; }
.service-visual .tag-chip {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: var(--white);
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--primary-dark);
  box-shadow: var(--shadow-sm);
}
.service-number {
  display: block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--primary);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}
.service-number::before { content: '— '; }
.service-content h2 { font-size: 1.55rem; margin-bottom: 14px; }
.service-content p { margin-bottom: 12px; }
.service-content ul { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.service-content ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.service-content ul li svg { width: 18px; height: 18px; color: var(--primary); flex-shrink: 0; margin-top: 3px; }

@media (max-width: 860px) {
  .service-detail { grid-template-columns: 1fr; gap: 28px; }
  .service-detail:nth-child(even) .service-visual { order: 0; }
  .service-visual { max-width: 320px; margin: 0 auto; }
}

.note-box {
  display: flex;
  gap: 16px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin-top: 20px;
}
.note-box svg { width: 24px; height: 24px; color: var(--primary); flex-shrink: 0; }
.note-box p { font-size: 0.92rem; }

/* =========================================================
   CONTACTO
   ========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: start;
}
.contact-info-card {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
}
.contact-info-card .card-photo {
  border-radius: var(--radius-lg) var(--radius-lg) 10px 10px;
  overflow: hidden;
  margin: -40px -32px 28px;
  aspect-ratio: 16 / 10;
  box-shadow: var(--shadow-sm);
}
.contact-info-card .card-photo img { width: 100%; height: 100%; object-fit: cover; }
.contact-info-card h3 { font-size: 1.3rem; margin-bottom: 24px; }
.contact-info-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 24px;
}
.contact-info-row .icon-circle {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--primary);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-info-row .icon-circle svg { width: 21px; height: 21px; }
.contact-info-row strong { display: block; font-size: 0.95rem; margin-bottom: 2px; }
.contact-info-row span, .contact-info-row a { font-size: 0.92rem; color: var(--ink-soft); }
.contact-info-row a:hover { color: var(--primary-dark); }
.contact-info-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }

.contact-form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  box-shadow: var(--shadow-sm);
}
.contact-form-card h3 { font-size: 1.3rem; margin-bottom: 8px; }
.contact-form-card > p { margin-bottom: 28px; font-size: 0.95rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--white);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-light);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 0.8rem; color: var(--ink-faint); margin-top: 14px; }
.hidden-field { position: absolute; left: -9999px; }

.form-success {
  display: none;
  align-items: center;
  gap: 14px;
  background: var(--success-bg);
  color: var(--success-text);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  margin-bottom: 24px;
  font-weight: 600;
  font-size: 0.94rem;
}
.form-success.is-visible { display: flex; }
.form-success svg { width: 22px; height: 22px; flex-shrink: 0; }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form-card { padding: 32px 24px; }
}

/* =========================================================
   UBICACIÓN
   ========================================================= */
.location-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 40px;
  align-items: stretch;
}
.location-card {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
}
.location-card .card-photo {
  border-radius: var(--radius-lg) var(--radius-lg) 10px 10px;
  overflow: hidden;
  margin: -40px -32px 28px;
  aspect-ratio: 16 / 10;
  box-shadow: var(--shadow-sm);
}
.location-card .card-photo img { width: 100%; height: 100%; object-fit: cover; }
.location-card h3 { font-size: 1.25rem; margin-bottom: 18px; }
.location-address {
  display: flex;
  gap: 14px;
  margin-bottom: 22px;
}
.location-address .icon-circle {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--primary);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.location-address .icon-circle svg { width: 21px; height: 21px; }
.location-actions { display: flex; flex-direction: column; gap: 12px; margin-top: auto; padding-top: 20px; }

.map-frame-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  min-height: 420px;
  box-shadow: var(--shadow-sm);
}
.map-frame-wrap iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }

@media (max-width: 900px) {
  .location-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   REVEAL ANIMATIONS
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1.is-visible { transition-delay: 0.08s; }
.reveal-delay-2.is-visible { transition-delay: 0.16s; }
.reveal-delay-3.is-visible { transition-delay: 0.24s; }
.reveal-delay-4.is-visible { transition-delay: 0.32s; }
.reveal-delay-5.is-visible { transition-delay: 0.4s; }
.reveal-delay-6.is-visible { transition-delay: 0.48s; }

body.page-loaded .page-enter { animation: pageEnter 0.6s var(--ease) both; }

@keyframes pageEnter {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .hero-bg-photo, .whatsapp-float::after, .service-row, .value-card {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
