/* ============================================================
   PPQ — Proveedora de Productos y Químicos RPR
   Hoja de estilos principal
   ============================================================ */

:root {
  --ink: #0d3b48;          /* petrol oscuro (títulos) */
  --ink-2: #12505f;
  --teal: #12a0ae;
  --teal-dark: #0d7d8a;
  --teal-bright: #1cb5c4;
  --maroon: #6e1423;       /* RPR */
  --bg: #f2f7f9;
  --white: #ffffff;
  --text: #3a4d55;
  --muted: #6b7f88;
  --line: #dce8ec;
  --wa: #25d366;
  --wa-dark: #1da851;
  --shadow: 0 12px 32px rgba(13, 59, 72, .12);
  --shadow-sm: 0 4px 14px rgba(13, 59, 72, .10);
  --radius: 18px;
  --font-head: 'Oswald', 'Arial Narrow', Arial, sans-serif;
  --font-body: 'Inter', 'Segoe UI', Arial, sans-serif;
  --header-h: 78px;
}

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

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: min(1180px, 92%);
  margin: 0 auto;
}

section { scroll-margin-top: calc(var(--header-h) + 10px); }

/* ============ Botones ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .95rem;
  padding: 14px 28px;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
  white-space: nowrap;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover { transform: translateY(-2px); }

.btn-wa {
  background: linear-gradient(135deg, var(--wa), var(--wa-dark));
  color: #fff;
  box-shadow: 0 8px 20px rgba(37, 211, 102, .35);
}
.btn-wa:hover { box-shadow: 0 12px 26px rgba(37, 211, 102, .5); }

.btn-outline {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .75);
  color: #fff;
  backdrop-filter: blur(4px);
}
.btn-outline:hover { background: #fff; color: var(--ink); }

.btn-teal {
  background: linear-gradient(135deg, var(--teal-bright), var(--teal-dark));
  color: #fff;
  box-shadow: 0 8px 20px rgba(18, 160, 174, .35);
}
.btn-teal:hover { box-shadow: 0 12px 26px rgba(18, 160, 174, .5); }

.btn-lg { padding: 17px 38px; font-size: 1.05rem; }
.btn-sm { padding: 10px 20px; font-size: .85rem; }

/* ============ Header ============ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background .35s ease, box-shadow .35s ease, height .35s ease;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1240px, 96%);
  margin: 0 auto;
}

.brand { display: inline-flex; align-items: center; flex: none; }
.brand-logo {
  height: 54px;
  width: auto;
  background: #fff;
  border-radius: 12px;
  padding: 4px 8px;
  box-shadow: 0 2px 10px rgba(13, 59, 72, .18);
}

/* Header transparente sobre el hero de video */
.page-home .site-header { background: linear-gradient(180deg, rgba(6, 30, 38, .55), rgba(6, 30, 38, 0)); }
.page-home .site-header.scrolled,
.page-inner .site-header {
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 24px rgba(13, 59, 72, .10);
}

.main-nav { display: flex; align-items: center; gap: 6px; }
.nav-link {
  font-family: var(--font-head);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: .92rem;
  padding: 9px 14px;
  border-radius: 10px;
  color: rgba(255, 255, 255, .92);
  transition: background .25s ease, color .25s ease;
}
.page-home .site-header:not(.scrolled) .nav-link:hover { background: rgba(255, 255, 255, .14); color: #fff; }

.page-home .site-header.scrolled .nav-link,
.page-inner .site-header .nav-link { color: var(--ink); }
.page-home .site-header.scrolled .nav-link:hover,
.page-inner .site-header .nav-link:hover { background: var(--bg); color: var(--teal-dark); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.lang-switch {
  display: flex;
  border: 1.5px solid rgba(255, 255, 255, .55);
  border-radius: 50px;
  overflow: hidden;
  background: rgba(255, 255, 255, .08);
}
.page-home .site-header.scrolled .lang-switch,
.page-inner .site-header .lang-switch {
  border-color: var(--line);
  background: #fff;
}
.lang-btn {
  border: 0;
  background: transparent;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .05em;
  padding: 8px 14px;
  cursor: pointer;
  color: rgba(255, 255, 255, .85);
  transition: background .25s ease, color .25s ease;
}
.page-home .site-header.scrolled .lang-btn,
.page-inner .site-header .lang-btn { color: var(--muted); }
.lang-btn.active { background: var(--teal); color: #fff !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 10px;
}
.nav-toggle span {
  display: block;
  height: 2.5px;
  width: 26px;
  margin: 0 auto;
  background: #fff;
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}
.page-home .site-header.scrolled .nav-toggle span,
.page-inner .site-header .nav-toggle span { background: var(--ink); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ============ Hero (video) ============ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at center, rgba(6, 30, 38, .38) 0%, rgba(6, 30, 38, .72) 100%),
    linear-gradient(180deg, rgba(6, 30, 38, .55) 0%, rgba(6, 30, 38, .25) 45%, rgba(6, 30, 38, .8) 100%);
}
.hero-content { padding: calc(var(--header-h) + 18px) 0 90px; }

.hero-badge {
  display: inline-block;
  font-family: var(--font-head);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, .6);
  border-radius: 50px;
  padding: 7px 22px 7px 26px;
  margin-bottom: 26px;
  backdrop-filter: blur(4px);
  background: rgba(255, 255, 255, .08);
}
.hero-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(4.5rem, 15vw, 10.5rem);
  line-height: .95;
  letter-spacing: .04em;
  margin-bottom: 10px;
  text-shadow: 0 10px 40px rgba(0, 0, 0, .45);
  animation: heroUp 1s ease .1s both;
}
.hero-title-img {
  margin-bottom: 10px;
  animation: heroUp 1s ease .1s both;
}
.hero-logo {
  width: min(880px, 82vw);
  height: auto;
  margin: 0 auto;
}
.hero-eyebrow {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(.95rem, 2.4vw, 1.5rem);
  letter-spacing: .3em;
  text-transform: uppercase;
  margin-top: 22px;
  color: rgba(255, 255, 255, .95);
  animation: heroUp 1s ease .3s both;
}
.hero-tagline {
  font-size: clamp(1.05rem, 2.6vw, 1.5rem);
  font-weight: 500;
  font-style: italic;
  color: rgba(255, 255, 255, .88);
  margin-top: 14px;
  animation: heroUp 1s ease .45s both;
}
.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 42px;
  animation: heroUp 1s ease .6s both;
}
@keyframes heroUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-scroll {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1.5px solid rgba(255, 255, 255, .5);
  border-radius: 50%;
  color: #fff;
  animation: bounce 2.2s infinite;
}
.hero-scroll svg { width: 20px; height: 20px; }
@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 9px); }
}

/* ============ Hero de páginas internas ============ */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + 84px) 0 84px;
  background:
    linear-gradient(135deg, rgba(9, 46, 57, .96) 0%, rgba(13, 82, 96, .92) 60%, rgba(13, 125, 138, .88) 100%),
    url('../assets/fondo-moleculas.jpg') center/cover;
  color: #fff;
  text-align: center;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url('../assets/fondo-moleculas.jpg') center/cover;
  opacity: .14;
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero .crumb {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: .3em;
  font-size: .85rem;
  color: rgba(255, 255, 255, .75);
}
.page-hero h1 {
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(2.4rem, 6.5vw, 4.2rem);
  line-height: 1.05;
  margin-top: 10px;
}
.page-hero .page-sub {
  margin-top: 14px;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: rgba(255, 255, 255, .85);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.page-hero .back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .9rem;
  color: rgba(255, 255, 255, .85);
  border-bottom: 1px solid rgba(255, 255, 255, .4);
  padding-bottom: 3px;
  transition: color .25s ease, border-color .25s ease;
}
.page-hero .back-link:hover { color: #fff; border-color: #fff; }

/* ============ Secciones ============ */
.section { padding: 92px 0; }
.section-label {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .28em;
  font-size: .85rem;
  color: var(--teal-dark);
  margin-bottom: 12px;
  position: relative;
  padding-left: 0;
}
.section-label::before {
  content: "";
  display: inline-block;
  width: 34px;
  height: 3px;
  background: var(--teal);
  border-radius: 2px;
  margin-right: 12px;
  vertical-align: middle;
}
.section-title {
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(1.9rem, 4.5vw, 2.9rem);
  line-height: 1.12;
  color: var(--ink);
}
.section-sub {
  margin-top: 14px;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 640px;
}
.section-head { text-align: center; margin-bottom: 56px; }
.section-head .section-sub { margin-left: auto; margin-right: auto; }
.section-head .section-label::before { margin-right: 12px; }

/* Quiénes somos */
.section-quiens {
  background:
    linear-gradient(180deg, #fff 0%, var(--bg) 100%);
}
.quienes-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 56px;
  align-items: center;
}
.quienes-text p { margin-top: 16px; }
.check-list { margin-top: 26px; display: grid; gap: 14px; }
.check-list li {
  position: relative;
  padding-left: 42px;
  font-weight: 500;
  color: var(--ink-2);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(18, 160, 174, .14);
  border: 1.5px solid var(--teal);
}
.check-list li::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 9px;
  width: 10px;
  height: 6px;
  border-left: 2.5px solid var(--teal-dark);
  border-bottom: 2.5px solid var(--teal-dark);
  transform: rotate(-45deg);
}
.vision-box {
  margin-top: 30px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  padding: 26px 30px;
  box-shadow: var(--shadow);
  border-left: 5px solid var(--teal);
}
.vision-box h3 {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 1.05rem;
  color: var(--teal-bright);
  margin-bottom: 8px;
}
.vision-box p { color: rgba(255, 255, 255, .9); font-size: .98rem; }

.quienes-media { position: relative; }
.quienes-media > img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: contain;
  aspect-ratio: 4 / 3;
}
.stats-card {
  position: absolute;
  left: -26px;
  bottom: 34px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 26px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 4px solid var(--maroon);
}
.stats-card strong {
  font-family: var(--font-head);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--maroon);
  line-height: 1;
}
.stats-card span {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .85rem;
  color: var(--ink);
  max-width: 110px;
  line-height: 1.3;
}

/* Servicios */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.service-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.card-img {
  height: 190px;
  background: var(--bg);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .5s ease;
}
.service-card:hover .card-img img { transform: scale(1.06); }
.card-img.img-contain { background: #fff; }
.card-img.img-contain img { object-fit: contain; padding: 22px; }
.card-body {
  padding: 22px 24px 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-body h3 {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 1.18rem;
  line-height: 1.25;
  color: var(--ink);
}
.card-body p {
  margin-top: 10px;
  font-size: .93rem;
  color: var(--muted);
  flex: 1;
}
.card-link {
  margin-top: 16px;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .88rem;
  font-weight: 600;
  color: var(--teal-dark);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.card-link::after {
  content: "→";
  transition: transform .25s ease;
}
.service-card:hover .card-link::after { transform: translateX(5px); }

/* Alianzas */
.section-alianzas {
  background:
    linear-gradient(135deg, #082a34 0%, var(--ink) 55%, #0f5563 100%);
  color: #fff;
}
.section-alianzas .section-title { color: #fff; }
.section-alianzas .section-label { color: var(--teal-bright); }
.section-alianzas .section-sub { color: rgba(255, 255, 255, .75); }
.partners {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.partner {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius);
  padding: 34px 28px;
  text-align: center;
  transition: background .3s ease, transform .3s ease;
}
.partner:hover { background: rgba(255, 255, 255, .1); transform: translateY(-5px); }
.partner-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: .12em;
  color: #fff;
}
.partner p { margin-top: 10px; color: rgba(255, 255, 255, .72); font-size: .95rem; }
.partner-logo-tile {
  display: block;
  background: #fff;
  border-radius: 22px;
  padding: 22px 28px;
  margin: 0 auto 18px;
  width: 100%;
  max-width: 300px;
  line-height: 0;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .2);
}
.partner-logo-tile img { width: 100%; height: auto; display: block; }
.partner-logo-circle {
  display: block;
  width: min(272px, 76%);
  height: min(272px, 76%);
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 18px;
  background: #111;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .2);
}
.partner-logo-circle img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Mapa */
.maps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.map-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.map-card .map-info { padding: 22px 26px 18px; }
.map-card h3 {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 1.2rem;
  color: var(--ink);
}
.map-card .map-info p { margin-top: 6px; color: var(--muted); font-size: .95rem; }
.map-card .map-phone a { color: var(--teal-dark); font-weight: 600; }
.map-card iframe {
  width: 100%;
  height: 260px;
  border: 0;
  display: block;
  filter: saturate(.92);
}

/* Contacto */
.section-contacto { background: var(--bg); }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 46px;
}
.contact-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  padding: 30px 28px;
  text-align: center;
}
.contact-card .c-icon {
  width: 46px;
  height: 46px;
  margin: 0 auto 16px;
  border-radius: 16px;
  background: rgba(18, 160, 174, .12);
  display: grid;
  place-items: center;
  color: var(--teal-dark);
}
.contact-card .c-icon svg { width: 22px; height: 22px; }
.contact-card h4 {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: 1.05rem;
  color: var(--ink);
}
.contact-card p, .contact-card a.c-link { margin-top: 8px; color: var(--muted); font-size: .95rem; }
.contact-card a.c-link { color: var(--teal-dark); font-weight: 600; word-break: break-all; }
.contact-card .c-phone { font-size: 1.05rem; font-weight: 600; color: var(--ink-2); }

.contact-cta {
  background: var(--ink);
  border-radius: 24px;
  padding: 48px 40px;
  text-align: center;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.contact-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('../assets/fondo-moleculas.jpg') center/cover;
  opacity: .1;
  pointer-events: none;
}
.contact-cta h3 {
  position: relative;
  font-family: var(--font-head);
  text-transform: uppercase;
  font-size: clamp(1.5rem, 3.4vw, 2.2rem);
  color: #fff;
  letter-spacing: .04em;
}
.contact-cta p { position: relative; color: rgba(255, 255, 255, .75); margin: 10px auto 26px; max-width: 520px; }
.contact-cta .btn { position: relative; }
.socials {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
}
.socials a {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .22);
  display: grid;
  place-items: center;
  color: #fff;
  transition: background .25s ease, transform .25s ease;
}
.socials a:hover { background: var(--teal); transform: translateY(-4px); }
.socials svg { width: 21px; height: 21px; }

/* ============ Footer ============ */
.site-footer {
  background: #08222b;
  color: rgba(255, 255, 255, .75);
  padding: 44px 0 30px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  flex-wrap: wrap;
}
.footer-brand img {
  height: 58px;
  width: auto;
  background: #fff;
  border-radius: 12px;
  padding: 5px 9px;
}
.footer-nav { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-nav a {
  font-size: .9rem;
  color: rgba(255, 255, 255, .75);
  transition: color .25s ease;
}
.footer-nav a:hover { color: var(--teal-bright); }
.footer-copy { width: 100%; text-align: center; margin-top: 26px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .85rem; color: rgba(255, 255, 255, .5); }

/* ============ WhatsApp flotante ============ */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1200;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--wa), var(--wa-dark));
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 10px 26px rgba(37, 211, 102, .5);
  transition: transform .25s ease;
  animation: waPulse 2.6s infinite;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; }
@keyframes waPulse {
  0% { box-shadow: 0 10px 26px rgba(37, 211, 102, .5), 0 0 0 0 rgba(37, 211, 102, .45); }
  70% { box-shadow: 0 10px 26px rgba(37, 211, 102, .5), 0 0 0 18px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 10px 26px rgba(37, 211, 102, .5), 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ============ Página: Químicos ============ */
.section-intro { max-width: 860px; margin: 0 auto; text-align: center; }
.section-intro p { margin-top: 16px; font-size: 1.05rem; }
.catalog-label {
  margin-top: 54px;
  text-align: center;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
}
.cats-grid {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.cat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 30px 28px;
  border-top: 4px solid var(--teal);
  transition: transform .3s ease, box-shadow .3s ease;
}
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.cat-card .cat-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.cat-card .cat-icon {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 14px;
  background: rgba(18, 160, 174, .12);
  color: var(--teal-dark);
  display: grid;
  place-items: center;
}
.cat-card .cat-icon svg { width: 25px; height: 25px; }
.cat-card h3 {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 1.12rem;
  line-height: 1.25;
  color: var(--ink);
}
.cat-card ul { display: grid; gap: 9px; }
.cat-card li {
  position: relative;
  padding-left: 20px;
  font-size: .92rem;
  color: var(--text);
}
.cat-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
}

.cta-band {
  margin-top: 70px;
  background: linear-gradient(135deg, var(--ink) 0%, #0f5563 100%);
  border-radius: 24px;
  padding: 54px 40px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('../assets/fondo-moleculas.jpg') center/cover;
  opacity: .12;
  pointer-events: none;
}
.cta-band h3 {
  position: relative;
  font-family: var(--font-head);
  text-transform: uppercase;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  letter-spacing: .04em;
}
.cta-band p { position: relative; margin: 12px auto 28px; color: rgba(255, 255, 255, .78); max-width: 560px; }
.cta-band .btn { position: relative; }
.cta-band .btn + .btn { margin-left: 14px; margin-top: 10px; }
.cta-band .btn-row { position: relative; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ============ Página: Equipos ============ */
.equip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 54px;
}
.equip-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 34px 30px;
  text-align: center;
  transition: transform .3s ease, box-shadow .3s ease;
}
.equip-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.equip-card .cat-icon {
  width: 62px;
  height: 62px;
  margin: 0 auto 18px;
  border-radius: 18px;
  background: rgba(18, 160, 174, .12);
  color: var(--teal-dark);
  display: grid;
  place-items: center;
}
.equip-card .cat-icon svg { width: 30px; height: 30px; }
.equip-card h3 {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 1.2rem;
  color: var(--ink);
}
.equip-card p { margin-top: 10px; color: var(--muted); font-size: .95rem; }
.equip-photo {
  margin-top: 60px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.equip-photo img { width: 100%; height: auto; }

/* ============ Página: Términos ============ */
.terms-wrap { max-width: 880px; margin: 0 auto; }
.term {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 28px 32px;
  margin-bottom: 18px;
}
.term h3 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ink);
  margin-bottom: 10px;
}
.term p { color: var(--text); font-size: .97rem; }

/* ============ Animaciones de aparición ============ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-title, .hero-eyebrow, .hero-tagline, .hero-ctas { animation: none; }
}

/* ============ Responsive ============ */
@media (max-width: 1080px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .cats-grid, .equip-grid { grid-template-columns: repeat(2, 1fr); }
  .partners { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .partner { padding: 26px 18px; }
}

@media (max-width: 900px) {
  .quienes-grid { grid-template-columns: 1fr; gap: 44px; }
  .quienes-media { order: -1; max-width: 560px; margin: 0 auto; width: 100%; }
  .stats-card { left: 12px; bottom: -20px; }
  .maps-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 18px 6vw 26px;
    gap: 4px;
    box-shadow: 0 24px 40px rgba(13, 59, 72, .18);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform .3s ease, opacity .3s ease, visibility .3s;
  }
  .main-nav.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav-link { color: var(--ink) !important; padding: 13px 14px; font-size: 1rem; }
  .nav-link:hover { background: var(--bg); }
  .header-actions .btn { display: none; }
  .section { padding: 70px 0; }
  .hero-ctas .btn { width: min(320px, 100%); }
}

@media (max-width: 620px) {
  .cards-grid, .cats-grid, .equip-grid {
    grid-template-columns: 1fr;
  }

  .partners {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* Logotipos de alianzas */
  .partner-logo-tile {
  width: 100%;
  max-width: 280px;
  padding: 18px 22px;
}

.partner-logo-tile img {
  width: 100%;
  height: 90px;
  object-fit: contain;
}

  /* Logo circular de Monte Alto */
  .partner-logo-circle {
    width: min(220px, 65%);
height: auto;
    aspect-ratio: 1 / 1;
  }

  .partner-logo-circle img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  /* Imágenes de las tarjetas */
  .card-img {
  height: 210px;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
  display: block;
}

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .brand-logo {
    height: 46px;
  }

  .contact-cta {
    padding: 40px 22px;
  }

  .term {
    padding: 22px 22px;
  }
}
/* ==================================================
   AJUSTE FINAL - IMÁGENES COMPLETAS DE LAS TARJETAS
   ================================================== */

.card-img {
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.card-img img {
    width: 100% !important;
    height: auto !important;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain !important;
    object-position: center center;
    padding: 0 !important;
    display: block;
    transform: none;
}

/* Evita que el efecto hover vuelva a agrandar la imagen */
.service-card:hover .card-img img {
    transform: none !important;
}

/* Ajuste para celulares */
@media (max-width: 768px) {
    .card-img {
        aspect-ratio: 16 / 9;
        height: auto !important;
        min-height: 0 !important;
    }

    .card-img img {
        width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
        padding: 0 !important;
    }
}
/* ============ AGENDA flotante ============ */
.agenda-float {
  position: fixed;
  right: 22px;
  bottom: 94px;
  z-index: 1200;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-bright), var(--teal-dark));
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 10px 26px rgba(18, 160, 174, .45);
  transition: transform .25s ease, box-shadow .25s ease;
}

.agenda-float:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 30px rgba(18, 160, 174, .6);
}

.agenda-float svg {
  width: 30px;
  height: 30px;
}