:root {
  --wine: #7d2e4e;
  --wine-dark: #5f2039;
  --wine-light: #9c4368;
  --gold: #c9a35f;
  --gold-light: #e8d3a5;
  --pink-bg: #f9ecf1;
  --tan-bg: #f5ecdd;
  --cream: #fdf8f4;
  --text-dark: #2c2230;
  --text-muted: #6b5c68;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(125, 46, 78, 0.12);
  --radius: 16px;
  --brand-teal: #7da9a4;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: block;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.75rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 10px;
  position: relative;
}

.eyebrow::before,
.eyebrow::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 30px;
  height: 1px;
  background: var(--gold);
}
.eyebrow::before { left: calc(50% - 90px); }
.eyebrow::after { right: calc(50% - 90px); }

.section-title {
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 600;
  color: var(--wine-dark);
  margin-bottom: 48px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--wine) 0%, var(--wine-dark) 100%);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(125, 46, 78, 0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(125, 46, 78, 0.4); }

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--wine);
  color: var(--wine);
}
.btn-outline:hover { background: var(--wine); color: var(--white); }

.btn-light {
  background: var(--white);
  color: var(--wine-dark);
}
.btn-light:hover { transform: translateY(-2px); }

.btn-sm {
  padding: 9px 20px;
  font-size: 0.82rem;
}

/* ---------- Placeholder image blocks (swap for real photos) ---------- */
.ph-image {
  background: linear-gradient(135deg, var(--pink-bg) 0%, var(--tan-bg) 100%);
  border: 1px dashed var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.75rem;
  text-align: center;
  padding: 20px;
  gap: 8px;
  flex-direction: column;
}
.ph-image svg { width: 40px; height: 40px; opacity: 0.5; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--brand-teal);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.1);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo picture,
.footer-logo picture {
  flex-shrink: 0;
}

.logo-badge {
  height: 48px;
  width: auto;
  flex-shrink: 0;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--white);
  position: relative;
  padding: 4px 0;
}

.nav-links a.active {
  color: var(--gold-light);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gold-light);
  border-radius: 2px;
}

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

.header-cta {
  color: var(--white);
  padding: 12px 26px;
  gap: 10px;
  flex-shrink: 0;
}
.header-cta:hover {
  color: var(--white);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  width: 26px;
  height: 2px;
  background: var(--wine-dark);
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--cream);
  padding: 70px 0 60px;
}

.hero-swoosh {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 55%;
  z-index: 0;
  opacity: 0.9;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-content h1 {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 500;
  color: var(--wine-dark);
  line-height: 1.2;
  margin-bottom: 18px;
}

.hero-content h1 em {
  font-style: italic;
  color: #9d5d7f;
}

.hero-content p {
  color: var(--text-dark);
  font-size: 1rem;
  max-width: 440px;
  margin-bottom: 28px;
}

.hero-features {
  display: flex;
  gap: 22px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-dark);
  max-width: 150px;
}

.hero-feature svg {
  width: 26px;
  height: 26px;
  color: var(--wine);
  flex-shrink: 0;
}

.hero-image-wrap {
  position: relative;
}

.hero-image {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  aspect-ratio: 480/421;
  object-fit: cover;
  box-shadow: var(--shadow);
}

/* ---------- Services ---------- */
.services {
  padding: 90px 0 70px;
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.service-card {
  border-radius: var(--radius);
  padding: 34px 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.service-card.obstetricia { background: var(--pink-bg); }
.service-card.ginecologia { background: var(--tan-bg); }
.service-card.salud-femenina { background: var(--wine); color: var(--white); }

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  background: var(--white);
}
.service-card.salud-femenina .service-icon { background: rgba(255,255,255,0.15); }

.service-icon svg { width: 28px; height: 28px; color: var(--wine); }
.service-card.salud-femenina .service-icon svg { color: var(--white); }

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--wine-dark);
}
.service-card.salud-femenina h3 { color: var(--white); }

.service-card > p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.service-card.salud-femenina > p { color: rgba(255,255,255,0.8); }

.service-list {
  margin-bottom: 22px;
}

.service-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.85rem;
  margin-bottom: 10px;
  color: var(--text-dark);
}
.service-card.salud-femenina .service-list li { color: rgba(255,255,255,0.95); }

.service-list li svg {
  width: 16px;
  height: 16px;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.service-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--wine);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}
.service-card.salud-femenina .service-link { color: var(--gold-light); }
.service-link .chevron { width: 14px; height: 14px; transition: transform 0.25s ease; }
.service-link[aria-expanded="true"] .chevron { transform: rotate(180deg); }

.service-detail {
  overflow: hidden;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(125, 46, 78, 0.15);
}
.service-card.salud-femenina .service-detail { border-top-color: rgba(255,255,255,0.2); }
.service-detail[hidden] { display: none; }

.service-detail-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.85rem;
  margin-bottom: 10px;
  color: var(--text-dark);
}
.service-card.salud-femenina .service-detail-list li { color: rgba(255,255,255,0.95); }

.service-detail-list li::before {
  content: "+";
  color: var(--gold);
  font-weight: 700;
  flex-shrink: 0;
}

.service-price {
  font-weight: 700;
  color: var(--wine-dark);
  font-size: 1rem;
  margin-top: 6px;
}
.service-card.salud-femenina .service-price { color: var(--gold-light); }

/* ---------- About ---------- */
.about {
  padding: 80px 0;
  background: var(--cream);
  position: relative;
}

.about .container {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
  align-items: center;
}

.about-image {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  aspect-ratio: 4/5;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.about-text .section-title {
  text-align: left;
  margin-bottom: 20px;
}
.about-text .eyebrow { text-align: left; }
.about-text .eyebrow::before, .about-text .eyebrow::after { display: none; }

.about-text > p {
  color: var(--text-muted);
  margin-bottom: 26px;
  max-width: 520px;
}

.about-points {
  display: flex;
  gap: 26px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.about-point {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 500;
  max-width: 150px;
}
.about-point svg { width: 30px; height: 30px; color: var(--wine); flex-shrink: 0; }

.about-detail { max-width: 520px; }
.about-cedula {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--wine-dark);
  margin-bottom: 12px;
}

/* ---------- Why choose us banner ---------- */
.why-banner {
  background: linear-gradient(135deg, var(--wine) 0%, var(--wine-dark) 100%);
  padding: 40px 0;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.why-item {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--white);
}

.why-item svg {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  color: var(--gold-light);
}

.why-item h4 {
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.why-item p {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.75);
}

/* ---------- Testimonials ---------- */
.testimonials {
  padding: 90px 0 70px;
  background: var(--white);
}

.testi-source {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: -28px;
  margin-bottom: 40px;
}
.testi-source:hover { color: var(--wine); }
.testi-source-stars {
  color: var(--gold);
  letter-spacing: 1px;
}
.testi-source-link {
  text-decoration: underline;
  font-weight: 600;
}

.testi-track-wrap {
  position: relative;
  overflow: hidden;
}

.testi-track {
  display: flex;
  gap: 24px;
  transition: transform 0.45s ease;
}

.testi-card {
  background: var(--pink-bg);
  border-radius: var(--radius);
  padding: 30px 26px;
  position: relative;
  flex: 0 0 calc((100% - 48px) / 3);
  display: flex;
  flex-direction: column;
}

.testi-quote-mark {
  font-family: 'Playfair Display', serif;
  font-size: 2.6rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 10px;
}

.testi-card p.text {
  font-size: 0.88rem;
  color: var(--text-dark);
  margin-bottom: 20px;
  min-height: 80px;
}

.testi-person {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}

.testi-stars {
  color: var(--gold);
  font-size: 0.8rem;
  letter-spacing: 1px;
  flex-shrink: 0;
}

.testi-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--wine-dark);
}

.testi-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 34px;
}

.testi-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--gold-light);
  cursor: pointer;
  padding: 0;
}
.testi-dots button.active { background: var(--wine); }

.testi-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  color: var(--wine);
}
.testi-arrow.prev { left: -21px; }
.testi-arrow.next { right: -21px; }

/* ---------- Contact ---------- */
.contact {
  padding: 0 0 90px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.contact-cta {
  background: linear-gradient(135deg, var(--wine) 0%, var(--wine-dark) 100%);
  color: var(--white);
  padding: 46px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 18px;
}

.contact-cta h3 {
  font-size: 1.4rem;
  font-weight: 600;
}

.contact-cta p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.8);
}

.contact-phone {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.1rem;
  font-weight: 600;
}
.contact-phone svg { width: 22px; height: 22px; color: var(--gold-light); }

.contact-map {
  position: relative;
}

.map-embed {
  width: 100%;
  height: 100%;
  min-height: 320px;
  display: block;
}

.map-overlay {
  position: absolute;
  bottom: 16px;
  left: 16px;
  max-width: 240px;
  background: rgba(255, 255, 255, 0.78);
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: var(--shadow);
}

.map-overlay h4 {
  font-size: 0.95rem;
  color: var(--wine-dark);
  margin-bottom: 4px;
}

.map-overlay p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.map-overlay a {
  font-size: 0.8rem;
  color: var(--wine);
  font-weight: 600;
  display: inline-block;
  margin-top: 6px;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--brand-teal);
  color: var(--white);
  padding: 34px 0;
}

.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-logo .logo-badge { height: 44px; }

.footer-social {
  display: flex;
  gap: 14px;
}
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.footer-social a:hover { background: rgba(255,255,255,0.25); }
.footer-social svg, .footer-social img { width: 18px; height: 18px; }

.footer-legal {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.7);
  text-align: right;
}
.footer-legal a { text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-image-wrap { order: -1; max-width: 360px; margin: 0 auto; }
  .hero-swoosh { display: none; }
  .hero-features { justify-content: center; }
  .hero-content .btn-primary { display: flex; width: max-content; margin: 0 auto; }
  .services-grid { grid-template-columns: 1fr; }
  .about .container { grid-template-columns: 1fr; }
  .about-image { max-width: 360px; margin: 0 auto; }
  .about-point:nth-child(3) { display: none; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .testi-card { flex: 0 0 100%; }
  .testi-arrow { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px;
    gap: 16px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { color: var(--text-dark); }
  .nav-links a.active,
  .nav-links a:hover { color: var(--wine); }
  .nav-links a.active::after { background: var(--wine); }
  .nav-toggle { display: flex; }
  .logo-badge { height: 38px; }
  .logo { gap: 6px; }
  .header-cta { padding: 10px 16px; font-size: 0.82rem; gap: 6px; }
  .header-cta svg { width: 14px; height: 14px; }
  .nav-right { gap: 10px; }
  .header .container { gap: 8px; }
  .footer .container { flex-direction: column; text-align: center; }
  .footer-legal { text-align: center; }
}
