/* ================= VARIABLES ================= */
:root {
  --pri: #8b78a5; --sec: #d8c8e8; --acento: #f2d6e0;
  --menta: #d2ecf0; --durazno: #f5dedc; --fondo: #fcfbfe;
  --texto: #2c2935; --gris: #6b6678; --wsp: #25d366;
}

/* ================= RESET Y BÁSICOS ================= */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { font-family: 'Figtree', sans-serif; background-color: var(--fondo); color: var(--texto); line-height: 1.6; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
.ancho { max-width: 1200px; margin: 0 auto; padding-left: 5%; padding-right: 5%; }
.oculto-visual { display: none; }
.bg-blanco { background-color: #fff !important; }

/* ================= HEADER ================= */
header { position: sticky; top: 0; background: rgba(252, 251, 254, 0.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--sec); z-index: 1000; transition: transform 0.3s; }
header.oculto { transform: translateY(-100%); }
header .fila { display: flex; justify-content: space-between; align-items: center; padding-top: 1rem; padding-bottom: 1rem; }
.marca { display: flex; align-items: center; gap: 12px; }
.marca img { border-radius: 50%; object-fit: cover; }
.marca span { font-weight: 700; font-size: 1rem; }
.marca small { font-size: 0.75rem; color: var(--gris); display: block; }
.menu { display: flex; gap: 2rem; }
.menu a { font-weight: 500; font-size: 0.95rem; color: var(--gris); transition: color 0.3s; }
.menu a:hover { color: var(--pri); }
.header-acciones-movil { display: flex; align-items: center; gap: 15px; }

/* ================= BOTONES ================= */
.btn { background: var(--pri); color: #fff; padding: 0.8rem 1.8rem; border-radius: 50px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; box-shadow: 0 4px 12px rgba(139, 120, 165, 0.25); transition: all 0.3s; border: none; cursor: pointer; white-space: nowrap; }
.btn:hover { filter: brightness(0.95); transform: translateY(-2px); }
.btn.sec { background: transparent; color: var(--pri); border: 2px solid var(--pri); box-shadow: none; }
.btn.sec:hover { background: var(--sec); }
.btn.chico { padding: 0.5rem 1.25rem; font-size: 0.9rem; }
.btn svg { width: 18px; height: 18px; }

/* ================= PORTADA ================= */
.portada { padding: 5rem 0; background: linear-gradient(135deg, var(--menta) 0%, var(--fondo) 70%); }
.rejilla { display: flex; flex-direction: column-reverse; align-items: center; text-align: center; gap: 2rem; }
.eti { display: inline-block; background: var(--sec); color: #4b3b60; padding: 0.45rem 1.2rem; border-radius: 20px; font-size: 0.88rem; font-weight: 600; margin-bottom: 1.5rem; border: 1px solid rgba(139,120,165,0.25); }
h1 { font-family: 'Fraunces', serif; font-size: 3rem; line-height: 1.2; margin-bottom: 1.2rem; }
h1 em { font-style: italic; color: var(--pri); }
.bajada { font-size: 1.1rem; color: var(--gris); margin: 0 auto 2rem; max-width: 700px; }
.acciones { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2rem; }

/* Sello Animado */
.sello { position: relative; display: flex; justify-content: center; align-items: center; min-height: 320px; width: 100%; }
.halo { position: absolute; width: 280px; height: 280px; background: radial-gradient(circle, rgba(210,236,240,0.4) 0%, rgba(252,251,254,0) 70%); border-radius: 50%; z-index: 1; }
.cinta { position: absolute; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.imagen-flotante-sello { position: relative; z-index: 4; width: 190px; height: 190px; border-radius: 50%; box-shadow: 0 10px 30px rgba(0,0,0,0.08); animation: flotar 5s ease-in-out infinite; }
@keyframes flotar { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ================= BANNER PROMO ================= */
.promo { background: var(--menta); padding: 1.5rem 0; margin: 3rem 0; border-radius: 14px; box-shadow: 0 4px 15px rgba(210,236,240,0.4); }
.promo .fila { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.promo b { font-size: 1.15rem; }
.promo span { color: var(--gris); font-size: 0.95rem; }
.promo s { opacity: 0.6; margin-left: 6px; }

/* ================= ESTRUCTURA SECCIONES ================= */
section { padding: 4rem 0; } 
.cab { text-align: center; max-width: 700px; margin: 0 auto 3rem; }
.cab h2 { font-family: 'Fraunces', serif; font-size: 2.25rem; line-height: 1.3; margin-top: 0.5rem; }
.cab h2 em { color: var(--pri); font-style: italic; }
.cab p { color: var(--gris); margin-top: 0.75rem; }

/* ================= TARJETAS BASE ================= */
.serv, .paso-card { background: #fff; padding: 2.5rem 2rem; border-radius: 16px; border: 1px solid rgba(139,120,165,0.15); box-shadow: 0 4px 20px rgba(0,0,0,0.02); transition: transform 0.3s, box-shadow 0.3s; display: flex; flex-direction: column; justify-content: space-between; border-top-style: solid; border-top-width: 5px; }
.serv:hover, .paso-card:hover { transform: translateY(-5px); box-shadow: 0 8px 30px rgba(139,120,165,0.12); border-color: var(--pri); }

/* Colores Bordes Superiores */
#servicios .serv:nth-child(1) { border-top-color: var(--menta); }
#servicios .serv:nth-child(2), #faq .paso-card { border-top-color: var(--sec); }
#servicios .serv:nth-child(3) { border-top-color: var(--durazno); }
#servicios .serv:nth-child(4) { border-top-color: var(--acento); }
#servicios .serv:nth-child(5) { border-top-color: var(--pri); }
#servicios .serv:nth-child(6) { border-top-color: var(--menta); }

/* Contenido Tarjetas Servicios */
.servicios { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.serv .ic { width: 44px; height: 44px; background: var(--menta); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 1.2rem; }
.serv h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }
.serv-sub { font-weight: 600; font-size: 0.95rem; margin-bottom: 0.5rem; }
.serv p { color: var(--gris); font-size: 0.95rem; margin-bottom: 1.5rem; }
.chip { display: inline-block; font-size: 0.8rem; font-weight: 600; background: var(--menta); padding: 0.25rem 0.75rem; border-radius: 6px; width: fit-content; }

/* Contenido Proceso (Cómo Empezar) */
.proceso-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.paso-card-item { padding: 2.2rem 1.4rem; border-top: none; }
.paso-1 { background: linear-gradient(135deg, #fff 0%, var(--menta) 100%); }
.paso-2 { background: linear-gradient(135deg, #fff 0%, var(--durazno) 100%); }
.paso-3 { background: linear-gradient(135deg, #fff 0%, var(--sec) 100%); }
.paso-4 { background: linear-gradient(135deg, #fff 0%, var(--acento) 100%); }
.paso-num { font-family: 'Fraunces', serif; font-style: italic; font-size: 2.5rem; margin-bottom: 0.5rem; display: block; line-height: 1; }
.paso-1 .paso-num { color: #436267; } .paso-2 .paso-num { color: #6e4a46; } .paso-3 .paso-num { color: var(--pri); } .paso-4 .paso-num { color: #804f64; }

/* ================= SOBRE MÍ / CERTIFICADOS (1 a la vez) ================= */
.michis-section { background: transparent; }
.michis-grid { display: flex; gap: 2rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0; scrollbar-width: none; max-width: 650px; margin: 0 auto; align-items: center; }
.michis-grid::-webkit-scrollbar { display: none; }
.michi-card { flex: 0 0 100%; width: 100%; scroll-snap-align: center; border-radius: 18px; overflow: hidden; box-shadow: none; background: transparent; display: flex; justify-content: center; align-items: center; }
.michi-card img { width: 100%; height: auto; object-fit: cover; display: block; border-radius: 18px; }
.michi-card:hover { transform: none; }

/* ================= FAQ & CONSULTORIO ================= */
.faq-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.paso-card { padding: 2rem; }
.paso-card h3 { font-family: 'Figtree', sans-serif; font-size: 1.15rem; font-weight: 700; margin-bottom: 0.5rem; }

/* ================= AJUSTE DE FOTOS DEL CONSULTORIO ================= */
.galeria { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-bottom: 2.5rem; }
.galeria figure { border-radius: 16px; overflow: hidden; height: 350px; background-color: #f4f2f7; }
.galeria img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.galeria img:hover { transform: scale(1.03); }

.datos { display: grid; grid-template-columns: minmax(240px,1fr) minmax(280px,1fr); gap: 2.5rem; background: #fff; padding: 2.2rem 2.5rem; border-radius: 16px; border: 1px solid rgba(139,120,165,0.15); max-width: 820px; margin: 0 auto; box-shadow: 0 8px 30px rgba(139,120,165,0.06); align-items: center; }
.dato small { font-weight: 700; text-transform: uppercase; font-size: 0.75rem; letter-spacing: 1px; color: var(--pri); display: block; margin-bottom: 0.5rem; }
.mapa-columna { display: flex; flex-direction: column; align-items: center; }
.centrado { text-align: center; width: 100%; }
.mapa-frame { width: 100%; height: 140px; margin-top: 0.4rem; border-radius: 10px; overflow: hidden; border: 1px solid rgba(139,120,165,0.2); }
.btn-copiar { width: 100%; background: var(--pri); color: #fff; border: none; padding: 0.65rem; border-radius: 8px; font-size: 0.85rem; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin-top: 0.8rem; transition: background 0.2s; }
.btn-copiar:hover { background: #796693; }

/* ================= REDES SOCIALES ================= */
.redes-section { background: linear-gradient(180deg, var(--menta) 0%, var(--fondo) 100%); }
.redes-grid { display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; max-width: 800px; margin: 0 auto; }
.tarjeta-red { background: #fff; display: flex; align-items: center; gap: 1.2rem; padding: 1.5rem 2rem; border-radius: 16px; width: 100%; max-width: 350px; border: 1px solid rgba(139,120,165,0.15); transition: transform 0.3s; }
.tarjeta-red:hover { transform: translateY(-5px); border-color: var(--pri); }
.icono-red { width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; }
.icono-red.instagram { background: linear-gradient(45deg, #f09433, #dc2743, #bc1888); }
.icono-red.facebook { background: #1877f2; }
.tarjeta-red h3 { font-size: 1.1rem; margin-bottom: 0.1rem; }
.tarjeta-red span { font-size: 0.85rem; color: var(--gris); }

/* ================= ANIMACIONES & MISCELÁNEOS ================= */
[data-sube] { opacity: 0; transform: translateY(25px); transition: opacity 0.8s, transform 0.8s; }
[data-sube].ya { opacity: 1; transform: translateY(0); }
footer { padding: 3rem 0; text-align: center; font-size: 0.85rem; color: var(--gris); border-top: 1px solid var(--sec); opacity: 0.8; }

/* WhatsApp Flotante */
.whatsapp-flotante { position: fixed; bottom: 2rem; right: 2rem; background: var(--wsp); color: #fff; width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 15px rgba(37,211,102,0.4); z-index: 999; transition: transform 0.3s, opacity 0.3s; opacity: 0; transform: scale(0); pointer-events: none; }
.whatsapp-flotante.ver { opacity: 1; transform: scale(1); pointer-events: auto; }
.whatsapp-flotante:hover { transform: scale(1.1); }
@media (min-width: 1024px) { .whatsapp-flotante { opacity: 1; transform: scale(1); pointer-events: auto; } }

/* Aviso Flotante (Toast) de Redirección a WhatsApp */
.toast-wsp {
  position: fixed;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  background: var(--wsp);
  color: #fff;
  padding: 0.85rem 1.6rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45);
  z-index: 3000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  white-space: nowrap;
}
.toast-wsp.mostrar {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ================= MENÚ MÓVIL Y MODAL ================= */
.hamburger { display: none; background: transparent; border: none; width: 28px; height: 22px; flex-direction: column; justify-content: space-between; z-index: 1001; cursor: pointer; padding: 0; }
.hamburger span { width: 100%; height: 3px; background: var(--texto); border-radius: 3px; }
.mobile-menu-overlay, .modal-agendar-overlay { position: fixed; inset: 0; background: rgba(44,41,53,0.6); backdrop-filter: blur(5px); z-index: 2500; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.mobile-menu-overlay { display: flex; justify-content: flex-end; }
.modal-agendar-overlay { z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 1.2rem; }
.mobile-menu-overlay.activo, .modal-agendar-overlay.activo { opacity: 1; pointer-events: auto; }
.mobile-menu-content { background: #fff; width: 85%; max-width: 320px; height: 100%; padding: 2.5rem 1.8rem; display: flex; flex-direction: column; gap: 1.2rem; transform: translateX(100%); transition: transform 0.3s; overflow-y: auto; }
.mobile-menu-overlay.activo .mobile-menu-content { transform: translateX(0); }
.modal-agendar-contenido { background: #fff; width: 100%; max-width: 480px; max-height: 90vh; padding: 2rem 1.5rem; border-radius: 20px; transform: translateY(20px); transition: transform 0.3s; overflow-y: auto; position: relative; }
.modal-agendar-overlay.activo .modal-agendar-contenido { transform: translateY(0); }
.mobile-menu-close, .modal-cerrar { background: transparent; border: none; font-size: 2.2rem; color: var(--gris); cursor: pointer; align-self: flex-end; }
.modal-cerrar { position: absolute; top: 1rem; right: 1.2rem; }
.mobile-link { font-size: 1.1rem; font-weight: 600; padding: 0.5rem 0; border-bottom: 1px solid var(--sec); }

/* Formulario Modal */
.modal-agendar-contenido h3 { font-family: 'Fraunces', serif; font-size: 1.6rem; margin-bottom: 0.4rem; }
.form-grupo { margin-bottom: 1rem; }
.form-grupo label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.3rem; }
.form-grupo input, .form-grupo select { width: 100%; padding: 0.7rem; border: 1px solid rgba(139,120,165,0.3); border-radius: 10px; font-family: 'Figtree', sans-serif; background: var(--fondo); }
.nota-horario { font-size: 0.78rem; color: var(--gris); background: var(--sec); padding: 0.6rem; border-radius: 8px; border-left: 3px solid var(--pri); margin-bottom: 1.2rem; }
.btn-enviar-wsp { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--pri); color: #fff; border: none; padding: 0.85rem; border-radius: 12px; font-weight: 600; cursor: pointer; transition: background 0.2s; }
.btn-enviar-wsp:hover { background: #796693; }
.btn-enviar-wsp.enviando { background: var(--wsp); }

/* ================= RESPONSIVE ================= */
@media (max-width: 992px) { .servicios, .proceso-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; } }

@media (max-width: 860px) {
  .marca small, .menu { display: none; } 
  .hamburger { display: flex; }
  h1 { font-size: 2.2rem; } 
  .sello { min-height: 260px; } 
  .imagen-flotante-sello { width: 150px; height: 150px; }
  .galeria, .datos { grid-template-columns: 1fr; }
  .btn.chico { padding: 0.38rem 0.85rem; font-size: 0.78rem; }
  
  .portada { padding: 1.5rem 0 3rem; } 
  .rejilla { gap: 1rem; }
}

@media (max-width: 640px) { .servicios, .proceso-grid { grid-template-columns: 1fr; } }

/* ================= ESCRITORIO ================= */
@media (min-width: 861px) {
  .ancho { width: 100%; max-width: 1500px; margin-left: auto; margin-right: auto; padding-left: clamp(28px, 3.5vw, 64px); padding-right: clamp(28px, 3.5vw, 64px); }
  header .fila { gap: clamp(16px, 2vw, 32px); padding-top: 1rem; padding-bottom: 1rem; }
  .marca { flex-shrink: 0; gap: 12px; }
  .marca img { width: 46px; height: 46px; }
  .marca span { font-size: clamp(0.9rem, 0.9vw, 1.05rem); }
  .marca small { max-width: 180px; line-height: 1.4; }
  .menu { display: flex; align-items: center; justify-content: center; flex: 1; min-width: 0; gap: clamp(10px, 1.35vw, 22px); }
  .menu a { font-size: clamp(0.8rem, 0.85vw, 0.95rem); white-space: nowrap; }
  .header-acciones-movil { flex-shrink: 0; gap: 10px; }
  .portada { padding-top: clamp(64px, 5.5vw, 96px); padding-bottom: clamp(56px, 5vw, 88px); }
  .rejilla { display: flex; flex-direction: column-reverse; align-items: center; justify-content: center; gap: clamp(28px, 3vw, 46px); text-align: center; }
  .rejilla > div:first-child { width: 100%; max-width: 1050px; }
  .sello { width: 100%; max-width: 1050px; min-height: clamp(240px, 19vw, 330px); }
  .halo { width: clamp(240px, 20vw, 320px); height: clamp(240px, 20vw, 320px); }
  .imagen-flotante-sello { width: clamp(180px, 13vw, 230px); height: clamp(180px, 13vw, 230px); object-fit: cover; }
  .eti { font-size: clamp(0.85rem, 0.9vw, 1rem); }
  h1 { font-size: clamp(2.8rem, 3.3vw, 4rem); line-height: 1.18; max-width: 1100px; margin-left: auto; margin-right: auto; }
  .bajada { font-size: clamp(1rem, 1.1vw, 1.2rem); line-height: 1.8; max-width: 850px; }
  .acciones { justify-content: center; gap: 16px; }
  .acciones .btn { padding: 0.9rem 1.8rem; }
  .promo { padding: 1.25rem 0; margin-top: 0; margin-bottom: 2.5rem; }
  .promo .fila { justify-content: center; gap: clamp(24px, 3vw, 50px); }
  .promo b { font-size: clamp(1rem, 1.05vw, 1.2rem); }
  .promo span { font-size: clamp(0.85rem, 0.9vw, 1rem); }
}

@media (min-width: 1600px) {
  .ancho { max-width: 1600px; }
  .rejilla > div:first-child { max-width: 1150px; }
  .sello { max-width: 1150px; }
  h1 { font-size: clamp(3.5rem, 3.2vw, 4.5rem); }
}

/* ================= SOBRE MÍ - TARJETA ESTILIZADA ================= */
.sobre-mi-card {
  background: linear-gradient(135deg, #fff 0%, var(--fondo) 100%);
  border: 1px solid rgba(139, 120, 165, 0.2);
  border-radius: 20px;
  padding: 3.5rem 3rem;
  box-shadow: 0 10px 30px rgba(139, 120, 165, 0.08);
  max-width: 900px;
  margin: 0 auto 3rem auto;
  text-align: left;
  position: relative;
  overflow: hidden;
  border-top: 5px solid var(--pri);
}

.sobre-mi-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, var(--menta) 0%, rgba(252,251,254,0) 70%);
  opacity: 0.6;
  pointer-events: none;
}

.sobre-mi-card p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--texto);
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.sobre-mi-frase {
  border-top: 1px solid var(--sec);
  margin-top: 2rem;
  padding-top: 2rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.sobre-mi-frase p {
  font-size: 1.1rem;
  line-height: 1.6;
  font-style: italic;
  color: var(--pri);
  font-weight: 500;
  margin: 0;
}

@media (max-width: 860px) {
  .sobre-mi-card { padding: 2.5rem 1.5rem; margin: 0 1rem 2.5rem 1rem; }
  .sobre-mi-card p { font-size: 0.98rem; }
}

