:root {
  --bg: #f4f7fb;
  --text: #1a2435;
  --muted: #5e6e82;
  --primary: #0e6e82;
  --primary-2: #42d5d2;
  --line: rgba(26, 36, 53, 0.1);
  --panel: #ffffff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
}
a { color: var(--primary); text-decoration: none; }

.container { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  background: rgba(4, 20, 44, 0.35);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
}
.header-row {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  color: #eff7ff;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}
.brand strong { color: var(--primary-2); }
.brand-dot {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: rgba(70, 213, 210, 0.2);
  border: 1px solid rgba(70, 213, 210, 0.45);
  font-size: 0.75rem;
}

.site-nav { display: flex; align-items: center; gap: 1rem; }
.site-nav a { color: rgba(238, 246, 255, 0.88); font-size: 0.93rem; }
.top-phone { opacity: 0.95; }
.top-cta {
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  background: rgba(70, 213, 210, 0.92);
  color: #062336 !important;
  font-weight: 700;
}

.menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 0;
}
.menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  margin: 5px auto;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 88px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 26, 64, 0.9) 0%, rgba(8, 26, 64, 0.8) 44%, rgba(8, 26, 64, 0.38) 75%, rgba(8, 26, 64, 0.25) 100%),
    url("woman-eye-exam.jpg") center / cover no-repeat;
}
.hero-content { position: relative; z-index: 1; max-width: 720px; }
.hero-pill {
  display: inline-block;
  border-radius: 999px;
  padding: 0.28rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #dbe8f7;
  font-size: 0.78rem;
  margin-bottom: 1rem;
}
.hero h1 {
  margin: 0;
  color: #fff;
  font-family: "Fraunces", Georgia, serif;
  line-height: 1.1;
  font-size: clamp(2rem, 5vw, 4rem);
}
.hero h1 span {
  background: linear-gradient(120deg, #5fe3e0, #83f3d9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
}
.hero-copy {
  color: rgba(233, 242, 252, 0.9);
  max-width: 52ch;
  margin-top: 1rem;
}
.hero-actions { display: flex; gap: 0.75rem; margin-top: 1.1rem; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 0.72rem 1.2rem;
  border-radius: 12px;
  font-weight: 700;
  border: 1px solid transparent;
}
.btn-primary { background: #fff; color: #062337; }
.btn-outline {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.28);
  color: #f5f9ff;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.4rem;
  max-width: 680px;
}
.hero-stat {
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  padding-right: 0.7rem;
}
.hero-stat:last-child { border-right: none; }
.hero-stat strong {
  color: #fff;
  font-family: "Fraunces", Georgia, serif;
  font-size: 2rem;
  line-height: 1;
}
.hero-stat span { color: rgba(236, 243, 253, 0.9); font-size: 0.9rem; }

.section { padding: 4.5rem 0; }
.section.alt { background: #edf3f8; }
.label {
  margin: 0;
  color: #a17d1f;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.76rem;
  font-weight: 700;
}
h2 {
  margin: 0.4rem 0 1rem;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
}
.intro { color: var(--muted); max-width: 60ch; }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.2rem;
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.1rem;
}
.card h3 { margin: 0 0 0.45rem; font-size: 1.03rem; }
.card p { margin: 0; color: var(--muted); }

/* Quienes somos */
#nosotros .container { max-width: 980px; }
.about-wrap {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 2.2rem;
  align-items: start;
}
.about-media {
  position: relative;
}
.about-deco {
  position: absolute;
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: #d8f0ec;
  top: -12px;
  left: -12px;
}
.about-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 14px;
  position: relative;
  z-index: 1;
  border: 1px solid #d8dee8;
}
.about-content h2 {
  max-width: 14ch;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.about-content h2 span {
  font-style: italic;
}
.about-content .intro {
  font-size: 0.93rem;
  line-height: 1.6;
  max-width: 57ch;
  margin-bottom: 0.75rem;
}
.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 3rem;
  margin-top: 1.5rem;
}
.about-features article {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 1rem;
  align-items: start;
}
.about-features article span {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  background: #edf3fb;
  color: #3f93c2;
  font-size: 0.85rem;
  margin-top: 0.1rem;
}
.about-features h3 {
  margin: 0;
  font-size: 0.86rem;
}
.about-features p {
  margin: 0.2rem 0 0;
  font-size: 0.78rem;
  color: #616c7f;
}

/* Servicios (estilo similar a la referencia) */
#servicios .container { max-width: 980px; }
#servicios .label { color: #7b8798; }
#servicios h2 { margin-bottom: 0.8rem; }
.services-grid {
  margin-top: 0.65rem;
  gap: 0.85rem;
}
.service-card {
  background: #f7f9fc;
  border: 1px solid #d8dee8;
  border-radius: 12px;
  padding: 1rem 0.95rem 0.9rem;
  min-height: 176px;
}
.service-icon {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  color: #3d8bc2;
  background: #eef4fc;
}
.service-card:nth-child(2) .service-icon { color: #33acc4; background: #ecfafc; }
.service-card:nth-child(3) .service-icon { color: #d2a33d; background: #fff7e8; }
.service-card:nth-child(4) .service-icon { color: #3f9f92; background: #edf9f6; }
.service-card:nth-child(5) .service-icon { color: #a95de0; background: #f7edff; }
.service-card:nth-child(6) .service-icon { color: #43a463; background: #eaf8ef; }

.service-tag {
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.6rem;
  font-weight: 700;
  color: #818a99;
  margin-bottom: 0.35rem;
}
.service-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.02rem;
}
.service-card p {
  font-size: 0.84rem;
  line-height: 1.45;
  color: #5d6778;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}
.gallery div {
  aspect-ratio: 4/3;
  border-radius: 12px;
  background: linear-gradient(135deg, #d7e3ea, #9bc0cb);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  align-items: start;
}

.contact-location .label { color: #7b8798; }
.contact-location h2 { margin-top: 0.35rem; margin-bottom: 1rem; }

.contact-map {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #d8dee8;
  background: #e8ecf2;
  aspect-ratio: 16 / 10;
  max-height: 320px;
  margin-bottom: 1rem;
}
.contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  min-height: 220px;
}

.contact-address {
  margin: 0 0 0.85rem;
  font-size: 0.93rem;
  line-height: 1.55;
  color: #4a5568;
}

.btn-maps {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #0e6e82;
  color: #fff !important;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(14, 110, 130, 0.3);
}
.btn-maps:hover {
  background: #0a5666;
  text-decoration: none;
}

.contact-phone {
  margin: 1rem 0 0;
  font-size: 0.9rem;
}
.contact-phone a {
  color: var(--primary);
  font-weight: 600;
}
.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
}
.contact-form label { display: block; font-size: 0.84rem; font-weight: 700; margin-top: 0.4rem; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.62rem 0.7rem;
  font-family: inherit;
}

.site-footer {
  background: #041727;
  color: #c4d3e2;
  margin-top: 2rem;
}
.footer-main {
  padding: 2.6rem 0 1.9rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1.1fr;
  gap: 1.2rem;
}
.footer-main h4 {
  margin: 0 0 0.7rem;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: #fff;
  letter-spacing: 0.05em;
}
.footer-main a, .footer-main p {
  display: block;
  color: #c4d3e2;
  margin: 0.42rem 0;
  font-size: 0.89rem;
}
.social { display: flex; gap: 0.42rem; margin-top: 0.7rem; }
.social a {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.8rem 0 1rem;
  font-size: 0.83rem;
}

.whatsapp-float {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5);
}

@media (max-width: 980px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .site-nav { gap: 0.7rem; }
  .top-phone { display: none; }
  .about-wrap { grid-template-columns: 1fr; gap: 1.2rem; }
  .about-media img { aspect-ratio: 16 / 10; }
}
@media (max-width: 760px) {
  .menu-btn { display: block; }
  .site-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(4, 20, 44, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding: 1rem;
    display: none;
    flex-direction: column;
    align-items: flex-start;
  }
  .site-nav.open { display: flex; }
  .cards, .gallery, .contact-grid, .hero-stats { grid-template-columns: 1fr; }
  .about-features { grid-template-columns: 1fr; }
  .hero-stat { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.22); padding-bottom: 0.6rem; }
  .hero-stat:last-child { border-bottom: 0; }
  .footer-main { grid-template-columns: 1fr; }
}
