:root {
  --blue-dark: #003b78;
  --blue: #006bb6;
  --cyan: #16a6d9;
  --ink: #102033;
  --muted: #627084;
  --soft: #f2f8fc;
  --white: #ffffff;
  --line: #dce9f2;
  --shadow: 0 18px 55px rgba(0, 43, 86, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--blue-dark);
}

.brand img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.95rem;
  color: var(--ink);
}

.main-nav a:hover {
  color: var(--blue);
}

.btn-nav {
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--blue-dark);
  color: var(--white) !important;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  font-size: 30px;
  color: var(--blue-dark);
}

.hero {
  padding: 88px 0 70px;
  background:
    radial-gradient(circle at 80% 20%, rgba(22, 166, 217, 0.18), transparent 35%),
    linear-gradient(135deg, #ffffff 0%, #f5fbff 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
}

.eyebrow {
  color: var(--cyan);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  margin: 0 0 12px;
}

h1,
h2,
h3 {
  line-height: 1.15;
  margin-top: 0;
  color: var(--blue-dark);
}

h1 {
  font-size: clamp(2.35rem, 5vw, 4.8rem);
  letter-spacing: -0.045em;
  margin-bottom: 22px;
}

h2 {
  font-size: clamp(2rem, 3vw, 3.1rem);
  letter-spacing: -0.035em;
}

h3 {
  font-size: 1.25rem;
}

.lead {
  font-size: 1.23rem;
  color: var(--muted);
  max-width: 720px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin: 34px 0 30px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 800;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn.primary {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  color: var(--white);
  box-shadow: var(--shadow);
}

.btn.secondary {
  border-color: var(--line);
  background: var(--white);
  color: var(--blue-dark);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trust-row span {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--blue-dark);
  background: rgba(255, 255, 255, 0.75);
  font-weight: 700;
  font-size: 0.88rem;
}

.hero-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  text-align: center;
}

.hero-card img {
  width: min(330px, 100%);
  margin: 0 auto 24px;
}

.section {
  padding: 86px 0;
}

.soft {
  background: var(--soft);
}

.two-col {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
}

.two-col p {
  color: var(--muted);
  font-size: 1.05rem;
}

.section-head {
  max-width: 760px;
  margin-bottom: 36px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card,
.treatment-box,
.doctor,
.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0, 43, 86, 0.06);
}

.card {
  padding: 28px;
}

.card p,
.treatment-box li,
.doctor p,
.contact-card p {
  color: var(--muted);
}

.treatment-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.treatment-box {
  padding: 28px;
}

.treatment-box ul {
  padding-left: 20px;
  margin-bottom: 0;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.doctor {
  overflow: hidden;
}

.doctor img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  object-position: center top;
}

.doctor div {
  padding: 24px;
}

.role {
  color: var(--blue) !important;
  font-weight: 800;
}

.faq {
  display: grid;
  gap: 14px;
}

details {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 22px;
  background: var(--white);
}

summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--blue-dark);
}

details p {
  color: var(--muted);
}

.contact {
  background: linear-gradient(135deg, var(--blue-dark), #052a53);
}

.contact-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  padding: 36px;
  align-items: start;
}

.contact-card h2 {
  color: var(--blue-dark);
}

.contact-form {
  display: grid;
  gap: 12px;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  font: inherit;
}

textarea {
  resize: vertical;
}

small {
  color: var(--muted);
}

.footer {
  background: #061d36;
  color: var(--white);
  padding: 34px 0;
}

.footer p {
  color: #bad0e8;
  margin: 4px 0;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 30px;
}

@media (max-width: 920px) {
  .menu-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 82px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 20px;
    flex-direction: column;
    border-bottom: 1px solid var(--line);
  }

  .main-nav.open {
    display: flex;
  }

  .hero-grid,
  .two-col,
  .contact-card,
  .treatment-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100% - 26px, 1160px);
  }

  .hero {
    padding-top: 54px;
  }

  .brand span {
    display: none;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .doctor img {
    height: 300px;
  }

  .footer-grid {
    flex-direction: column;
  }
}


/* ===== NMC v2 visual refinements ===== */

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.nav {
  height: 86px;
}

.brand {
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  font-size: 1.28rem;
  letter-spacing: 0.01em;
}

.brand img {
  width: 66px;
  height: 66px;
}

.main-nav {
  gap: 30px;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 0.98rem;
}

.btn-nav {
  padding: 15px 24px;
}

.hero {
  padding: 58px 0 68px;
}

.eyebrow {
  color: var(--cyan);
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.86rem;
  margin: 0 0 18px;
}

h1,
h2,
h3 {
  font-family: "Montserrat", sans-serif;
  line-height: 1.05;
  margin-top: 0;
  color: var(--blue-dark);
  letter-spacing: -0.04em;
}

h1 {
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  font-size: clamp(3rem, 5.6vw, 5.9rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
  margin-bottom: 30px;
}

h2 {
  font-size: clamp(2rem, 3vw, 3.1rem);
  font-weight: 900;
}

h3 {
  font-size: 1.25rem;
  font-weight: 800;
}

.btn {
  font-family: "Montserrat", sans-serif;
}

.trust-row span {
  font-family: "Montserrat", sans-serif;
}

.hero-card {
  border-radius: 30px;
  padding: 46px 42px;
}

.hero-card img {
  width: min(430px, 100%);
  margin-bottom: 34px;
}

.hero-card h2 {
  font-size: clamp(1.7rem, 2.4vw, 2.7rem);
  line-height: 1.08;
  margin-bottom: 22px;
}

.hero-card p {
  color: var(--muted);
  font-size: 1.02rem;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.why-grid article {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0, 43, 86, 0.06);
  padding: 28px;
}

.why-grid .icon {
  font-size: 2rem;
  margin-bottom: 14px;
}

.why-grid p {
  color: var(--muted);
}

.role,
summary {
  font-family: "Montserrat", sans-serif;
}

@media (max-width: 1100px) {
  h1 {
    font-size: clamp(3rem, 7vw, 5.4rem);
  }

  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 920px) {
  .main-nav {
    top: 86px;
  }
}

@media (max-width: 620px) {
  .hero {
    padding-top: 42px;
  }

  h1 {
    font-size: clamp(2.6rem, 14vw, 4.2rem);
  }

  .why-grid {
    grid-template-columns: 1fr;
  }
}


/* ===== NMC v4: patologías + obras sociales + ajustes finales ===== */

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-intro {
  color: var(--muted);
  font-size: 1.05rem;
  margin-top: -10px;
}

.pathology-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(220px, 1fr));
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
}

.pathology-grid article {
  min-height: 250px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0, 43, 86, 0.06);
  padding: 26px;
}

.pathology-grid span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: var(--soft);
  color: var(--blue-dark);
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  margin-bottom: 18px;
}

.pathology-grid p {
  color: var(--muted);
}

.obras-sociales {
  background:
    radial-gradient(circle at 50% 0%, rgba(22, 166, 217, 0.10), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f5fbff 100%);
}

.insurance-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  align-items: center;
}

.insurance-card {
  min-height: 128px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0, 43, 86, 0.06);
}

.insurance-card.wide {
  grid-column: span 2;
}

.insurance-card.judicial {
  grid-column: span 4;
  background: #061d36;
}

.insurance-card img {
  max-width: 100%;
  max-height: 68px;
  object-fit: contain;
}

.insurance-card.judicial img {
  max-height: 90px;
}

.insurance-note {
  text-align: center;
  color: var(--muted);
  margin: 28px auto 0;
  max-width: 820px;
  font-size: 0.98rem;
}

.main-nav {
  gap: 24px;
}

.doctor p {
  font-size: 0.98rem;
}

@media (max-width: 1100px) {
  .insurance-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .insurance-card.judicial {
    grid-column: span 2;
  }
}

@media (max-width: 700px) {
  .insurance-grid {
    grid-template-columns: 1fr;
  }

  .insurance-card,
  .insurance-card.wide,
  .insurance-card.judicial {
    grid-column: span 1;
  }

  .insurance-card {
    min-height: 108px;
  }

  .pathology-grid {
    grid-template-columns: 1fr;
    overflow-x: visible;
  }
}


/* ===== NMC v5: ubicación definitiva ===== */

.location-card {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 34px;
  align-items: stretch;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 36px;
  box-shadow: var(--shadow);
}

.location-card p {
  color: var(--muted);
}

.address-box {
  margin-top: 24px;
  padding: 22px;
  border-radius: 22px;
  background: var(--soft);
  border: 1px solid var(--line);
  display: grid;
  gap: 6px;
}

.address-box strong {
  font-family: "Montserrat", sans-serif;
  color: var(--blue-dark);
}

.address-box span {
  color: var(--ink);
}

.map-placeholder {
  min-height: 260px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 30% 20%, rgba(22, 166, 217, 0.20), transparent 30%),
    linear-gradient(135deg, #eef8ff, #ffffff);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--blue-dark);
  text-align: center;
  padding: 28px;
}

.map-placeholder span {
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  font-size: 1.4rem;
}

.map-placeholder p {
  max-width: 360px;
  margin-bottom: 0;
}

@media (max-width: 920px) {
  .location-card {
    grid-template-columns: 1fr;
  }
}


/* ===== NMC v6: Google Maps interactivo ===== */

.map-embed {
  min-height: 360px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 10px 30px rgba(0, 43, 86, 0.06);
  display: grid;
  grid-template-rows: 1fr auto;
}

.map-embed iframe {
  width: 100%;
  height: 330px;
  border: 0;
  display: block;
}

.map-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding: 18px;
  justify-content: center;
  background: #ffffff;
}

.inline-link {
  color: var(--blue-dark);
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 620px) {
  .map-embed iframe {
    height: 280px;
  }

  .map-actions .btn {
    width: 100%;
  }
}


/* ===== NMC v6.2: hero balanceado aprobado ===== */

.hero {
  padding: 76px 0 74px;
}

.hero-grid {
  align-items: center;
}

.hero h1 {
  transform: none !important;
  font-size: clamp(2.9rem, 4.1vw, 4.65rem) !important;
  line-height: 1.08 !important;
  letter-spacing: -0.055em !important;
  margin-bottom: 20px !important;
  max-width: 820px;
}

.hero-divider {
  display: block;
  width: 78px;
  height: 4px;
  border-radius: 999px;
  background: var(--cyan);
  margin: 0 0 32px;
}

.hero .lead {
  max-width: 690px;
  font-size: 1.17rem;
  line-height: 1.65;
}

.hero-actions {
  margin-top: 36px;
}

.hero-card {
  padding: 44px 42px 38px !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-card img {
  width: min(380px, 100%) !important;
  margin-bottom: 28px !important;
}

.hero-card-line {
  width: 100%;
  height: 1px;
  background: var(--line);
  margin: 0 0 26px;
}

.hero-card h2 {
  font-size: clamp(1.7rem, 2.1vw, 2.35rem) !important;
  margin-bottom: 14px;
}

.hero-mini-features {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.hero-mini-features span {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  color: var(--blue-dark);
  font-size: 0.84rem;
  line-height: 1.35;
  background: var(--soft);
  border-radius: 16px;
  padding: 12px 10px;
}

@media (max-width: 920px) {
  .hero h1 {
    font-size: clamp(2.7rem, 8vw, 4.2rem) !important;
  }

  .hero-mini-features {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .hero {
    padding: 46px 0 56px;
  }

  .hero h1 {
    font-size: clamp(2.35rem, 11vw, 3.45rem) !important;
  }

  .hero .lead {
    font-size: 1.02rem;
  }
}


/* ===== NMC v6.3: tarjetas visuales reemplazan iconos ===== */

.why-grid.image-cards article {
  padding: 0 !important;
  overflow: hidden;
  min-height: 0;
}

.why-grid.image-cards img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
}

.why-grid.image-cards h3,
.why-grid.image-cards p {
  padding-left: 26px;
  padding-right: 26px;
}

.why-grid.image-cards h3 {
  margin-top: 20px;
}

.why-grid.image-cards p {
  padding-bottom: 28px;
}

.card-line {
  width: 52px;
  height: 4px;
  border-radius: 999px;
  background: var(--cyan);
  margin: 24px 0 0 26px;
}

@media (max-width: 920px) {
  .why-grid.image-cards img {
    height: 240px;
  }
}

@media (max-width: 620px) {
  .why-grid.image-cards img {
    height: 220px;
  }
}

/* Video de presentación en la portada */
.hero-video-card { min-width: 0; padding: 24px; }
.hero-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16; max-width: 270px; margin: 0 auto;
  object-fit: contain;
  background: #003b78;
  border-radius: 14px;
}
@media (max-width: 600px) {
  .hero-video-card { padding: 16px; }
}

/* Contacto de secretaría y acceso directo a WhatsApp */
.btn.whatsapp, .whatsapp-float {
  background: #128c4a;
  color: #fff;
}
.btn.whatsapp:hover, .whatsapp-float:hover { background: #0b6b37; }
.btn.whatsapp:focus-visible, .whatsapp-float:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 4px;
}
.whatsapp-float {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 60;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 14px 20px;
  border-radius: 999px;
  font-weight: 800;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .2);
}
.footer { padding-bottom: 100px; }
@media (max-width: 620px) {
  .whatsapp-float { padding: 14px; }
  .whatsapp-float span { display: none; }
}
