/*
Theme Name: Renavital Hospital
Theme URI: https://renavital.mx
Author: Renavital Hospital
Author URI: https://renavital.mx
Description: Tema oficial de Renavital Hospital — Centro de Excelencia en Salud Integral. Diseño moderno, profesional y responsivo.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: Proprietary
License URI: https://renavital.mx
Text Domain: renavital
Tags: health, medical, hospital, one-page, responsive
*/

/* ── CSS Custom Properties ─────────────────────── */
:root {
  --navy:     #1a2a2a;
  --teal:     #2d5f63;
  --teal-lt:  #3d8589;
  --gold:     #c9a84c;
  --white:    #ffffff;
  --gray-50:  #f7f9fc;
  --gray-100: #eef1f6;
  --gray-400: #8a94a6;
  --gray-700: #3a4256;
  --radius:   12px;
  --shadow:   0 8px 40px rgba(26,42,42,.10);
}

/* ── Reset ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Outfit', 'Segoe UI', sans-serif;
  color: var(--navy);
  background: var(--white);
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ── Typography ────────────────────────────────── */
h1, h2, h3 { font-family: 'Lora', Georgia, serif; }

/* ── Utility Classes ───────────────────────────── */
.container { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }
.section-label {
  font-size: .73rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--teal); margin-bottom: .8rem;
}
.section-title {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 600; color: var(--navy);
  line-height: 1.2; margin-bottom: 1rem;
}
.section-sub {
  font-size: 1rem; color: var(--gray-400);
  line-height: 1.7; max-width: 540px; margin-bottom: 3rem;
}
.title-underline {
  width: 48px; height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--teal-lt));
  border-radius: 2px; margin-bottom: 1.4rem;
}
.btn-primary {
  background: var(--teal); color: #fff;
  padding: .85rem 2rem; border-radius: 50px;
  font-weight: 600; font-size: .95rem;
  display: inline-flex; align-items: center; gap: .5rem;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 4px 20px rgba(45,95,99,.35);
}
.btn-primary:hover { background: #3d8589; transform: translateY(-2px); }
.btn-secondary {
  background: transparent; color: #fff;
  border: 1.5px solid rgba(255,255,255,.4);
  padding: .85rem 2rem; border-radius: 50px;
  font-weight: 500; font-size: .95rem;
  transition: border-color .2s, background .2s;
}
.btn-secondary:hover { border-color: #fff; background: rgba(255,255,255,.08); }

/* ── Top Bar ───────────────────────────────────── */
.site-topbar {
  background: var(--navy); color: rgba(255,255,255,.75);
  font-size: .78rem; letter-spacing: .03em;
  padding: .45rem 2rem;
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  position: sticky; top: 0; z-index: 101;
}
.site-topbar a { color: rgba(255,255,255,.85); }
.site-topbar a:hover { color: #fff; }
.topbar-contact { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.topbar-phone-item { display: flex; align-items: center; gap: 6px; color: rgba(255,255,255,.8); }
.topbar-phone-item strong { color: #fff; }
.topbar-phone-item svg { opacity: .7; flex-shrink: 0; }
.topbar-sep { color: rgba(255,255,255,.2); font-size: 1rem; }
.topbar-social { display: flex; align-items: center; gap: .8rem; }
.topbar-social a {
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(255,255,255,.10);
  display: grid; place-items: center; transition: background .2s;
}
.topbar-social a:hover { background: var(--teal); }
.topbar-social svg { width: 14px; height: 14px; fill: #fff; }

/* ── Navigation ────────────────────────────────── */
.site-header {
  position: sticky; top: 38px; z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-100);
  padding: 0 2.5rem; height: 70px;
  display: flex; align-items: center; justify-content: space-between;
  box-shadow: 0 2px 16px rgba(26,42,42,.07);
  transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: 0 4px 24px rgba(26,42,42,.12); }
.site-branding img { height: 36px; width: auto; display: block; }
.main-navigation { display: flex; align-items: center; }
.main-navigation ul { display: flex; align-items: center; gap: 2rem; }
.main-navigation ul li a {
  font-size: .88rem; font-weight: 500; color: var(--gray-700);
  letter-spacing: .01em; transition: color .2s; position: relative;
}
.main-navigation ul li a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--teal);
  transform: scaleX(0); transition: transform .2s;
}
.main-navigation ul li a:hover { color: var(--teal); }
.main-navigation ul li a:hover::after { transform: scaleX(1); }
.nav-cta a {
  background: var(--teal) !important; color: #fff !important;
  padding: .55rem 1.4rem !important; border-radius: 50px !important;
  font-weight: 600 !important; font-size: .85rem !important;
  transition: background .2s, transform .15s !important;
}
.nav-cta a::after { display: none !important; }
.nav-cta a:hover { background: var(--navy) !important; transform: translateY(-1px) !important; }
.menu-toggle {
  display: none; cursor: pointer;
  flex-direction: column; gap: 5px; background: none; border: none; padding: 4px;
}
.menu-toggle span { width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: .3s; display: block; }

/* ── Hero ──────────────────────────────────────── */
.hero-section {
  position: relative; min-height: 92vh;
  display: flex; align-items: center; overflow: hidden;
  background: var(--navy);
}
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #111d1d 0%, #1a3335 45%, #0e2424 100%);
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 70% 50%, rgba(45,95,99,.28) 0%, transparent 70%);
  animation: heroPulse 6s ease-in-out infinite alternate;
}
.hero-bg::before {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 60px 60px;
}
@keyframes heroPulse { from { opacity:.7; } to { opacity:1; } }
.hero-content {
  position: relative; z-index: 2;
  max-width: 720px; padding: 4rem 2.5rem 4rem 6vw;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.4);
  color: #fff; font-size: .75rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  padding: .35rem .9rem; border-radius: 50px; margin-bottom: 1.5rem;
}
.hero-badge::before {
  content: ''; width: 6px; height: 6px;
  background: #fff; border-radius: 50%;
  animation: blink 1.5s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }
.hero-section h1 {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 600; color: #fff; line-height: 1.15; margin-bottom: 1.3rem;
}
.hero-section h1 em { font-style: italic; color: var(--teal-lt); }
.hero-section .hero-desc {
  font-size: 1.05rem; color: rgba(255,255,255,.72);
  line-height: 1.7; max-width: 520px; margin-bottom: 2.2rem;
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stats {
  position: absolute; right: 5vw; bottom: 10%;
  display: flex; gap: 2rem; z-index: 2;
}
.hero-stat {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(10px); border-radius: var(--radius);
  padding: 1.2rem 1.6rem; text-align: center; min-width: 110px;
}
.hero-stat-num {
  font-family: 'Lora', Georgia, serif;
  font-size: 2rem; font-weight: 600; color: #fff;
}
.hero-stat-label {
  font-size: .72rem; color: rgba(255,255,255,.6);
  letter-spacing: .04em; text-transform: uppercase; margin-top: .2rem;
}
.hero-deco {
  position: absolute; right: -80px; top: 50%; transform: translateY(-50%);
  width: 600px; height: 600px; border-radius: 50%;
  border: 1px solid rgba(45,95,99,.15); pointer-events: none;
}
.hero-deco::after {
  content: ''; position: absolute; inset: 60px;
  border-radius: 50%; border: 1px solid rgba(45,95,99,.1);
}

/* ── Ticker ────────────────────────────────────── */
.ticker-section { background: var(--teal); padding: .7rem 0; overflow: hidden; }
.ticker-inner {
  display: flex; gap: 3rem;
  animation: tickerScroll 30s linear infinite; white-space: nowrap;
}
.ticker-inner span {
  color: #fff; font-size: .8rem; font-weight: 500;
  letter-spacing: .05em; text-transform: uppercase; flex-shrink: 0;
}
.ticker-inner span::before { content: '✦'; margin-right: .8rem; opacity: .7; }
@keyframes tickerScroll { from{transform:translateX(0);} to{transform:translateX(-50%);} }

/* ── Sections ──────────────────────────────────── */
section { padding: 6rem 2.5rem; }

/* About */
.about-section { background: var(--gray-50); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-img-main {
  width: 100%; border-radius: 16px; aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--navy) 0%, var(--teal) 100%);
  display: grid; place-items: center; overflow: hidden; position: relative;
}
.about-img-main svg { width: 120px; height: 120px; fill: rgba(255,255,255,.15); }
.about-badge-float {
  position: absolute; bottom: -20px; right: -20px;
  background: var(--gold); color: #fff; border-radius: var(--radius);
  padding: 1.2rem 1.6rem; font-weight: 700; font-size: 1.4rem;
  text-align: center; box-shadow: var(--shadow);
}
.about-badge-float small { display: block; font-size: .72rem; font-weight: 500; opacity: .85; }
.about-img-wrap { position: relative; }
.about-pillars { display: flex; flex-direction: column; gap: .9rem; margin-top: 2rem; }
.pillar {
  display: flex; align-items: flex-start; gap: 1rem;
  background: #fff; border-radius: var(--radius);
  padding: 1rem 1.2rem; box-shadow: 0 2px 12px rgba(26,42,42,.06);
  transition: transform .2s, box-shadow .2s;
}
.pillar:hover { transform: translateX(4px); box-shadow: 0 4px 20px rgba(26,42,42,.1); }
.pillar-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-lt) 100%);
  border-radius: 10px; display: grid; place-items: center;
}
.pillar-icon svg { width: 20px; height: 20px; fill: #fff; }
.pillar h4 { font-size: .9rem; font-weight: 600; color: var(--navy); margin-bottom: .2rem; }
.pillar p  { font-size: .82rem; color: var(--gray-400); line-height: 1.5; }

/* Specialties */
.specialties-section { background: #fff; }
.spec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap: 1.5rem; }
.spec-card {
  border: 1.5px solid var(--gray-100); border-radius: 16px;
  padding: 2rem 1.6rem; transition: border-color .25s, box-shadow .25s, transform .25s;
  position: relative; overflow: hidden;
}
.spec-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--teal-lt));
  transform: scaleX(0); transition: transform .3s;
}
.spec-card:hover { border-color: var(--teal-lt); box-shadow: 0 12px 40px rgba(45,95,99,.12); transform: translateY(-4px); }
.spec-card:hover::before { transform: scaleX(1); }
.spec-icon {
  width: 52px; height: 52px; background: var(--gray-50);
  border-radius: 14px; display: grid; place-items: center;
  margin-bottom: 1.2rem; transition: background .25s;
}
.spec-card:hover .spec-icon { background: rgba(45,95,99,.1); }
.spec-icon svg { width: 28px; height: 28px; fill: var(--teal); }
.spec-card h3 { font-size: 1rem; font-weight: 600; color: var(--navy); margin-bottom: .5rem; }
.spec-card p  { font-size: .83rem; color: var(--gray-400); line-height: 1.6; margin-bottom: 1.2rem; }
.spec-link {
  font-size: .8rem; font-weight: 600; color: var(--teal);
  display: inline-flex; align-items: center; gap: .3rem; transition: gap .2s;
}
.spec-link:hover { gap: .6rem; }

/* Stats Band */
.stats-band {
  background: linear-gradient(135deg, var(--navy) 0%, #0f2a2a 100%);
  padding: 5rem 2.5rem; position: relative; overflow: hidden;
}
.stats-band::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 20% 50%, rgba(45,95,99,.2) 0%, transparent 50%),
                    radial-gradient(circle at 80% 50%, rgba(201,168,76,.1) 0%, transparent 50%);
}
.stats-grid {
  position: relative; display: grid;
  grid-template-columns: repeat(4,1fr); gap: 2rem; text-align: center;
}
.stat-item { padding: 1.5rem; }
.stat-num { font-family: 'Lora', Georgia, serif; font-size: 3rem; font-weight: 600; color: #fff; line-height: 1; }
.stat-unit { font-size: 1.5rem; color: #fff; }
.stat-label { font-size: .83rem; color: rgba(255,255,255,.65); margin-top: .5rem; letter-spacing: .02em; }

/* Facilities */
.facilities-section { background: var(--gray-50); }
.facilities-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 1rem; }
.fac-card-main {
  border-radius: 20px; overflow: hidden; position: relative;
  background: linear-gradient(135deg, var(--navy) 0%, var(--teal) 100%);
  min-height: 400px; display: flex; align-items: flex-end;
  padding: 2.5rem; grid-row: span 2;
}
.fac-card-main::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(26,42,42,.85) 0%, transparent 60%);
}
.fac-main-content { position: relative; color: #fff; }
.fac-main-content h3 { font-family: 'Lora', Georgia, serif; font-size: 1.6rem; font-weight: 600; margin-bottom: .6rem; }
.fac-main-content p { font-size: .9rem; opacity: .8; line-height: 1.6; }
.fac-small {
  background: #fff; border-radius: 16px; padding: 1.8rem;
  display: flex; gap: 1.2rem; align-items: flex-start;
  box-shadow: 0 2px 16px rgba(26,42,42,.06); transition: box-shadow .2s, transform .2s;
}
.fac-small:hover { box-shadow: 0 8px 30px rgba(26,42,42,.1); transform: translateY(-3px); }
.fac-small-icon {
  width: 48px; height: 48px; flex-shrink: 0; border-radius: 12px;
  background: linear-gradient(135deg, var(--teal), var(--teal-lt));
  display: grid; place-items: center;
}
.fac-small-icon svg { width: 24px; height: 24px; fill: #fff; }
.fac-small h4 { font-size: .95rem; font-weight: 600; color: var(--navy); margin-bottom: .35rem; }
.fac-small p  { font-size: .82rem; color: var(--gray-400); line-height: 1.55; }

/* Model */
.model-section { background: #fff; }
.model-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; }
.model-card {
  text-align: center; padding: 2.5rem 1.8rem;
  border-radius: 16px; border: 1.5px solid var(--gray-100);
  transition: border-color .25s, box-shadow .25s;
}
.model-card:hover { border-color: var(--teal-lt); box-shadow: 0 8px 30px rgba(45,95,99,.1); }
.model-icon-wrap {
  width: 64px; height: 64px; border-radius: 16px;
  background: linear-gradient(135deg, var(--teal), var(--navy));
  display: grid; place-items: center; margin: 0 auto 1.2rem;
}
.model-icon-wrap svg { width: 32px; height: 32px; fill: #fff; }
.model-card h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: .5rem; }
.model-card p  { font-size: .83rem; color: var(--gray-400); line-height: 1.6; }

/* Testimonials */
.testimonials-section { background: var(--navy); }
.testimonials-section .section-title { color: #fff; }
.testimonials-section .section-label { color: var(--teal-lt); }
.testi-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.testi-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px; padding: 2rem; transition: background .2s;
}
.testi-card:hover { background: rgba(255,255,255,.09); }
.stars { color: var(--gold); font-size: 1.1rem; letter-spacing: 2px; margin-bottom: 1rem; }
.testi-card blockquote { font-size: .9rem; color: rgba(255,255,255,.8); line-height: 1.7; font-style: italic; margin-bottom: 1.4rem; }
.testi-author { display: flex; align-items: center; gap: .9rem; }
.testi-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--teal-lt));
  display: grid; place-items: center; font-weight: 700; color: #fff; font-size: .85rem; flex-shrink: 0;
}
.testi-name  { font-weight: 600; color: #fff; font-size: .88rem; }
.testi-role  { font-size: .76rem; color: rgba(255,255,255,.5); }

/* CTA Band */
.cta-band {
  background: linear-gradient(135deg, var(--teal) 0%, #1e4446 100%);
  padding: 5rem 2.5rem; text-align: center; position: relative; overflow: hidden;
}
.cta-band h2 { font-family: 'Lora', Georgia, serif; font-size: clamp(1.8rem,3vw,2.6rem); color: #fff; font-weight: 600; margin-bottom: .8rem; }
.cta-band p  { color: rgba(255,255,255,.8); font-size: 1rem; margin-bottom: 2rem; }
.cta-band .btn-primary { background: #fff; color: var(--teal); }
.cta-band .btn-primary:hover { background: var(--navy); color: #fff; }

/* Certifications */
/* ── Convenios ── */
.convenios-section {
  background: var(--navy);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}
.convenios-section::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 100%, rgba(45,95,99,.35) 0%, transparent 70%);
  pointer-events: none;
}
.convenios-header {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}
.convenios-header .section-label { color: var(--teal-lt); }
.convenios-header h3 {
  font-size: 2rem; color: #fff; margin-bottom: .6rem;
}
.convenios-header p { font-size: .92rem; color: rgba(255,255,255,.5); }

.convenios-track {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0 1.5rem;
  position: relative;
}

.convenio-card {
  position: relative;
  width: 168px; height: 96px;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  box-shadow: 0 4px 24px rgba(0,0,0,.35);
  transition: transform .32s cubic-bezier(.22,1,.36,1),
              box-shadow .32s cubic-bezier(.22,1,.36,1);
}
.convenio-card:hover {
  transform: translateY(-6px) scale(1.04);
  box-shadow: 0 16px 48px rgba(0,0,0,.45);
}
.convenio-card img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 14px 18px;
  display: block;
  transition: transform .45s cubic-bezier(.22,1,.36,1);
}
.convenio-card:hover img { transform: scale(1.06); }
/* Cards con fondo de color (AXA, Allianz) no necesitan padding extra */
.convenio-card.dark-bg img { padding: 10px 14px; }

/* shimmer on hover */
.convenio-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg,
    rgba(255,255,255,.18) 0%,
    rgba(255,255,255,0) 55%,
    rgba(255,255,255,.08) 100%);
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
  border-radius: 16px;
}
.convenio-card:hover::after { opacity: 1; }

/* borde luminoso sutil */
.convenio-card::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
  z-index: 2;
  pointer-events: none;
}

/* responsive */
@media (max-width: 640px) {
  .convenio-card { width: 155px; height: 86px; }
}
.certifications-section { background: #fff; padding: 4rem 2.5rem; }
.cert-band {
  background: var(--gray-50); border-radius: 20px; padding: 3rem;
  display: flex; align-items: center; gap: 3rem; flex-wrap: wrap;
}
.cert-band-text { flex: 1; min-width: 220px; }
.cert-band-text h3 { font-family: 'Lora', Georgia, serif; font-size: 1.4rem; color: var(--navy); margin-bottom: .5rem; }
.cert-band-text p  { font-size: .85rem; color: var(--gray-400); line-height: 1.6; }
.cert-logos { display: flex; gap: 1.5rem; flex-wrap: wrap; align-items: center; }
.cert-logo {
  width: 70px; height: 70px; background: #fff; border-radius: 12px;
  display: grid; place-items: center; box-shadow: 0 2px 12px rgba(26,42,42,.08);
  font-size: .55rem; font-weight: 700; color: var(--navy);
  text-align: center; letter-spacing: .04em; text-transform: uppercase;
  line-height: 1.3; padding: .4rem;
}

/* Contact */
.contact-section { background: var(--gray-50); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; align-items: start; }
.contact-info h3 { font-family: 'Lora', Georgia, serif; font-size: 1.5rem; color: var(--navy); margin-bottom: 1.5rem; }
.contact-items { display: flex; flex-direction: column; gap: 1.2rem; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-item-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: var(--teal); border-radius: 10px; display: grid; place-items: center;
}
.contact-item-icon svg { width: 20px; height: 20px; fill: #fff; }
.contact-item strong { display: block; font-size: .88rem; color: var(--navy); margin-bottom: .2rem; }
.contact-item span   { font-size: .83rem; color: var(--gray-400); line-height: 1.5; }
.contact-form { background: #fff; border-radius: 20px; padding: 2.5rem; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1rem; }
.form-group label { font-size: .8rem; font-weight: 600; color: var(--navy); letter-spacing: .02em; }
.form-group input,
.form-group select,
.form-group textarea {
  border: 1.5px solid var(--gray-100); border-radius: 10px;
  padding: .75rem 1rem; font-family: inherit; font-size: .88rem;
  color: var(--navy); outline: none; transition: border-color .2s;
  background: var(--gray-50); width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--teal); background: #fff; }
.form-group textarea { resize: vertical; min-height: 100px; }
.btn-form {
  width: 100%; background: var(--teal); color: #fff; border: none;
  border-radius: 50px; padding: .9rem 2rem; font-family: inherit;
  font-size: .95rem; font-weight: 600; cursor: pointer;
  transition: background .2s, transform .15s;
  display: flex; align-items: center; justify-content: center; gap: .5rem;
}
.btn-form:hover { background: var(--navy); transform: translateY(-1px); }

/* Footer */
.site-footer { background: var(--navy); color: rgba(255,255,255,.65); padding: 4rem 2.5rem 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand img { height: 32px; width: auto; filter: brightness(0) invert(1) opacity(.85); margin-bottom: .8rem; }
.footer-tagline { font-size: .83rem; line-height: 1.6; margin-bottom: 1.4rem; }
.footer-social { display: flex; gap: .7rem; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.08); display: grid; place-items: center; transition: background .2s;
}
.footer-social a:hover { background: var(--teal); }
.footer-social svg { width: 16px; height: 16px; fill: #fff; }
.site-footer h4 {
  font-size: .8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: rgba(255,255,255,.9); margin-bottom: 1.2rem;
}
.site-footer ul { display: flex; flex-direction: column; gap: .7rem; }
.site-footer ul li a { font-size: .83rem; color: rgba(255,255,255,.55); transition: color .2s; }
.site-footer ul li a:hover { color: var(--teal-lt); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.5rem;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  font-size: .78rem;
}
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { color: rgba(255,255,255,.45); transition: color .2s; }
.footer-legal a:hover { color: #fff; }

/* Float Buttons */
.float-actions { position: fixed; bottom: 2rem; right: 2rem; display: flex; flex-direction: column; gap: .7rem; z-index: 200; }
.float-btn { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 4px 20px rgba(0,0,0,.25); transition: transform .2s; }
.float-btn:hover { transform: scale(1.1); }
.float-btn svg { width: 24px; height: 24px; fill: #fff; }
.float-wa   { background: #25d366; }
.float-mail { background: var(--teal); }

/* Responsive */
@media (max-width: 1024px) {
  .hero-stats { position: relative; right: auto; bottom: auto; padding: 2rem 2.5rem; display: flex; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
  .site-topbar { display: none; }
  .site-header { padding: 0 1.5rem; }
  .main-navigation ul { display: none; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0; background: #fff; padding: 1.5rem; border-bottom: 1px solid var(--gray-100); box-shadow: 0 8px 30px rgba(0,0,0,.08); }
  .main-navigation ul.toggled { display: flex; }
  .menu-toggle { display: flex; }
  .hero-content { padding: 3rem 1.5rem; }
  .hero-stats { flex-wrap: wrap; padding: 1.5rem; gap: 1rem; }
  .hero-deco { display: none; }
  section { padding: 4rem 1.5rem; }
  .about-grid, .contact-grid, .facilities-grid { grid-template-columns: 1fr; }
  .fac-card-main { grid-row: span 1; min-height: 280px; }
  .spec-grid, .model-grid, .testi-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .form-row { grid-template-columns: 1fr; }
  .cert-band { flex-direction: column; }
}

/* ── ACORDEÓN INSTALACIONES ── */
.rv-accordion { display: flex; flex-direction: column; gap: 1rem; margin-top: 2rem; }

.rv-acc-item {
  border: 1px solid rgba(32,98,98,.18);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}

.rv-acc-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 1.2rem 1.6rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  text-align: left;
  transition: background 140ms;
}
.rv-acc-trigger:hover { background: #f0f7f7; }
.rv-acc-open .rv-acc-trigger { background: var(--teal); color: #fff; }

.rv-acc-icon {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  background: rgba(32,98,98,.1);
  color: var(--teal);
  transition: background 140ms, color 140ms;
}
.rv-acc-open .rv-acc-icon { background: rgba(255,255,255,.2); color: #fff; }

.rv-acc-chevron {
  margin-left: auto;
  flex-shrink: 0;
  transition: transform 280ms ease;
}
.rv-acc-open .rv-acc-chevron { transform: rotate(180deg); }

.rv-acc-body { padding: 1.5rem 1.6rem 1.8rem; }

/* ── INSTALACIONES DROPDOWN ── */
#nav-instalaciones { position: relative; }

.rv-dropdown {
  list-style: none;
  margin: 0 !important;
  padding: 8px !important;
  gap: 6px !important;
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  width: 240px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,.12), 0 1px 4px rgba(0,0,0,.06);
  border: 1px solid rgba(32,98,98,.12);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
  z-index: 9999;
  /* forzar columna vertical sin importar el layout del menú padre */
  display: flex !important;
  flex-direction: column !important;
  float: none !important;
}

/* caret */
.rv-dropdown::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-bottom-color: #fff;
  border-top: none;
  filter: drop-shadow(0 -2px 2px rgba(32,98,98,.1));
}

#nav-instalaciones:hover .rv-dropdown,
#nav-instalaciones:focus-within .rv-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.rv-drop-item {
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  width: 100% !important;
}

.rv-drop-item a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 14px;
  border-radius: 10px;
  text-decoration: none;
  transition: background 140ms ease;
  color: inherit;
}

.rv-drop-hospital a {
  background: var(--teal);
  margin-bottom: 0;
}
.rv-drop-hospital a:hover { background: #174f4f; }

.rv-drop-consultorios a {
  background: #e8f4f4;
  border: 1px solid rgba(32,98,98,.18);
}
.rv-drop-consultorios a:hover { background: #d0ebeb; }

.rv-drop-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rv-drop-hospital .rv-drop-icon { background: rgba(255,255,255,.2); color: #fff; }
.rv-drop-consultorios .rv-drop-icon { background: rgba(32,98,98,.12); color: var(--teal); }

.rv-drop-text { display: flex; flex-direction: column; gap: 2px; }
.rv-drop-text strong { font-size: .9rem; font-weight: 700; line-height: 1; }
.rv-drop-text small  { font-size: .75rem; opacity: .8; line-height: 1; }
.rv-drop-hospital .rv-drop-text strong,
.rv-drop-hospital .rv-drop-text small  { color: #fff; }
.rv-drop-consultorios .rv-drop-text strong { color: var(--teal); }
.rv-drop-consultorios .rv-drop-text small  { color: #3a7070; }

/* mobile: mostrar como lista normal */
@media (max-width: 768px) {
  .rv-dropdown {
    position: static;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0 0 0 1rem;
    display: none;
  }
  #nav-instalaciones.open .rv-dropdown { display: block; }
  .rv-dropdown::before { display: none; }
}

/* ── BOTÓN CONTÁCTANOS ── */
.nav-contactanos { position: relative; list-style: none; }

.nav-contactanos-btn {
  background: #e8f4f4;
  color: var(--teal);
  border: 1.5px solid rgba(32,98,98,.3);
  padding: 8px 18px;
  border-radius: 24px;
  font-size: .88rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 140ms;
  white-space: nowrap;
}
.nav-contactanos-btn:hover { background: #d0ebeb; }

.rv-contact-dropdown {
  list-style: none;
  margin: 0;
  padding: 8px !important;
  gap: 6px !important;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 240px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,.12), 0 1px 4px rgba(0,0,0,.06);
  border: 1px solid rgba(32,98,98,.12);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
  transform: translateY(-6px);
  z-index: 9999;
  display: flex !important;
  flex-direction: column !important;
  float: none !important;
}
.rv-contact-dropdown::before {
  content: '';
  position: absolute;
  top: -8px; right: 28px;
  border: 8px solid transparent;
  border-bottom-color: #fff;
  border-top: none;
}
.nav-contactanos:hover .rv-contact-dropdown,
.nav-contactanos:focus-within .rv-contact-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.rv-contact-dropdown li {
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  width: 100% !important;
}

.rv-cd-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  text-decoration: none;
  transition: background 140ms;
}
.rv-cd-hosp { background: var(--teal); margin-bottom: 0; }
.rv-cd-hosp:hover { background: #174f4f; }
.rv-cd-cons { background: #e8f4f4; border: 1px solid rgba(32,98,98,.18); }
.rv-cd-cons:hover { background: #d0ebeb; }

.rv-cd-icon {
  flex-shrink: 0;
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.rv-cd-hosp .rv-cd-icon { background: rgba(255,255,255,.18); color: #fff; }
.rv-cd-cons .rv-cd-icon { background: rgba(32,98,98,.12); color: var(--teal); }

.rv-cd-text { display: flex; flex-direction: column; gap: 1px; }
.rv-cd-text strong { font-size: .88rem; font-weight: 700; line-height: 1.2; }
.rv-cd-text small  { font-size: .75rem; opacity: .8; line-height: 1.2; }
.rv-cd-hosp .rv-cd-text strong,
.rv-cd-hosp .rv-cd-text small { color: #fff; }
.rv-cd-cons .rv-cd-text strong { color: var(--teal); }
.rv-cd-cons .rv-cd-text small  { color: #3a7070; }

/* ── BARRA CONTACTO ── */
.contact-bar {
  background: var(--teal);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  position: sticky;
  top: 72px;
  z-index: 99;
}
.contact-bar-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 12px;
  font-size: .78rem;
  color: rgba(255,255,255,.85);
  border-right: 1px solid rgba(255,255,255,.12);
  text-decoration: none;
  transition: background 140ms, color 140ms;
  white-space: nowrap;
}
.contact-bar-item:last-child { border-right: none; }
.contact-bar-item:hover { background: rgba(255,255,255,.08); color: #fff; }
.contact-bar-item svg { opacity: .7; flex-shrink: 0; }
.contact-bar-item strong { color: #fff; font-weight: 700; }

/* ── DROPDOWN CONTÁCTANOS — grupos anidados ── */
.rv-contact-dropdown {
  list-style: none;
  margin: 0;
  padding: 8px !important;
  gap: 6px !important;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 270px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,.12), 0 1px 4px rgba(0,0,0,.06);
  border: 1px solid rgba(32,98,98,.12);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
  transform: translateY(-6px);
  z-index: 9999;
  display: flex !important;
  flex-direction: column !important;
  float: none !important;
}
.rv-contact-dropdown::before {
  content: '';
  position: absolute;
  top: -8px; right: 28px;
  border: 8px solid transparent;
  border-bottom-color: #fff;
  border-top: none;
}
.nav-contactanos:hover .rv-contact-dropdown,
.nav-contactanos:focus-within .rv-contact-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.rv-cd-group { display: flex; flex-direction: column; }

.rv-cd-trigger {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  border: none;
  font-family: inherit;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: background 140ms;
}
.rv-cd-teal { background: var(--teal); margin-bottom: 0; }
.rv-cd-teal:hover { background: #174f4f; }
.rv-cd-light { background: #e8f4f4; border: 1px solid rgba(32,98,98,.18) !important; }
.rv-cd-light:hover { background: #d0ebeb; }

.rv-cd-trigger .rv-cd-icon {
  flex-shrink: 0;
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.rv-cd-teal .rv-cd-icon { background: rgba(255,255,255,.18); color: #fff; }
.rv-cd-light .rv-cd-icon { background: rgba(32,98,98,.12); color: var(--teal); }

.rv-cd-trigger .rv-cd-text { display: flex; flex-direction: column; gap: 1px; flex: 1; }
.rv-cd-trigger .rv-cd-text strong { font-size: .88rem; font-weight: 700; line-height: 1.2; }
.rv-cd-trigger .rv-cd-text small  { font-size: .72rem; opacity: .8; line-height: 1.2; }
.rv-cd-teal .rv-cd-text strong,
.rv-cd-teal .rv-cd-text small { color: #fff; }
.rv-cd-light .rv-cd-text strong { color: var(--teal); }
.rv-cd-light .rv-cd-text small  { color: #3a7070; }

.rv-cd-chevron { margin-left: auto; flex-shrink: 0; transition: transform 220ms ease; }
.rv-cd-teal .rv-cd-chevron { stroke: rgba(255,255,255,.8); }
.rv-cd-light .rv-cd-chevron { stroke: var(--teal); }
.rv-cd-trigger[aria-expanded="true"] .rv-cd-chevron { transform: rotate(180deg); }

.rv-cd-panel {
  background: #f4f8f8;
  border-radius: 0 0 10px 10px;
  padding: 4px 8px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.rv-cd-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-size: .82rem;
  color: var(--navy);
  background: #fff;
  border: 1px solid rgba(32,98,98,.1);
  transition: background 120ms;
}
.rv-cd-phone:hover { background: #e8f4f4; }
.rv-cd-phone span { flex: 1; color: #3a7070; }
.rv-cd-phone strong { color: var(--teal); font-weight: 700; }
.rv-cd-phone svg { opacity: .6; flex-shrink: 0; }

/* ── BOTONES FLOTANTES REDES SOCIALES ── */
.float-actions {
  position: fixed;
  right: 1.2rem;
  bottom: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 9998;
}
.float-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.18);
  transition: transform 160ms ease, box-shadow 160ms ease;
  text-decoration: none;
}
.float-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 22px rgba(0,0,0,.26);
}
.float-fb { background: transparent; }
.float-ig { background: transparent; }
