/* =============================================
   Dra. Guillermina Valdivieso — Estilos
   ============================================= */

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

:root {
  --cream: #FAF7F2;
  --warm-brown: #8B6A4F;
  --dark-brown: #3D2B1F;
  --gold: #C4923A;
  --gold-light: #F5E6C8;
  --text-main: #2E1F14;
  --text-muted: #7A6858;
  --white: #FFFFFF;
  --border: rgba(139,106,79,0.2);
}

html { 
  scroll-behavior: smooth; 
}

body {
  font-family: 'Lato', sans-serif;
  background: var(--cream);
  color: var(--text-main);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ── NAVEGACIÓN ── */
nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0.5rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.nav-logo {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-decoration: none;
  line-height: 1.15;
  white-space: nowrap;
}

.nav-logo .logo-title span {
  color: var(--gold); /* "Burmeister" en color dorado */
}
.nav-logo .logo-subtitle {
  font-size: 13px;
  font-family: 'Lato', sans-serif;
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-top: 2px;
}
.nav-logo .logo-title {
  font-family: 'Playfair Display', serif;
  font-size: 25px;
  font-weight: 700;
  color: var(--dark-brown);
  letter-spacing: 0.3px;
}

.nav-links {
  display: flex;
  gap: 2.2rem;
  list-style: none;
}
.nav-links {
  display: flex;
  gap: 2.2rem;
  list-style: none;
  margin-left: auto;   /* <--- Esto mueve los links más a la izquierda (cerca del logo) */
  margin-right: 2rem;  /* <--- Empuja el botón CTA (si tenés) hacia el extremo derecho */
}
.nav-links a {
  text-decoration: none;
  font-size: 16px;
  color: var(--text-muted);
  transition: color 0.2s;
  font-weight: 600;
}
/* Links del menú */
.nav-links a:hover { 
  color: var(--gold); 
}

/* Botón CTA (Consultá acá) */
.nav-cta {
  background: var(--gold);
  color: var(--dark-brown);
  border: none;
  padding: 10px 22px;
  border-radius: 4px;
  font-size: 14px;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

/* Hover arreglado: le agregamos color: var(--white) para que el texto sea visible */
.nav-cta:hover { 
  background: var(--dark-brown);
  color: var(--white); /* <--- Esto soluciona que no se lea */
  transform: translateY(-1px);
}

/* Menú hamburguesa (para mobile) */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}


/* OCULTAR MENÚ MÓVIL EN PANTALLAS GRANDES (Soluciona la barra repetida) */
.nav-mobile-menu {
  display: none;
}

/* ── HERO ── */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 580px;
  align-items: center;
  padding: 5rem 3rem 5rem 4rem;
  gap: 3rem;
  background: linear-gradient(135deg, #FAF7F2 55%, #F5E6C8 100%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '§';
  position: absolute;
  right: 4%;
  top: 50%;
  transform: translateY(-50%);
  font-size: 360px;
  color: rgba(196,146,58,0.055);
  font-family: Georgia, serif;
  pointer-events: none;
  z-index: 0;
  line-height: 1;
}
.hero-content { position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold-light);
  color: var(--warm-brown);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 2px;
  margin-bottom: 1.3rem;
  border-left: 3px solid var(--gold);
}
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 50px;
  line-height: 1.12;
  color: var(--dark-brown);
  margin-bottom: 1rem;
}
.hero h1 em { font-style: italic; color: var(--gold); }
.hero-subtitle {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 2rem;
  font-weight: 300;
  max-width: 480px;
}
.hero-stats {
  display: flex;
  gap: 2.2rem;
  margin-bottom: 2.2rem;
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 34px;
  color: var(--gold);
  font-weight: 600;
  line-height: 1;
}
.stat-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.9px;
  margin-top: 5px;
}
.stat-divider {
  width: 1px;
  background: var(--border);
  align-self: stretch;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-primary {
  background: var(--gold);
  color: var(--white);
  border: none;
  padding: 15px 30px;
  border-radius: 4px;
  font-size: 15px;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
}
.btn-primary:hover { background: var(--dark-brown); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  color: var(--dark-brown);
  border: 1.5px solid var(--dark-brown);
  padding: 14px 30px;
  border-radius: 4px;
  font-size: 15px;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
}
.btn-outline:hover { background: var(--dark-brown); color: var(--white); }

.hero-image-area {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-card {
  background: var(--white);
  border-radius: 14px;
  padding: 2.2rem 2.5rem;
  border: 1px solid var(--border);
  max-width: 330px;
  width: 100%;
  box-shadow: 0 12px 40px rgba(61,43,31,0.1);
}
.avatar-circle {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light) 0%, #E8C07A 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  color: var(--dark-brown);
  font-weight: 600;
  margin: 0 auto 1.2rem;
  letter-spacing: -1px;
}
.hero-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  text-align: center;
  color: var(--dark-brown);
  margin-bottom: 4px;
}
.hero-card .card-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 0;
}
.card-divider {
  height: 1px;
  background: var(--border);
  margin: 1.2rem 0;
}
.card-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.card-detail:last-child { margin-bottom: 0; }
.card-icon {
  width: 32px;
  height: 32px;
  background: var(--gold-light);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ── SECCIONES GENERALES ── */
.section { padding: 5rem 3rem; }
.section-alt { background: var(--white); }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9rem;
  display: block;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 38px;
  color: var(--dark-brown);
  line-height: 1.2;
  margin-bottom: 1rem;
}
.section-desc {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.75;
  font-weight: 300;
}

/* ── SERVICIOS ── */
/* Importar tipografía Montserrat para los títulos */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&display=swap');


/* ── GRILLA DE SERVICIOS (3 arriba y 2 centradas abajo) ── */
/* ── GRILLA DE SERVICIOS (Flexbox) ── */
.services-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* Centra automáticamente las de la segunda fila */
  gap: 1.8rem;
  max-width: 1150px;
  margin: 0 auto;
}

/* Tarjetas: 3 por fila en pantallas grandes */
.service-card {
  /* Restamos el gap para que entren exactamente 3 iguales por fila */
  flex: 0 0 calc(33.333% - 1.2rem);
  box-sizing: border-box;
  background: var(--cream);
  border-radius: 10px;
  padding: 2rem;
  border: 1px solid var(--border);
  transition: all 0.28s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.28s ease;
  transform-origin: left;
}

.service-card:hover {
  border-color: rgba(196,146,58,0.5);
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(196,146,58,0.13);
}

.service-card:hover::after { 
  transform: scaleX(1); 
}

.service-icon {
  width: 52px;
  height: 52px;
  background: var(--gold-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
}

.service-icon svg { 
  width: 26px; 
  height: 26px; 
}

/* Títulos en Montserrat bien legibles */
.service-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--dark-brown);
  margin-bottom: 0.7rem;
  line-height: 1.3;
}

.service-card p {
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  font-weight: 400;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .service-card {
    flex: 0 0 calc(50% - 1rem); /* 2 por fila en tablets */
  }
}

@media (max-width: 600px) {
  .service-card {
    flex: 0 0 100%; /* 1 por fila en celulares */
  }
}



/* Títulos en Sans-Serif legible y moderna */
.service-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--dark-brown);
  margin-bottom: 0.7rem;
  line-height: 1.3;
}

.service-card p {
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  font-weight: 400;
}

/* ── RESPONSIVE (Tablets y Celulares) ── */
@media (max-width: 899px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columnas en tablets */
  }
  .services-grid > :nth-child(4),
  .services-grid > :nth-child(5) {
    grid-column: auto;
    margin-left: 0;
  }
}

@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr; /* 1 columna en celulares */
    gap: 1.2rem;
  }
}

/* ── SOBRE MÍ ── */
.about-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4.5rem;
  align-items: center;
  max-width: 1150px;
  margin: 0 auto;
}
.about-quote {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 23px;
  color: var(--dark-brown);
  line-height: 1.5;
  border-left: 4px solid var(--gold);
  padding-left: 1.5rem;
  margin: 1.8rem 0;
}
.about-text {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.85;
  font-weight: 300;
  margin-bottom: 1rem;
}
.about-right { display: flex; flex-direction: column; gap: 1rem; }
.value-pill {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.3rem;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: border-color 0.2s;
}
.value-pill:hover { border-color: rgba(196,146,58,0.4); }
.value-dot {
  width: 10px;
  height: 10px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 4px;
}
.value-pill strong {
  font-size: 14px;
  color: var(--dark-brown);
  font-weight: 700;
  display: block;
  margin-bottom: 3px;
}
.value-pill span { font-size: 13px; color: var(--text-muted); }

/* ── CONTACTO ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  max-width: 960px;
  margin: 0 auto;
  align-items: start;
}
.contact-info h3 {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  color: var(--dark-brown);
  margin-bottom: 0.7rem;
}
.contact-info > p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 2rem;
  font-weight: 300;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 1.1rem;
}
.contact-item-icon {
  width: 44px;
  height: 44px;
  background: var(--gold-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-item-text strong {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  display: block;
  margin-bottom: 2px;
}
.contact-item-text span { font-size: 15px; color: var(--dark-brown); }
.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2.2rem;
}
.form-group { margin-bottom: 1.1rem; }
.form-group label {
  font-size: 12px;
  font-weight: 700;
  color: var(--dark-brown);
  display: block;
  margin-bottom: 7px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  font-family: 'Lato', sans-serif;
  color: var(--text-main);
  background: var(--cream);
  outline: none;
  transition: border-color 0.2s;
  appearance: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--gold); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-submit {
  width: 100%;
  background: var(--gold);
  color: var(--white);
  border: none;
  padding: 15px;
  border-radius: 6px;
  font-size: 15px;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 0.4rem;
}
.form-submit:hover { background: var(--dark-brown); }

/* ── FOOTER ── */
footer {
  background: var(--dark-brown);
  color: rgba(255,255,255,0.55);
  padding: 2.8rem 18rem 2.8rem 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
/* Contenedor del logo en el Footer */
.footer-logo {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.2;
}

/* Título superior (Estudio Burmeister) en el Footer */
.footer-logo .logo-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--white); /* Blanco para resaltar sobre el fondo oscuro */
  letter-spacing: 0.3px;
}

.footer-logo .logo-title span {
  color: var(--gold); /* "Burmeister" en dorado */
}

/* Subtítulo inferior (Dra. Guillermina Valdivieso) en el Footer */
.footer-logo .logo-subtitle {
  font-size: 12px;
  font-family: 'Lato', sans-serif;
  color: rgba(255, 255, 255, 0.65); /* Blanco suave/legible */
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 3px;
}
.footer-text {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

/* ── BOTÓN FLOTANTE PARA VOLVER ARRIBA ── */
.back-to-top {
  position: fixed;
  bottom: 24px;
  left: 20px; /* <--- Un poco más pegado al borde para liberar el texto del footer */
  width: 44px;
  height: 44px;
  background-color: var(--gold);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.2s ease, background-color 0.2s;
  z-index: 999;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

/* Hover corregido: se pone dorado claro y el texto oscuro para que se vea genial sobre el footer */
.back-to-top:hover {
  background-color: var(--gold-light);
  color: var(--dark-brown);
  transform: translateY(-3px);
}

/* ── WHATSAPP FLOTANTE ── */
.whatsapp-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  background: #25D366;
  color: white;
  border: none;
  border-radius: 50px;
  padding: 15px 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: all 0.25s;
  text-decoration: none;
}
.whatsapp-btn:hover {
  background: #1EA952;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(37,211,102,0.45);
}

/* ── ANIMACIONES ── */
.fade-in {
  opacity: 0;
  transform: translateY(22px);
  animation: fadeIn 0.7s ease forwards;
}
@keyframes fadeIn { to { opacity: 1; transform: translateY(0); } }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.22s; }
.delay-3 { animation-delay: 0.34s; }
.delay-4 { animation-delay: 0.46s; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .nav-mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 2rem;
    flex-direction: column;
    gap: 1.2rem;
    z-index: 999;
  }
  .nav-mobile-menu.open { display: flex; }
  .nav-mobile-menu a {
    text-decoration: none;
    font-size: 16px;
    color: var(--dark-brown);
    font-weight: 400;
  }
  .nav-mobile-menu .nav-cta-mobile {
    background: var(--gold);
    color: var(--white);
    padding: 12px 20px;
    border-radius: 4px;
    text-align: center;
    font-weight: 700;
  }
  .hero {
    grid-template-columns: 1fr;
    padding: 3rem 1.5rem;
    min-height: auto;
  }
  .hero h1 { font-size: 36px; }
  .hero::before { display: none; }
  .hero-image-area { justify-content: flex-start; }
  .hero-card { max-width: 100%; }
  .about-section { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .section { padding: 3.5rem 1.5rem; }
  .section-title { font-size: 30px; }
  footer { flex-direction: column; text-align: center; padding: 2rem 1.5rem; }
  .whatsapp-btn span { display: none; }
  .whatsapp-btn { padding: 15px; border-radius: 50%; }
}

@media (max-width: 600px) {
  .hero h1 { font-size: 30px; }
  .hero-stats { gap: 1.2rem; }
  .stat-num { font-size: 26px; }
  .services-grid { grid-template-columns: 1fr; }
  .back-to-top { bottom: 20px; left: 20px; width: 40px; height: 40px; }
}


