/* ============================================================
   Clínica Metabólica y Control de Peso — Hoja de estilos
   Paleta basada en el logo: verde salud + gris pizarra
   ============================================================ */

:root {
  --green: #6bae3e;
  --green-dark: #4d8a2a;
  --green-soft: #eaf4e1;
  --green-softer: #f4f9ee;
  --slate: #3e4650;
  --slate-dark: #2b323a;
  --slate-soft: #5b6673;
  --text: #333b43;
  --muted: #6b7480;
  --bg: #ffffff;
  --bg-alt: #f6f9f3;
  --border: #e4e9e0;
  --white: #ffffff;
  --shadow-sm: 0 2px 10px rgba(45, 55, 45, 0.06);
  --shadow-md: 0 10px 30px rgba(45, 55, 45, 0.10);
  --shadow-lg: 0 20px 50px rgba(45, 55, 45, 0.14);
  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 1180px;
  --font: "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { color: var(--slate); line-height: 1.2; font-weight: 700; }

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

.section { padding: 76px 0; }
.section--alt { background: var(--bg-alt); }
.section--tight { padding: 54px 0; }

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 14px;
}

.section-title { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin-bottom: 16px; }
.section-lead { color: var(--muted); font-size: 1.05rem; max-width: 720px; }
.center { text-align: center; }
.center .section-lead { margin-left: auto; margin-right: auto; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.btn--primary { background: var(--green); color: #fff; box-shadow: 0 8px 20px rgba(107,174,62,.28); }
.btn--primary:hover { background: var(--green-dark); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--slate); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--green); color: var(--green-dark); }
.btn--light { background: #fff; color: var(--green-dark); }
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ============================================================
   Header / Navegación
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 78px;
}
.nav__brand { display: flex; align-items: center; gap: 12px; }
.nav__brand img { height: 54px; width: auto; }
.nav__brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.nav__brand-text strong { color: var(--slate); font-size: 1.02rem; letter-spacing: .3px; }
.nav__brand-text span { color: var(--green-dark); font-size: .72rem; letter-spacing: 1.5px; text-transform: uppercase; }

.nav__menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav__menu > li { position: relative; }
.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
  color: var(--slate);
  font-size: .97rem;
  transition: color .15s ease, background .15s ease;
}
.nav__link:hover, .nav__link.is-active { color: var(--green-dark); background: var(--green-soft); }
.nav__link .caret { font-size: .65rem; transition: transform .2s ease; }

/* Dropdown */
.dropdown__panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 320px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.nav__item--has-dropdown:hover .dropdown__panel,
.nav__item--has-dropdown:focus-within .dropdown__panel,
.dropdown__panel.is-open {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav__item--has-dropdown:hover .caret,
.dropdown__panel.is-open ~ .caret { transform: rotate(180deg); }
.dropdown__item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 11px 13px;
  border-radius: 10px;
  transition: background .15s ease;
}
.dropdown__item:hover { background: var(--green-softer); }
.dropdown__item .ico {
  flex: 0 0 38px; height: 38px; width: 38px;
  display: grid; place-items: center;
  background: #eef1ed; color: var(--slate-soft);
  border-radius: 10px;
  transition: background .18s ease, color .18s ease;
}
.dropdown__item .ico svg { width: 20px; height: 20px; }
.dropdown__item:hover .ico { background: var(--green-soft); color: var(--green-dark); }
.dropdown__item .txt strong { display: block; color: var(--slate); font-size: .95rem; }
.dropdown__item .txt small { color: var(--muted); font-size: .82rem; }

.nav__toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  padding: 8px;
}
.nav__toggle span {
  display: block; width: 26px; height: 3px; border-radius: 3px;
  background: var(--slate); margin: 5px 0; transition: .25s;
}
.nav__toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 520px at 78% -8%, var(--green-soft) 0%, rgba(234,244,225,0) 55%),
    radial-gradient(900px 600px at 6% 108%, #eef6e6 0%, rgba(238,246,230,0) 60%),
    linear-gradient(165deg, #fbfdf9 0%, #ffffff 55%);
}
.hero__blob {
  position: absolute; border-radius: 50%; z-index: 0;
  filter: blur(46px); opacity: .55; pointer-events: none;
}
.hero__blob--1 { width: 360px; height: 360px; top: -90px; right: -70px; background: radial-gradient(circle at 30% 30%, #b7e39a, #6bae3e); opacity: .35; }
.hero__blob--2 { width: 300px; height: 300px; bottom: -120px; left: -80px; background: radial-gradient(circle at 30% 30%, #d8ecc8, #9ccf6f); opacity: .3; }
.hero .container { position: relative; z-index: 1; }
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 54px;
  align-items: center;
  padding: 74px 0 88px;
}
.hero__pill {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(255,255,255,.75); border: 1px solid var(--green-soft);
  color: var(--green-dark); font-weight: 700; font-size: .82rem;
  padding: 8px 16px; border-radius: 999px; margin-bottom: 22px;
  box-shadow: var(--shadow-sm); backdrop-filter: blur(4px);
}
.hero__pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(107,174,62,.2); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 4px rgba(107,174,62,.2); } 50% { box-shadow: 0 0 0 7px rgba(107,174,62,0); } }
.hero__title { font-size: clamp(2.3rem, 5vw, 3.6rem); margin-bottom: 18px; letter-spacing: -0.5px; }
.hero__title .accent {
  background: linear-gradient(100deg, var(--green) 0%, var(--green-dark) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--green-dark);
}
.hero__text { font-size: 1.18rem; color: var(--slate-soft); margin-bottom: 30px; max-width: 500px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }
.hero__trust { display: flex; align-items: center; gap: 22px; }
.hero__trust-item strong { display: block; font-size: 1.7rem; font-weight: 800; color: var(--slate); line-height: 1; }
.hero__trust-item span { font-size: .82rem; color: var(--muted); }
.hero__trust-divider { width: 1px; height: 38px; background: var(--border); }

.hero__media { position: relative; }
.hero__media-frame {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); border: 6px solid #fff;
  transform: rotate(1.4deg);
}
.hero__media-frame img { width: 100%; display: block; }
.hero__media::before {
  content: ""; position: absolute; inset: -22px -22px auto auto;
  width: 150px; height: 150px; border-radius: 50%;
  border: 2px dashed rgba(107,174,62,.4); z-index: -1;
}
.hero__float {
  position: absolute; background: #fff; border-radius: 16px;
  box-shadow: var(--shadow-md); padding: 14px 18px;
  display: flex; align-items: center; gap: 13px; z-index: 2;
}
.hero__float--tl { top: 20px; left: -28px; animation: floaty 4s ease-in-out infinite; }
.hero__float--br { bottom: 24px; right: -22px; flex-direction: column; text-align: center; gap: 2px; animation: floaty 4.6s ease-in-out infinite reverse; }
.hero__float-ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--green-soft); color: var(--green-dark); }
.hero__float-ic svg { width: 22px; height: 22px; }
.hero__float strong { color: var(--slate); font-weight: 800; font-size: 1.05rem; display: block; line-height: 1.1; }
.hero__float .big { font-size: 1.7rem; font-weight: 800; color: var(--green-dark); }
.hero__float small { color: var(--muted); display: block; font-size: .78rem; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ============================================================
   Cards de servicios
   ============================================================ */
.grid { display: grid; gap: 26px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--green); }
.service-card__img { height: 194px; overflow: hidden; }
.service-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.service-card:hover .service-card__img img { transform: scale(1.06); }
.service-card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.service-card__num {
  display: inline-grid; place-items: center;
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--green-soft); color: var(--green-dark);
  font-weight: 800; font-size: .95rem; margin-bottom: 12px;
}
.service-card h3 { font-size: 1.16rem; margin-bottom: 9px; }
.service-card p { color: var(--muted); font-size: .95rem; margin-bottom: 16px; flex: 1; }
.service-card__link { color: var(--green-dark); font-weight: 700; font-size: .93rem; display: inline-flex; align-items: center; gap: 6px; }
.service-card__link::after { content: "→"; transition: transform .2s ease; }
.service-card:hover .service-card__link::after { transform: translateX(4px); }

/* ============================================================
   Calculadora IMC
   ============================================================ */
.imc {
  position: relative;
  background:
    radial-gradient(600px 300px at 12% 0%, rgba(107,174,62,.35) 0%, rgba(107,174,62,0) 60%),
    linear-gradient(150deg, #3f4956 0%, #2b323a 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.imc__glow {
  position: absolute; width: 340px; height: 340px; border-radius: 50%;
  bottom: -140px; right: -80px; z-index: 0;
  background: radial-gradient(circle at 40% 40%, rgba(107,174,62,.5), rgba(107,174,62,0) 70%);
  filter: blur(20px); pointer-events: none;
}
.imc__intro { position: relative; z-index: 1; padding: 50px 46px; }
.imc__eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: 2px;
  font-size: .74rem; font-weight: 700; color: #a9d98a; margin-bottom: 14px;
  background: rgba(169,217,138,.12); padding: 6px 13px; border-radius: 999px;
}
.imc__intro h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.15rem); margin-bottom: 14px; line-height: 1.15; }
.imc__intro > p { color: rgba(255,255,255,.8); margin-bottom: 20px; font-size: 1.02rem; }
.imc__perks { list-style: none; display: grid; gap: 11px; margin-bottom: 22px; }
.imc__perks li { display: flex; align-items: center; gap: 11px; color: rgba(255,255,255,.92); font-size: .96rem; }
.imc__perks .tick {
  flex: 0 0 22px; height: 22px; width: 22px; display: grid; place-items: center;
  background: var(--green); color: #fff; border-radius: 50%; font-size: .72rem; font-weight: 800;
}
.imc__note { font-size: .82rem; color: rgba(255,255,255,.55); border-left: 3px solid var(--green); padding-left: 14px; line-height: 1.55; }

.imc__panel { position: relative; z-index: 1; background: #fff; padding: 40px; color: var(--text); }
.imc__field { margin-bottom: 18px; }
.imc__field label { display: block; font-weight: 600; color: var(--slate); margin-bottom: 7px; font-size: .92rem; }
.imc__input { position: relative; display: flex; align-items: center; }
.imc__input input {
  width: 100%; padding: 14px 46px 14px 15px; border: 2px solid var(--border);
  border-radius: 12px; font-size: 1.05rem; font-family: inherit; transition: border-color .15s ease, box-shadow .15s ease;
}
.imc__input input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(107,174,62,.14); }
.imc__input .unit { position: absolute; right: 15px; color: var(--muted); font-weight: 600; font-size: .9rem; pointer-events: none; }
.imc__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 4px; }

.imc__placeholder {
  margin-top: 22px; padding: 30px 22px; border: 2px dashed var(--border);
  border-radius: 16px; text-align: center; color: var(--muted);
}
.imc__placeholder-ic { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--green-softer); color: var(--green-dark); margin-bottom: 10px; }
.imc__placeholder-ic svg { width: 26px; height: 26px; }
.imc__placeholder p { font-size: .92rem; }
.imc__placeholder.is-hidden { display: none; }

.imc__result {
  margin-top: 22px; padding: 24px; border-radius: 16px;
  background: var(--bg-alt); border: 1px solid var(--border); display: none;
}
.imc__result.is-visible { display: block; animation: fadeUp .35s ease; }
.imc__result-head { display: flex; align-items: center; gap: 16px; margin-bottom: 6px; }
.imc__value { font-size: 3rem; font-weight: 800; line-height: 1; color: var(--slate); }
.imc__badge { padding: 7px 15px; border-radius: 999px; font-weight: 700; font-size: .92rem; color: #fff; background: var(--green); }
.imc__desc { color: var(--muted); font-size: .92rem; margin-bottom: 20px; }
.imc__gauge { position: relative; margin-top: 8px; }
.imc__gauge-bar {
  height: 10px; border-radius: 6px;
  background: linear-gradient(90deg, #6ea8dc 0 18%, #4d8a2a 18% 42%, #f0b429 42% 62%, #e8804d 62% 80%, #d64545 80% 100%);
}
.imc__marker {
  position: absolute; top: -6px; left: 0; width: 22px; height: 22px;
  margin-left: -11px; border-radius: 50%; background: #fff;
  border: 4px solid var(--slate); box-shadow: var(--shadow-sm);
  transition: left .5s cubic-bezier(.34,1.56,.64,1);
}
.imc__gauge-labels { display: flex; justify-content: space-between; margin-top: 10px; }
.imc__gauge-labels span { font-size: .72rem; color: var(--muted); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ============================================================
   Estadísticas
   ============================================================ */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; padding: 24px 12px; }
.stat .num { font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 800; color: var(--green-dark); line-height: 1; }
.stat .lbl { color: var(--muted); margin-top: 8px; font-size: .93rem; }

/* ============================================================
   Bloques de contenido (Nosotros)
   ============================================================ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.split img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.split h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 16px; }
.split p { color: var(--slate-soft); margin-bottom: 14px; }

.feature-list { list-style: none; display: grid; gap: 12px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--text); }
.feature-list li::before {
  content: "✓"; flex: 0 0 24px; height: 24px; width: 24px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--green); color: #fff; font-size: .8rem; font-weight: 800; margin-top: 2px;
}

.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.mv-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 34px 30px; box-shadow: var(--shadow-sm);
}
.mv-card .ico {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: var(--green-soft); color: var(--green-dark); font-size: 1.5rem; margin-bottom: 16px;
}
.mv-card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.mv-card p { color: var(--muted); }

.chip-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
  background: #fff; border: 1px solid var(--border); border-radius: 999px;
  padding: 11px 20px; font-weight: 600; color: var(--slate); font-size: .92rem;
  display: inline-flex; align-items: center; gap: 9px; box-shadow: var(--shadow-sm);
}
.chip::before { content: "🏅"; }

/* ============================================================
   Página de servicio (detalle)
   ============================================================ */
.page-hero {
  background: linear-gradient(150deg, var(--green-softer), #fff);
  padding: 54px 0;
  border-bottom: 1px solid var(--border);
}
.breadcrumbs { font-size: .86rem; color: var(--muted); margin-bottom: 14px; }
.breadcrumbs a:hover { color: var(--green-dark); }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.page-hero p { color: var(--slate-soft); font-size: 1.08rem; max-width: 720px; margin-top: 12px; }

.detail { display: grid; grid-template-columns: 1.15fr .85fr; gap: 46px; align-items: start; }
.detail__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); position: sticky; top: 100px; }
.detail__body h2 { font-size: 1.5rem; margin: 28px 0 12px; }
.detail__body h2:first-child { margin-top: 0; }
.detail__body p { color: var(--slate-soft); margin-bottom: 14px; }

.include-list { list-style: none; display: grid; gap: 14px; margin-top: 6px; }
.include-list li {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: 12px; padding: 16px 18px;
}
.include-list li .ico { flex: 0 0 30px; color: var(--green-dark); font-size: 1.2rem; }
.include-list li strong { color: var(--slate); display: block; }
.include-list li span { color: var(--muted); font-size: .92rem; }

.cta-band {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: #fff; border-radius: var(--radius-lg); padding: 46px 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
}
.cta-band h2 { color: #fff; font-size: 1.7rem; }
.cta-band p { color: rgba(255,255,255,.9); margin-top: 6px; }

/* Otros servicios */
.mini-service {
  display: flex; gap: 14px; align-items: center;
  background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px;
  transition: border-color .18s ease, transform .18s ease;
}
.mini-service:hover { border-color: var(--green); transform: translateX(4px); }
.mini-service .ico { flex: 0 0 40px; height: 40px; width: 40px; display: grid; place-items: center; background: #eef1ed; color: var(--slate-soft); border-radius: 10px; transition: background .18s ease, color .18s ease; }
.mini-service .ico svg { width: 22px; height: 22px; }
.mini-service:hover .ico { background: var(--green-soft); color: var(--green-dark); }
.mini-service strong { color: var(--slate); font-size: .96rem; }

/* ============================================================
   Contacto
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
.contact-card {
  display: flex; gap: 16px; align-items: flex-start;
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  padding: 20px; margin-bottom: 16px; box-shadow: var(--shadow-sm);
}
.contact-card > span:last-child { min-width: 0; }
.contact-card .ico {
  flex: 0 0 48px; height: 48px; width: 48px; display: grid; place-items: center;
  background: var(--green-soft); color: var(--green-dark); border-radius: 12px; font-size: 1.3rem;
}
.contact-card h4 { margin-bottom: 3px; font-size: 1.02rem; }
.contact-card a, .contact-card p, .contact-card span { color: var(--muted); font-size: .95rem; overflow-wrap: anywhere; word-break: break-word; }
.contact-card h4 { color: var(--slate); }
.contact-card a:hover { color: var(--green-dark); }

.form-panel {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 34px; box-shadow: var(--shadow-sm);
}
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-weight: 600; color: var(--slate); margin-bottom: 6px; font-size: .92rem; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 12px 14px; border: 2px solid var(--border); border-radius: 11px;
  font-family: inherit; font-size: 1rem; transition: border-color .15s ease;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: var(--green); }
.form-field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: .82rem; color: var(--muted); margin-top: 6px; }
.form-success { display: none; background: var(--green-soft); color: var(--green-dark); border-radius: 12px; padding: 16px; font-weight: 600; margin-bottom: 16px; }
.form-success.is-visible { display: block; }

.map-embed { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--border); margin-top: 30px; }
.map-embed iframe { display: block; width: 100%; height: 320px; border: 0; }

/* ============================================================
   Footer
   ============================================================ */
.footer { background: var(--slate-dark); color: rgba(255,255,255,.75); padding: 56px 0 26px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 34px; }
.footer__brand img { height: 58px; margin-bottom: 14px; filter: brightness(0) invert(1); opacity: .95; }
.footer__brand p { font-size: .92rem; line-height: 1.7; }
.footer h5 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer ul { list-style: none; display: grid; gap: 10px; }
.footer ul a { font-size: .92rem; transition: color .15s ease; }
.footer ul a:hover { color: var(--green); }
.footer__contact li { display: flex; gap: 10px; font-size: .92rem; align-items: flex-start; overflow-wrap: anywhere; word-break: break-word; }
.footer__contact .ico { color: var(--green); flex: 0 0 auto; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 20px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: .85rem; color: rgba(255,255,255,.55);
}
.footer__bottom a { color: var(--green); font-weight: 600; }
.footer__bottom a:hover { color: #8fce5f; text-decoration: underline; }

/* ============================================================
   Responsivo
   ============================================================ */
@media (max-width: 980px) {
  .hero__grid, .split, .detail, .contact-grid { grid-template-columns: 1fr; }
  .hero__grid { padding: 40px 0 54px; }
  .imc { grid-template-columns: 1fr; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .detail__media img { position: static; }
  .hero__media { max-width: 520px; margin: 8px auto 0; }
  .hero__float--tl { left: 6px; }
  .hero__float--br { right: 6px; }
}

@media (max-width: 720px) {
  .nav__toggle { display: block; }
  .nav__menu {
    position: fixed; inset: 78px 0 auto 0;
    background: #fff; flex-direction: column; align-items: stretch;
    gap: 2px; padding: 14px 18px 24px; border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    transform: translateY(-140%); transition: transform .3s ease; max-height: calc(100vh - 78px); overflow-y: auto;
  }
  .nav__menu.is-open { transform: translateY(0); }
  .nav__link { justify-content: space-between; padding: 14px 12px; border-radius: 10px; }
  .dropdown__panel {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; min-width: 0; padding: 4px 0 6px 10px;
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .dropdown__panel.is-open { max-height: 700px; }
  .mv-grid { grid-template-columns: 1fr; }
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .imc__intro, .imc__panel { padding: 30px 24px; }
  .imc__row { grid-template-columns: 1fr; }
  .section { padding: 54px 0; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .hero__title { font-size: clamp(2rem, 8vw, 2.6rem); }
  .hero__trust { gap: 16px; }
  .hero__trust-item strong { font-size: 1.4rem; }
  .hero__float--tl { left: 4px; top: 12px; padding: 10px 13px; }
  .hero__float--br { right: 4px; bottom: 14px; padding: 10px 13px; }
  .hero__float .big { font-size: 1.4rem; }
}

/* Evita desbordamiento horizontal en cualquier viewport */
html, body { max-width: 100%; overflow-x: hidden; }
