:root {
  --bg: #ffffff;
  --text: #1b1f1d;
  --muted: #5a6a61;
  --line: #e6ece8;

  --brand: #1f7a4a;
  --brand-2: #0f5f37;
  --soft: #f3f8f4;
  --card: #ffffff;

  --hero-text-soft: #1a3e2f;

  --verdecito: #c6efcd;

  --radius: 18px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .08);

  --hero-fade-duration: 1.5s;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .btn-primary {
  /*boton de agendar*/
  color: #ffffff;
}


.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.brand-mark {
  font-size: 20px;
}

.brand-name {
  letter-spacing: .2px;
}

.brand-logo {
  height: 70px;
  /* ajustá si lo querés más grande/chico */
  width: auto;
  display: block;
}


.nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav a {
  color: var(--muted);
  font-weight: 600;
}

.nav a:hover {
  color: var(--text);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 10px 12px;
  font-weight: 700;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 800;
  gap: 8px;
}

.btn-primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-2);
  border-color: var(--brand-2);
}

.btn-ghost:hover {
  background: var(--soft);
}

.btn-whatsapp {
  background: #25D366;
  border-color: #25D366;
  color: #fff;
}

.btn-whatsapp:hover {
  filter: brightness(.95);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 54px 0 24px;
}

/* CAPAS DE FONDO */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  /* estética */
  filter: saturate(.7);
  opacity: 0;
  transition: opacity var(--hero-fade-duration) ease-in-out;
  z-index: 0;
}

/* capa visible */
.hero.show-a::before {
  opacity: .5;
}

.hero.show-b::after {
  opacity: .5;
}

/* overlay blanco para legibilidad */
.hero::selection {
  background: transparent;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero::before {
  background-image: var(--hero-bg-a);
}

.hero::after {
  background-image: var(--hero-bg-b);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 22px;
  align-items: start;
}



h1 {
  font-size: clamp(28px, 3.6vw, 46px);
  line-height: 1.1;
  margin: 0 0 12px;
  color: var(--hero-text-soft);
}

h2 {
  color: var(--hero-text-soft);
}

h3 {
  color: var(--hero-text-soft);
}

/*texto inicio largo*/
.lead {
  font-size: 18px;
  color: var(--hero-text-soft);
  margin: 0 0 18px;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

/*lista inicio*/
.hero-bullets {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--hero-text-soft);
  font-weight: 600;
}

.hero-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}

.hero-card h2 {
  margin: 0 0 10px;
  font-size: 25px;
}

.info-grid {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.info-label {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.info-value {
  margin: 2px 0 0;
  font-weight: 500;
  font-size: 14px;
}

.small {
  font-size: 12px;
}

.muted {
  color: var(--muted);
}

.section {
  padding: 56px 0;
}

.section.alt {
  background: var(--soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  margin-bottom: 18px;
}

.section-head h2 {
  margin: 0;
  font-size: 28px;
}

.section-head p {
  margin: 6px 0 0;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: start;
}

.grid.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .05);
}

.card.soft {
  background: rgba(255, 255, 255, .7);
}

.checklist {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.team .person {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.list {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.section .container {
  max-width: 1100px;
  margin: 0 auto;
}


/* GALERIAAAAAAA */

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* 👈 3 columnas */
  gap: 16px;
}

.gallery-item {
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  padding: 0;
  min-height: auto;
  cursor: pointer;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}

/* Hover (solo compu) */
.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  opacity: 0;
  transition: opacity .25s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/*  AJUSTES MOBILE */
/* Tablet */


/* MOBILE FIX */
@media (max-width: 600px) {
  .gallery {
    grid-template-columns: 1fr;
    /* 1 sola columna */
    gap: 12px;
  }

  .gallery-item img {
    height: 200px;
    /* 👈 controla altura */
  }
}


.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
}

.modal.is-open {
  display: block;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .5);
}

.modal-content {
  position: relative;
  margin: 6vh auto 0;
  width: min(860px, 92vw);
  background: #fff;
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: var(--shadow);
}

.modal-content img {
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius) - 6px);
  border: 1px solid var(--line);
}

.modal-close {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 10px 12px;
  font-weight: 800;
  cursor: pointer;
  margin-bottom: 10px;
}

.form {
  display: grid;
  gap: 10px;
}

label {
  display: grid;
  gap: 6px;
  font-weight: 800;
}

input,
textarea {
  padding: 12px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  font: inherit;
}

input:focus,
textarea:focus {
  outline: 3px solid rgba(31, 122, 74, .25);
  border-color: var(--brand);
}

.map {
  margin-top: 12px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}

.map iframe {
  width: 100%;
  height: 260px;
  border: 0;
}

.footer {
  padding: 22px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.fab {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25D366;
  color: #fff;
  box-shadow: var(--shadow);
  font-size: 22px;
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .grid.cards {
    grid-template-columns: 1fr;
  }

  .gallery {
    grid-template-columns: 1fr 1fr;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    position: absolute;
    right: 4vw;
    top: 62px;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 10px;
    box-shadow: var(--shadow);
    min-width: 210px;
  }

  .nav.is-open {
    display: flex;
  }
}

/* ===== EQUIPO (grupos por especialidad) ===== */
.team-group {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.team-group:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.team-group-head {
  margin-bottom: 14px;
}

.team-group-head h3 {
  margin: 0 0 4px;
  font-size: 30px;
}

.staff {
  display: grid;
  grid-template-columns: 120px 1fr;
  /* ancho de la foto */
  gap: 16px;
  align-items: stretch;
  /* clave */
}

.staff-photo {
  width: 100%;
  height: 160px;
  /* fija la foto */
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--soft);
}

.staff-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* llena todo */
  display: block;
}


.staff-name {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
}

.staff-role {
  margin: 2px 0 8px;
  font-weight: 700;
}

.staff-desc {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 900px) {
  .staff {
    grid-template-columns: 96px 1fr;
  }

  .staff-photo {
    border-radius: 14px;
  }
}

/* ===== SERVICIOS (grilla seleccionable) ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.service-card {
  display: grid;
  grid-template-columns: 80px 1fr;
  /* ← MÁS ANCHO */
  gap: 16px;
  /* ← más aire */
  align-items: center;

  min-height: 150px;
  /* probá 140 / 150 / 160 */

  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  /* ← más padding */
  box-shadow: 0 6px 16px rgba(0, 0, 0, .05);
}


.service-card:hover {
  transform: translateY(-2px);
  border-color: rgba(31, 122, 74, .35);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .08);
}

.service-icon {
  width: 70px;
  height: 70px;
  border-radius: 16px;
  background: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon img {
  width: 70%;
  height: 70%;
  object-fit: contain;
  display: block;
}


.service-info h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--hero-text-soft);
}

.service-info p {
  margin: 4px 0 0;
  color: var(--hero-text-soft);
}

/* Estado seleccionado (lo aplica el JS opcional) */
.service-card.is-selected {
  border-color: var(--brand);
  box-shadow: 0 10px 26px rgba(31, 122, 74, .16);
}

/* Responsive */
@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Page hero (intro con imagen) ===== */
/* ===== Page hero (intro con imagen) ===== */
/* ===== Page hero (intro con imagen) ===== */
.page-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background-image: var(--hero-img);
  background-size: cover;
  background-position: center 52%;
  opacity: 0.35;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
}

/* overlay suave para legibilidad (arriba de la foto) */
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(255, 255, 255, .15),
      rgba(255, 255, 255, .15));
  z-index: 1;
  /* CLAVE: arriba del bg */
}


@media (max-width: 600px) {
  .page-hero {
    min-height: 280px;
    /* 👈 altura más chica tipo beneficios */
    display: flex;
    align-items: flex-end;
    /* baja el texto */
    padding-bottom: 20px;
  }

  .page-hero-inner {
    padding: 0 16px;
  }

  .page-hero h1 {
    font-size: 28px;
  }

  .page-hero-quote {
    font-size: 14px;
  }
}


.page-hero-quote::before {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: var(--brand);
  margin-bottom: 12px;
  border-radius: 2px;
}


@media (max-width: 900px) {
  .page-hero {
    min-height: clamp(260px, 40vh, 420px);
    padding: 44px 0 22px;
  }
}

@media (max-width: 700px) {
  .page-hero-quote {
    font-size: 1.05rem;
  }
}

.page-hero-quote {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .8s ease, transform .8s ease;
}

.page-hero-quote.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.page-hero h1 {
  opacity: 0;
  transform: translateY(10px);
  animation: quoteIn .9s ease-out .05s forwards;
  color: var(--hero-text-soft);
}

@keyframes quoteIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== CONVENIOS ===== */

.convenios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.convenio-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .05);
  padding: 16px;

  display: flex;
  flex-direction: column;
  min-height: 320px;
  /* 👈 todas iguales */
}

.convenio-logo {
  height: 72px;
  border: 1px dashed #c9d8cf;
  border-radius: 16px;
  background: rgba(255, 255, 255, .7);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  overflow: hidden;
}

.convenio-logo img {
  max-height: 56px;
  max-width: 90%;
  object-fit: contain;
  display: block;
}

.convenio-body h3 {
  margin: 0 0 6px;
  font-size: 20px;
}

.convenio-body p {
  margin: 0 0 10px;
  line-height: 1.6;
}

.convenio-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.convenio-list li {
  margin-bottom: 6px;
  line-height: 1.5;
}

.convenio-note {
  margin-top: auto;
  /* empuja la nota abajo -> tarjetas prolijas */
}

.convenios-cta {
  margin-top: 18px;
}

/* Responsive */
@media (max-width: 900px) {
  .convenios-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== CONVENIOS (lista vertical, una fila por convenio) ===== */

.convenios-lista {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.convenio-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 40px;
  align-items: start;
  padding: 26px;

  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .05);
}

.convenio-logo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;

  box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
  border: 1px solid #e8eee9;
  /* opcional */
}

.convenio-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transform: scale(3.5);

}


.convenio-info h3 {
  margin: 0 0 6px;
  font-size: 22px;
}

.convenio-info p {
  margin: 0 0 10px;
  line-height: 1.6;
}

.convenio-puntos {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.convenio-puntos li {
  margin-bottom: 6px;
  line-height: 1.5;
}

.convenio-nota {
  margin-top: 10px;
}

.convenios-cta {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

/* ===== CONVENIOS MOBILEEE ===== */
@media (max-width: 900px) {

  .convenio-item {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .convenio-logo {
    width: 110px;
    height: 110px;
    margin: 0 auto;
  }

  .convenio-logo img {
    width: 55%;
    height: 55%;
    object-fit: contain;
  }


}

/* ===== FIX: Beneficios en grilla sin agrandar logos ===== */
.beneficios-lista {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* recupera el “card”/caja que antes te controlaba el tamaño */
.beneficio-item {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .06);
  border-radius: 18px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* la caja del logo limita el alto y centra */
.beneficio-logo {
  width: 100%;
  height: 140px;
  /* ajusta si querés, pero NO toca el tamaño del logo */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.beneficio-logo img {
  width: auto !important;
  height: auto !important;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.beneficio-info h3 {
  margin: 12px 0 0;
}

.beneficios-cta {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

/* ===== RESPONSIVE BENEFICIOS ===== */

/* Tablet y mobile */
@media (max-width: 768px) {
  .beneficios-lista {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 0 12px;
  }

  .beneficio-item {
    padding: 16px;
  }

  .beneficio-logo {
    height: 120px;
  }
}

/* Mobile chico */
@media (max-width: 480px) {
  .beneficios-lista {
    grid-template-columns: 1fr;
  }
}


/* BOTON DE MENU CEL */
.nav-toggle {
  background: #f4f7f5;
  border: none;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 600;
  font-size: 14px;
  color: #1b5e3b;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.25s ease;
}

.nav-toggle:hover {
  background: #e8f3ec;
}

.nav-toggle:active {
  transform: scale(0.96);
}

/* TRABAJA CON NOSOTROS*/

.check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0;
  font-weight: 600;
  cursor: pointer;
}

.check input {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  cursor: pointer;
}

.check span {
  line-height: 1.4;
}

select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  font: inherit;
  font-weight: 600;
  color: var(--text);

  /* flechita personalizada */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  background-image: url("data:image/svg+xml,%3Csvg fill='%231f7a4a' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;

  cursor: pointer;
  transition: all 0.25s ease;
}

/* hover */
select:hover {
  border-color: var(--brand);
}

/* focus (cuando haces click) */
select:focus {
  outline: 3px solid rgba(31, 122, 74, .25);
  border-color: var(--brand);
}