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

:root {
  --green: #2EBC71;
  --green-dark: #1a7a48;
  --green-light: #e8f8f0;
  --dark: #2d3748;
  --gray: #4a5568;
  --text-1: #0F172A;
  --text-2: #475569;
  --gray-line: #E5E9F0;
  --light-gray: #f7f9fc;
  --gray-bg: #F5F7FA;
  --white: #ffffff;
  --navy: #0E1B2E;
  --navy-2: #18253D;
  --radius: 16px;
  --container: 1200px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Exo', 'Georgia', sans-serif;
  color: var(--dark);
  background: var(--white);
  overflow-x: hidden;
}

/* ── NAV (matches alt.html header) ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--gray-line);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}
.nav-logo img {
  height: 44px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0 auto;
  padding: 0;
}

.nav-links li {
  display: inline-flex;
  align-items: center;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--text-2);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--green); }

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

.nav-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  border: 1px solid var(--gray-line);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  text-decoration: none;
}
.nav-icon:hover { color: var(--green); border-color: var(--green); }

.nav-icon.nav-icon--instagram {
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--gray-line);
  background: var(--white);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
  transition: transform 0.15s, box-shadow 0.2s, border-color 0.2s;
}
.nav-icon.nav-icon--instagram img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.nav-icon.nav-icon--instagram:hover {
  border-color: rgba(221, 42, 123, 0.4);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12);
}

.btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green);
  color: white;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 6px 18px rgba(46,188,113,0.28);
  text-decoration: none;
}
.btn-wa:hover { background: var(--green-dark); transform: translateY(-1px); }

/* ── HERO (video full-bleed, como alt.html) ── */
.hero {
  position: relative;
  color: white;
  overflow: hidden;
  background: var(--navy);
  min-height: min(92vh, 900px);
  display: flex;
  align-items: center;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14,27,46,0.65) 0%, rgba(14,27,46,0.85) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(72px, 12vw, 140px) 24px clamp(80px, 14vw, 160px);
  width: 100%;
}

.hero-inner .hero-text {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green);
  background: rgba(46,188,113,0.12);
  padding: 8px 16px;
  border: 1px solid rgba(46,188,113,0.3);
  border-radius: 999px;
  margin-bottom: 28px;
}

.hero-title {
  display: inline-block;
  text-align: right;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: white;
  margin: 0 0 6px;
  text-align: center;
}

.hero .hero-tagline {
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--green);
  margin: 0;
}

.hero p {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: rgba(255,255,255,0.78);
  line-height: 1.7;
  max-width: 640px;
  margin: 0 auto 40px;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.hero .btn-primary {
  padding: 16px 34px;
  box-shadow: 0 12px 36px rgba(46,188,113,0.4);
}

.btn-primary {
  background: var(--green);
  color: white;
  padding: 0.9rem 2rem;
  border-radius: 999px;
  font-family: 'Exo', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(46,188,113,0.35);
}

.btn-primary:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(46,188,113,0.4);
}

.btn-secondary {
  border: 2px solid var(--green);
  color: var(--green);
  padding: 0.9rem 2rem;
  border-radius: 999px;
  font-family: 'Exo', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: var(--green);
  color: white;
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  width: 100%;
  max-width: 640px;
}

.hero-stat span {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--green);
}

.hero-stat small {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.03em;
}

/* ── SECTION COMMONS ── */
section { padding: 90px 5%; }

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.8rem;
}

.section-title {
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--gray);
  line-height: 1.7;
  max-width: 560px;
}

.section-header { margin-bottom: 3.5rem; }

.section-head {
  text-align: center;
  margin-bottom: 64px;
}
.section-head h2 {
  font-size: clamp(2rem, 3.5vw, 2.7rem);
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.section-rule {
  display: block;
  width: 60px;
  height: 4px;
  background: var(--green);
  border-radius: 4px;
  margin: 18px auto 0;
}

.section-head .section-sub {
  max-width: 640px;
  margin: 18px auto 0;
  color: var(--text-2);
  font-size: 1.02rem;
  line-height: 1.7;
}

.container { max-width: 1200px; margin: 0 auto; }

/* ── SERVICIOS ── */
.servicios { background: var(--white); }

.servicios-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 3rem;
  margin-top: 1rem;
}

.servicio-item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1rem 0;
  border-bottom: 1px solid #e8edf2;
  transition: color 0.2s;
  cursor: pointer;
}

.servicio-item:hover .servicio-name { color: var(--green); }
.servicio-item:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 4px; }

.servicio-check {
  width: 22px;
  height: 22px;
  min-width: 22px;
  border-radius: 50%;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.servicio-check svg {
  width: 12px;
  height: 12px;
  stroke: white;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.servicio-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  transition: color 0.2s;
  line-height: 1.3;
}

@media (max-width: 640px) {
  .servicios-cols { grid-template-columns: 1fr; }
}

/* ── OBRAS SOCIALES MARQUEE ── */
.obras-sociales {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid #e8edf2;
}

.obras-sociales-title {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 2rem;
}

.obras-marquee {
  overflow: hidden;
  position: relative;
  width: 100%;
  display: block;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}

/* Dos copias idénticas en .obras-marquee-set → -50% coincide con un ciclo completo (sin “hueco”) */
.obras-marquee-track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0;
  width: max-content;
  min-height: 140px;
  animation: obras-scroll 140s linear infinite;
  will-change: transform;
}

.obras-marquee-set {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  flex-shrink: 0;
}

.obras-marquee:hover .obras-marquee-track { animation-play-state: paused; }

.obras-marquee-set img {
  height: 280px;
  width: auto;
  max-width: 460px;
  object-fit: contain;
  object-position: center center;
  display: block;
  opacity: 0.95;
  filter: grayscale(5%);
  transition: opacity 0.25s, filter 0.25s, transform 0.25s;
  flex-shrink: 0;
  align-self: center;
}

.obras-marquee-set img:hover {
  opacity: 1;
  filter: grayscale(0%);
  transform: scale(1.05);
}

@keyframes obras-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

@media (max-width: 740px) {
  .obras-marquee {
    -webkit-mask-image: none;
            mask-image: none;
    padding: 8px 0;
  }
  /* ~2 logos visibles; más rápido que desktop. Sin min-width:0 en img (en flex puede colapsar a 0 en iOS). */
  .obras-marquee-set {
    gap: 1.1rem;
  }
  .obras-marquee-track {
    min-height: 124px;
    animation: obras-scroll 38s linear infinite;
  }
  .obras-marquee-set img {
    height: 248px;
    width: auto;
    max-width: min(84vw, 400px);
    min-width: 192px;
    flex-shrink: 0;
    opacity: 1;
    filter: none;
  }
}

/* ── NOSOTROS ── */
.nosotros {
  background: linear-gradient(135deg, var(--dark) 0%, #1a202c 100%);
  color: white;
  padding-bottom: 50px;
}

.nosotros-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.nosotros .section-label { color: var(--green); }
.nosotros .section-title { color: white; }
.nosotros .section-sub { color: rgba(255,255,255,0.7); }

.nosotros-features {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  margin-top: 2rem;
}

.nosotros-feature {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.nosotros-feature-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: rgba(46,188,113,0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.nosotros-feature h4 {
  font-size: 1rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.3rem;
}

.nosotros-feature p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
}

.nosotros-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.nosotros-circle {
  width: 340px;
  height: 340px;
  background: rgba(46,188,113,0.08);
  border-radius: 50%;
  border: 1.5px solid rgba(46,188,113,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.nosotros-circle img { width: 200px; opacity: 0.9; }

.nosotros-badge {
  position: absolute;
  background: var(--green);
  color: white;
  padding: 0.7rem 1.2rem;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(46,188,113,0.4);
}

.nosotros-badge.top-right { top: 10px; right: -20px; }
.nosotros-badge.bottom-left { bottom: 10px; left: -20px; }

/* ── JORNADAS ── */
.jornadas {
  background: linear-gradient(135deg, var(--dark) 0%, #1a202c 100%);
  color: white;
}

.jornadas .section-label { color: var(--green); }
.jornadas .section-title { color: white; }
.jornadas .section-sub { color: rgba(255,255,255,0.75); }

.jornadas-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 3rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  justify-items: center;
}

.jornada-video {
  width: 100%;
  max-width: 360px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.jornada-video:hover {
  transform: translateY(-4px);
  border-color: rgba(46,188,113,0.5);
  box-shadow: 0 18px 50px rgba(0,0,0,0.35);
}

.jornada-video video {
  display: block;
  width: 100%;
  height: auto;
  background: #000;
}

.jornada-caption {
  padding: 1rem 1.2rem 1.3rem;
}

.jornada-caption h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: white;
  margin: 0 0 0.25rem;
}

.jornada-caption p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin: 0;
  line-height: 1.5;
}

.jornadas-cta {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 3rem;
}

.jornadas-cta .jornadas-btn {
  width: auto;
  align-self: center;
}

.jornadas-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: white;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-family: 'Exo', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s, box-shadow 0.2s, filter 0.2s;
  box-shadow: 0 6px 18px rgba(220,39,67,0.3);
}

.jornadas-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 8px 26px rgba(220,39,67,0.4);
}

.jornadas-btn svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.jornadas-btn--ghost {
  background: transparent;
  color: white;
  border: 1.5px solid rgba(255,255,255,0.25);
  box-shadow: none;
  margin-top: 0.7rem;
}

.jornadas-btn--ghost:hover {
  background: rgba(46,188,113,0.15);
  border-color: var(--green);
  color: white;
  filter: none;
  box-shadow: 0 6px 20px rgba(46,188,113,0.18);
}

@media (max-width: 740px) {
  .jornadas-grid { grid-template-columns: 1fr; max-width: 360px; }
}

/* ── MODAL ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,20,30,0.65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
  z-index: 1000;
}

.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: #fff;
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.35);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.25s ease;
}

.modal-overlay.is-open .modal {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 1.6rem 0.5rem;
}

.modal-header h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0;
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--light-gray);
  color: var(--gray);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.modal-close:hover {
  background: var(--green);
  color: #fff;
  transform: rotate(90deg);
}

.modal-body {
  padding: 0.5rem 1.6rem 1.6rem;
}

.modal-intro {
  font-size: 0.95rem;
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 1.3rem;
}

.calendar-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.calendar-event {
  display: flex;
  gap: 1rem;
  align-items: stretch;
  background: var(--light-gray);
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1rem;
  transition: border-color 0.2s, background 0.2s;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.calendar-event:hover {
  border-color: var(--green);
  background: #f0faf5;
}

.calendar-date {
  flex-shrink: 0;
  width: 64px;
  text-align: center;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.4rem 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.calendar-date .day {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
}

.calendar-date .month {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
  margin-top: 0.25rem;
}

.calendar-info h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 0.3rem;
}

.calendar-info p {
  font-size: 0.85rem;
  color: var(--gray);
  line-height: 1.55;
  margin: 0;
}

.modal-footer {
  padding: 0.5rem 1.6rem 1.6rem;
  font-size: 0.8rem;
  color: var(--gray);
  text-align: center;
}

.modal-footer a { color: var(--green); text-decoration: none; font-weight: 700; }
.modal-footer a:hover { text-decoration: underline; }

body.modal-open { overflow: hidden; }

/* ── PARTNERS ── */
.partners { background: var(--light-gray); }

.partners-intro {
  max-width: none;
  margin: 0;
}

.partners-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.partners-intro-row {
  display: grid;
  grid-template-columns: minmax(240px, 300px) 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 1140px;
  margin: 0 auto;
}

.partners-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 3rem auto 0;
  max-width: 1000px;
}

.partners-feature {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.5rem 1.4rem;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.partners-feature:hover {
  transform: translateY(-3px);
  border-color: rgba(46,188,113,0.4);
  box-shadow: 0 12px 32px rgba(0,0,0,0.06);
}

.partners-feature-icon {
  width: 44px;
  height: 44px;
  background: rgba(46,188,113,0.12);
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  color: var(--green);
}

.partners-feature-icon svg {
  width: 22px;
  height: 22px;
}

.partners-feature h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 0.3rem;
}

.partners-feature p {
  font-size: 0.88rem;
  color: var(--gray);
  line-height: 1.55;
}

.partners-grid-wrap {
  margin-top: 4rem;
  text-align: center;
}

.partners-grid-title {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 1.8rem;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.partner-logo {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.partner-logo:hover {
  transform: translateY(-3px);
  border-color: rgba(46,188,113,0.4);
  box-shadow: 0 10px 28px rgba(0,0,0,0.07);
}

.partner-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(20%);
  opacity: 0.85;
  transition: filter 0.2s, opacity 0.2s;
}

.partner-logo:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

.partner-logo--placeholder {
  color: var(--gray);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

@media (max-width: 740px) {
  .partners-features { grid-template-columns: 1fr; }
  .partners-header { margin-bottom: 1.5rem; }
  .partners-intro-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .partners-intro-row .partners-feature {
    max-width: 320px;
    margin: 0 auto;
  }
  .partners-intro { margin: 0 auto; text-align: center; }
}

/* ── POR QUÉ ELEGIRNOS (legado, ahora oculto) ── */
.razones { background: var(--light-gray); }

.razones-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.razon-card {
  background: white;
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  text-align: center;
  border: 1.5px solid #e2e8f0;
  transition: transform 0.25s, box-shadow 0.25s;
}

.razon-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.07);
}

.razon-number {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.razon-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.6rem;
}

.razon-card p {
  font-size: 0.88rem;
  color: var(--gray);
  line-height: 1.6;
}

/* ── TESTIMONIOS ── */
.testimonios { background: white; }

.testimonios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.testimonio {
  background: var(--light-gray);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1.5px solid #e2e8f0;
  position: relative;
}

.testimonio::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 24px;
  font-size: 5rem;
  color: var(--green);
  opacity: 0.2;
  line-height: 1;
  font-family: 'Exo', sans-serif;
}

.testimonio-text {
  font-size: 0.95rem;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonio-author {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.testimonio-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 0.9rem;
}

.testimonio-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
}

.testimonio-location {
  font-size: 0.8rem;
  color: var(--gray);
}

.stars {
  color: var(--green);
  font-size: 1rem;
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

/* ── CONTACTO ── */
.contacto {
  background: var(--gray-bg);
}

.contacto-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contacto-info h2 { margin-bottom: 1rem; }

.contacto-dato {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 1.8rem;
}

.contacto-dato-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: var(--green);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.contacto-dato h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.3rem;
}

.contacto-dato p {
  font-size: 1rem;
  color: var(--dark);
  font-weight: 400;
}

.contacto-form {
  background: white;
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: 0 4px 30px rgba(0,0,0,0.06);
  border: 1.5px solid #e2e8f0;
}

.form-group { margin-bottom: 1.3rem; }

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-family: 'Exo', sans-serif;
  font-size: 0.95rem;
  color: var(--dark);
  background: var(--light-gray);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234a5568' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-group select option[value=""] { color: var(--gray); }

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(46,188,113,0.12);
  background: white;
}

.form-group textarea { resize: vertical; min-height: 110px; }

.required-mark { color: #e53e3e; margin-left: 2px; }

.form-error {
  display: block;
  font-size: 0.8rem;
  color: #e53e3e;
  margin-top: 0.35rem;
  min-height: 1em;
}

.form-group--error input,
.form-group--error textarea,
.form-group--error select {
  border-color: #e53e3e;
  box-shadow: 0 0 0 3px rgba(229,62,62,0.1);
}

.form-required-note {
  font-size: 0.78rem;
  color: var(--gray);
  margin-bottom: 1.2rem;
}

.form-submit {
  width: 100%;
  background: var(--green);
  color: white;
  border: none;
  padding: 1rem;
  border-radius: 999px;
  font-family: 'Exo', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(46,188,113,0.3);
  letter-spacing: 0.02em;
}

.form-submit:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(46,188,113,0.35);
}

.form-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 4px 20px rgba(46,188,113,0.2);
}

.form-status {
  margin-top: 1rem;
  font-size: 0.92rem;
  text-align: center;
  min-height: 1.2em;
  line-height: 1.5;
}

.form-status--ok  { color: var(--green-dark); }
.form-status--err { color: #b91c1c; }

/* ── FOOTER ── */
footer {
  background: var(--dark);
  color: white;
  padding: 60px 5% 30px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(220px, 320px);
  justify-content: center;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand img { height: 40px; margin-bottom: 1rem; filter: brightness(10); }

.footer-brand p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  max-width: 300px;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1.2rem;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.7rem; }

.footer-col ul a {
  text-decoration: none;
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-col ul a:hover { color: var(--green); }

.social-ig {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}

.social-ig:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #fff;
  transform: translateY(-1px);
}

.footer-sucursal--centered {
  grid-column: 1 / -1;
  text-align: center;
}

.footer-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.footer-socials .social-ig { margin-top: 0; }

.footer-mail {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}

.footer-mail:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-1px);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.4);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .nosotros-inner,
  .contacto-inner,
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .sucursales-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    max-width: 100%;
    width: 100%;
  }

  .hero { min-height: min(88vh, 760px); }
  .hero-inner { padding: 88px 20px 100px; }
  .section-head { margin-bottom: 40px; }

  .nav-links { display: none; }
  .nav-actions { gap: 8px; }
  .btn-wa { padding: 8px 14px; font-size: 0.85rem; }

  .nosotros-circle { width: 260px; height: 260px; }
  .nosotros-circle img { width: 160px; }

  .footer-inner {
    grid-template-columns: minmax(0, 360px);
    gap: 2rem;
    text-align: center;
  }

  .footer-sucursal { word-wrap: break-word; }

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}

/* Animations on scroll */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── SUCURSALES (estilo alt.html) ── */
.sucursales { background: var(--gray-bg); }

.sucursales-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
}

.sucursal-card {
  background: var(--white);
  border: 1px solid var(--gray-line);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
}
.sucursal-card:hover {
  transform: translateY(-4px);
  border-color: rgba(46,188,113,0.45);
  box-shadow: 0 18px 50px rgba(15,23,42,0.08);
}

a.sucursal-map {
  display: block;
  position: relative;
  height: 220px;
  overflow: hidden;
  background: var(--gray-bg);
  text-decoration: none;
  color: inherit;
}
.sucursal-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
  display: block;
}

.sucursal-body { padding: 28px; flex: 1; display: flex; flex-direction: column; }

.sucursal-pin {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--green-light);
  padding: 8px 18px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.sucursal-pin--new { background: var(--green); color: white; }

.sucursal-card h3 {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.sucursal-address {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--text-2);
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 4px;
}
.sucursal-address svg {
  color: var(--green);
  flex-shrink: 0;
  width: 1em;
  height: 1em;
  margin-top: 0.275em; /* (line-height 1.55 - 1) / 2 */
}

.sucursal-body p {
  font-size: 0.87rem;
  color: var(--gray);
  margin: 0 0 0 24px;
  line-height: 1.4;
}

.sucursal-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: gap 0.2s;
  margin-top: auto;
  padding-top: 18px;
}
.sucursal-cta:hover { gap: 12px; }

@media (max-width: 640px) {
  .sucursales {
    padding-top: 48px;
    padding-bottom: 48px;
  }
  .sucursales .section-head {
    margin-bottom: 22px;
  }
  .sucursales .section-head .section-sub {
    font-size: 0.94rem;
    margin-top: 12px;
  }
  .sucursales-grid {
    gap: 14px;
  }
  .sucursal-card:hover {
    transform: none;
  }
  a.sucursal-map {
    height: 124px;
  }
  .sucursal-body {
    padding: 11px 14px 13px;
  }
  .sucursal-pin {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    padding: 6px 13px;
    margin-bottom: 6px;
    line-height: 1.3;
    max-width: 100%;
    white-space: normal;
  }
  .sucursal-card h3 {
    font-size: 1.06rem;
    margin-bottom: 6px;
    line-height: 1.2;
  }
  .sucursal-address {
    font-size: 0.82rem;
    line-height: 1.42;
    margin-bottom: 3px;
    align-items: flex-start;
  }
  .sucursal-body p {
    font-size: 0.74rem;
    margin-left: 22px;
  }
  .sucursal-address svg {
    margin-top: 0.21em; /* (line-height 1.42 - 1) / 2 */
  }
  .sucursal-cta {
    font-size: 0.84rem;
    margin-top: 2px;
  }
}

/* ── WHATSAPP FLOAT ── */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  background: #25D366;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.3rem 0.85rem 1rem;
  text-decoration: none;
  box-shadow: 0 6px 28px rgba(37,211,102,0.45);
  transition: transform 0.2s, box-shadow 0.2s, padding 0.2s;
  overflow: hidden;
}

.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 36px rgba(37,211,102,0.55);
}

.whatsapp-label {
  color: white;
  font-family: 'Exo', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .whatsapp-float { padding: 0.85rem; }
  .whatsapp-label { display: none; }
}

