@charset "utf-8";
@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@600;700&family=Quicksand:wght@500;600;700&family=Outfit:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap');

/* ==========================================
   PALETA DE COLORES OFICIAL - DRA. FRANNY NÚÑEZ
   Extraída del logo corporativo oficial 3D
   - Coral Principal: #F26750
   - Melocotón / Salmón: #FFA175
   - Verde Estómago 3D: #9CD924
   - Amarillo Estrella: #FFC800
   ========================================== */

:root {
  /* Colores Corporativos Oficiales */
  --coral-principal: #f26750;
  --coral-oscuro: #d84832;
  --coral-hover: #e0533c;
  --melocoton-suave: #ffa175;
  --melocoton-pastel: #fff0eb;
  --verde-estomago: #9cd924;
  --verde-texto: #4d6600;
  --verde-fondo-suave: #f4fce0;
  --amarillo-estrella: #ffc800;
  
  /* Compatibilidad y neutros */
  --rosa-pastel: #fff0eb;
  --rosa-hover: #ffe2d6;
  --rosa-destacado: #f26750;
  --texto: #4a3c38;
  --texto-oscuro: #2a1f1c;
  --blanco: #ffffff;
  --fondo-pagina: #fff9f6;
  
  /* Sombras y bordes */
  --sombra: 0 8px 24px rgba(242, 103, 80, 0.14);
  --sombra-card: 0 12px 32px rgba(242, 103, 80, 0.09);
  --sombra-hover: 0 16px 40px rgba(242, 103, 80, 0.2);
  --borde-suave: rgba(242, 103, 80, 0.18);
  --transicion: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);

  /* Tipografías */
  --font-script: 'Caveat', cursive;
  --font-heading: 'Quicksand', 'Outfit', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 105px;
}

body {
  font-family: var(--font-body);
  background: var(--fondo-pagina);
  color: var(--texto);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ==========================================
   TOPBAR & BANNER ONDULADO
   ========================================== */

.top-wave-banner {
  width: 100%;
  height: 18px;
  background: linear-gradient(135deg, var(--coral-principal) 0%, var(--melocoton-suave) 100%);
  position: relative;
}

.topbar {
  background: var(--melocoton-pastel);
  padding: 6px 16px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--coral-oscuro);
  gap: 14px;
  border-bottom: 1px solid var(--borde-suave);
}

.topbar span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Header Sticky con Marca 3D */
.header {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--sombra);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1.5px solid var(--borde-suave);
}

.nav-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: var(--transicion);
}

.brand-wrap:hover {
  transform: translateY(-1px);
}

.brand-3d-logo {
  height: 58px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(242, 103, 80, 0.22));
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.brand-wrap:hover .brand-3d-logo {
  transform: scale(1.1) rotate(4deg);
}

.brand-text-block {
  display: flex;
  flex-direction: column;
}

.brand-title-script {
  font-family: var(--font-script);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--coral-principal);
  line-height: 1;
  letter-spacing: -0.3px;
}

.brand-subtitle-caps {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--coral-oscuro);
  line-height: 1.1;
  margin-top: 3px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1;
}

.nav a {
  text-decoration: none;
  color: var(--texto-oscuro);
  padding: 10px 16px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  transition: var(--transicion);
  position: relative;
  background: transparent;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav a:hover,
.nav a.active {
  background: var(--melocoton-pastel);
  color: var(--coral-principal);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(242, 103, 80, 0.15);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 5px;
  height: 3px;
  background: var(--coral-principal);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
  border-radius: 999px;
}

.nav a:hover::after,
.nav a.active::after {
  transform: scaleX(1);
}

/* Botón Cita */
.btn-cita {
  text-decoration: none;
  background: linear-gradient(135deg, var(--coral-principal) 0%, #e8553b 100%) !important;
  color: var(--blanco) !important;
  padding: 12px 24px !important;
  border-radius: 999px;
  font-family: var(--font-heading) !important;
  font-weight: 700 !important;
  font-size: 0.95rem;
  transition: var(--transicion);
  box-shadow: 0 8px 20px rgba(242, 103, 80, 0.35);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  border: none;
}

.btn-cita::after {
  display: none !important;
}

.btn-cita:hover {
  background: linear-gradient(135deg, var(--coral-oscuro) 0%, #d03d27 100%) !important;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 28px rgba(216, 72, 50, 0.45);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 14px;
  background: var(--melocoton-pastel);
  cursor: pointer;
  padding: 10px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  transition: var(--transicion);
}

.nav-toggle:hover {
  background: var(--rosa-hover);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2.5px;
  background: var(--coral-principal);
  border-radius: 999px;
  transition: 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ==========================================
   HERO SECTION
   ========================================== */

.hero {
  position: relative;
  padding: 50px 24px 80px;
  background: radial-gradient(circle at 85% 15%, rgba(255, 161, 117, 0.18) 0%, rgba(255, 249, 246, 1) 70%);
  overflow: hidden;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blanco);
  border: 1.5px solid var(--melocoton-suave);
  padding: 8px 18px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--coral-principal);
  box-shadow: 0 4px 14px rgba(242, 103, 80, 0.12);
  margin-bottom: 18px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 700;
  color: var(--texto-oscuro);
  line-height: 1.15;
  margin-bottom: 18px;
}

.hero-title span {
  color: var(--coral-principal);
  position: relative;
  display: inline-block;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--texto);
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-secondary {
  text-decoration: none;
  background: var(--blanco);
  color: var(--coral-principal);
  border: 2px solid var(--melocoton-suave);
  padding: 12px 24px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--transicion);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(242, 103, 80, 0.08);
}

.btn-secondary:hover {
  background: var(--melocoton-pastel);
  border-color: var(--coral-principal);
  color: var(--coral-oscuro);
  transform: translateY(-2px);
}

/* Hero Visual Frame */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-card-frame {
  position: relative;
  width: 100%;
  max-width: 450px;
  border-radius: 32px;
  background: var(--blanco);
  padding: 16px;
  box-shadow: var(--sombra-card);
  border: 2.5px solid var(--melocoton-suave);
  transform: rotate(-1.5deg);
  transition: var(--transicion);
}

.hero-card-frame:hover {
  transform: rotate(0deg) scale(1.02);
  box-shadow: var(--sombra-hover);
}

.hero-img-wrap {
  width: 100%;
  height: 380px;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
}

.hero-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Speech Bubble Flotante en Hero con Logo 3D */
.hero-bubble {
  position: absolute;
  top: -24px;
  right: -12px;
  background: var(--blanco);
  border: 2.5px solid var(--coral-principal);
  padding: 10px 16px;
  border-radius: 22px;
  border-bottom-left-radius: 4px;
  box-shadow: 0 10px 26px rgba(242, 103, 80, 0.28);
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--coral-oscuro);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: floatAnim 3s ease-in-out infinite alternate;
  z-index: 5;
}

.hero-bubble img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

@keyframes floatAnim {
  0% { transform: translateY(0px) rotate(0deg); }
  100% { transform: translateY(-8px) rotate(1deg); }
}

/* ==========================================
   PERSONAJES GASTROAMIGUITOS - BARRA DE MASCOTAS
   ========================================== */

.mascots-strip {
  background: var(--blanco);
  border-top: 1.5px solid var(--borde-suave);
  border-bottom: 1.5px solid var(--borde-suave);
  padding: 24px 0;
  box-shadow: 0 4px 16px rgba(242, 103, 80, 0.04);
}

.mascots-grid {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 20px;
  flex-wrap: wrap;
}

.mascot-pill {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--fondo-pagina);
  border: 1.5px solid var(--melocoton-suave);
  padding: 10px 20px;
  border-radius: 999px;
  cursor: pointer;
  transition: var(--transicion);
  user-select: none;
}

.mascot-pill:hover, .mascot-pill.active {
  background: var(--melocoton-pastel);
  border-color: var(--coral-principal);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(242, 103, 80, 0.2);
}

.mascot-avatar-img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 50%;
  background: var(--blanco);
  padding: 2px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

.mascot-info h4 {
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--coral-principal);
}

.mascot-info p {
  font-size: 0.8rem;
  color: var(--texto);
  font-weight: 500;
}

/* ==========================================
   SECCIONES COMUNES
   ========================================== */

.section {
  padding: 80px 24px;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px;
}

.section-subtitle {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--coral-principal);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--texto-oscuro);
  line-height: 1.25;
  margin-bottom: 14px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--texto);
}

/* ==========================================
   SECCIÓN: DRA. FRANNY NÚÑEZ (BIOGRAFÍA Y VALORES)
   ========================================== */

.bio-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
}

.bio-image-card {
  position: relative;
  border-radius: 32px;
  background: var(--blanco);
  padding: 16px;
  box-shadow: var(--sombra-card);
  border: 2.5px solid var(--melocoton-suave);
}

.bio-image-wrap {
  width: 100%;
  height: 420px;
  border-radius: 22px;
  overflow: hidden;
}

.bio-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bio-content h3 {
  font-family: var(--font-script);
  font-size: 2.5rem;
  color: var(--coral-principal);
  margin-bottom: 6px;
  line-height: 1;
}

.bio-tag {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--coral-oscuro);
  margin-bottom: 20px;
  font-size: 1.02rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.bio-text {
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--texto);
  margin-bottom: 24px;
}

.credentials-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}

.cred-item {
  background: var(--blanco);
  border: 1.5px solid var(--melocoton-suave);
  padding: 14px 18px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 12px rgba(242, 103, 80, 0.04);
}

.cred-icon {
  font-size: 1.3rem;
  color: var(--coral-principal);
}

.cred-text {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--texto-oscuro);
}

/* ==========================================
   SECCIÓN INTERACTIVA: SÍNTOMAS MÁS BUSCADOS
   ========================================== */

.symptoms-section {
  background: linear-gradient(180deg, var(--fondo-pagina) 0%, var(--melocoton-pastel) 100%);
}

.symptoms-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.symptom-tab {
  background: var(--blanco);
  border: 2px solid var(--melocoton-suave);
  color: var(--texto);
  padding: 12px 20px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transicion);
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.symptom-tab:hover, .symptom-tab.active {
  background: var(--coral-principal);
  color: var(--blanco);
  border-color: var(--coral-principal);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(242, 103, 80, 0.35);
}

.symptom-card-display {
  background: var(--blanco);
  border-radius: 28px;
  padding: 36px;
  box-shadow: var(--sombra-card);
  border: 2px solid var(--melocoton-suave);
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  transition: var(--transicion);
}

.symptom-card-content h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--coral-principal);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.symptom-card-content p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--texto);
  margin-bottom: 24px;
}

.symptom-box-alert {
  background: #fff8e6;
  border-left: 4px solid var(--amarillo-estrella);
  padding: 16px 20px;
  border-radius: 12px;
  margin-bottom: 24px;
}

.symptom-box-alert h4 {
  font-family: var(--font-heading);
  color: #8a6500;
  font-size: 0.98rem;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.symptom-box-alert p {
  font-size: 0.92rem;
  color: #6b4d0c;
  margin-bottom: 0;
}

/* ==========================================
   SECCIÓN DE SERVICIOS
   ========================================== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.service-card {
  background: var(--blanco);
  border-radius: 24px;
  padding: 32px 28px;
  border: 2px solid var(--melocoton-suave);
  box-shadow: var(--sombra-card);
  transition: var(--transicion);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--coral-principal);
  box-shadow: var(--sombra-hover);
}

.service-icon {
  width: 60px;
  height: 60px;
  background: var(--melocoton-pastel);
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  color: var(--coral-principal);
  margin-bottom: 20px;
  transition: var(--transicion);
}

.service-card:hover .service-icon {
  background: var(--coral-principal);
  color: var(--blanco);
  transform: scale(1.1) rotate(5deg);
}

.service-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--coral-oscuro);
  margin-bottom: 12px;
}

.service-desc {
  font-size: 0.96rem;
  color: var(--texto);
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
}

.service-btn {
  background: transparent;
  border: none;
  color: var(--coral-principal);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  transition: var(--transicion);
}

.service-btn:hover {
  color: var(--coral-oscuro);
  transform: translateX(4px);
}

/* ==========================================
   RUTA INTERACTIVA: MI CITA SIN MIEDO
   ========================================== */

.route-section {
  background: var(--blanco);
  border-top: 1.5px solid var(--borde-suave);
  border-bottom: 1.5px solid var(--borde-suave);
}

.route-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  position: relative;
}

.route-step-card {
  background: var(--fondo-pagina);
  border: 2px dashed var(--melocoton-suave);
  border-radius: 24px;
  padding: 28px 22px;
  text-align: center;
  position: relative;
  transition: var(--transicion);
}

.route-step-card:hover {
  background: var(--blanco);
  border-style: solid;
  border-color: var(--coral-principal);
  transform: translateY(-6px);
  box-shadow: var(--sombra-card);
}

.step-num {
  width: 44px;
  height: 44px;
  background: var(--coral-principal);
  color: var(--blanco);
  border-radius: 50%;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  box-shadow: 0 4px 12px rgba(242, 103, 80, 0.3);
}

.step-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--coral-oscuro);
  margin-bottom: 10px;
}

.step-desc {
  font-size: 0.9rem;
  color: var(--texto);
  line-height: 1.5;
}

/* ==========================================
   PREGUNTAS FRECUENTES (ACCORDION)
   ========================================== */

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--blanco);
  border: 1.5px solid var(--melocoton-suave);
  border-radius: 18px;
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(242, 103, 80, 0.04);
  transition: var(--transicion);
}

.faq-item:hover {
  border-color: var(--coral-principal);
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: transparent;
  border: none;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--coral-oscuro);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-icon {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
  color: var(--coral-principal);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0, 1, 0, 1);
  background: var(--fondo-pagina);
}

.faq-answer-inner {
  padding: 0 24px 20px 24px;
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--texto);
  border-top: 1px solid var(--borde-suave);
  padding-top: 16px;
}

/* ==========================================
   UBICACIÓN & CONTACTO
   ========================================== */

.contact-section {
  background: linear-gradient(180deg, var(--melocoton-pastel) 0%, var(--fondo-pagina) 100%);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: stretch;
}

.contact-card {
  background: var(--blanco);
  border-radius: 28px;
  padding: 36px;
  border: 2px solid var(--melocoton-suave);
  box-shadow: var(--sombra-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 24px 0 32px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-icon-wrap {
  width: 46px;
  height: 46px;
  background: var(--melocoton-pastel);
  color: var(--coral-principal);
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.contact-info-text h5 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--coral-oscuro);
  margin-bottom: 2px;
}

.contact-info-text p {
  font-size: 0.94rem;
  color: var(--texto);
}

.map-card {
  background: var(--blanco);
  border-radius: 28px;
  overflow: hidden;
  border: 2px solid var(--melocoton-suave);
  box-shadow: var(--sombra-card);
  display: flex;
  flex-direction: column;
}

.map-placeholder {
  width: 100%;
  height: 100%;
  min-height: 320px;
  background: linear-gradient(135deg, var(--melocoton-pastel) 0%, #fff0eb 100%);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 30px;
}

/* ==========================================
   FOOTER CON LOGO 3D
   ========================================== */

footer {
  background: #3b2b27;
  color: #e5d7d3;
  padding: 50px 24px 24px;
  border-top: 3px solid var(--coral-principal);
  text-align: center;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer-brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.footer-logo-3d {
  height: 64px;
  width: auto;
}

.footer-sub {
  font-size: 0.95rem;
  color: #c9b7b2;
}

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.88rem;
  color: #a89590;
}

/* ==========================================
   WIDGET FLOTANTE DE MASCOTA INTERACTIVA (PIPO CON LOGO 3D)
   ========================================== */

.mascot-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  pointer-events: auto;
}

.widget-speech-bubble {
  background: var(--blanco);
  border: 2.5px solid var(--coral-principal);
  padding: 12px 18px;
  border-radius: 20px;
  border-bottom-right-radius: 4px;
  box-shadow: 0 10px 30px rgba(242, 103, 80, 0.28);
  max-width: 260px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--coral-oscuro);
  line-height: 1.4;
  opacity: 0;
  transform: translateY(10px) scale(0.9);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
}

.widget-speech-bubble.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.widget-avatar-btn {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: var(--blanco);
  border: 3px solid var(--coral-principal);
  box-shadow: 0 8px 24px rgba(242, 103, 80, 0.4);
  cursor: pointer;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 4px;
  transition: var(--transicion);
  animation: pulseGlow 3s infinite;
}

.widget-avatar-btn:hover {
  transform: scale(1.1) rotate(-5deg);
  border-color: var(--coral-oscuro);
}

.widget-avatar-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(242, 103, 80, 0.6); }
  70% { box-shadow: 0 0 0 16px rgba(242, 103, 80, 0); }
  100% { box-shadow: 0 0 0 0 rgba(242, 103, 80, 0); }
}

/* ==========================================
   MODAL DE SERVICIOS
   ========================================== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(42, 31, 28, 0.5);
  backdrop-filter: blur(6px);
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transicion);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: var(--blanco);
  border-radius: 28px;
  max-width: 600px;
  width: 100%;
  padding: 36px;
  border: 2px solid var(--melocoton-suave);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
  position: relative;
  transform: scale(0.9);
  transition: var(--transicion);
}

.modal-overlay.active .modal-card {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--melocoton-pastel);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.2rem;
  color: var(--coral-principal);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: var(--transicion);
}

.modal-close:hover {
  background: var(--melocoton-suave);
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--coral-principal);
  margin-bottom: 16px;
}

.modal-body {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--texto);
  margin-bottom: 24px;
}

/* ==========================================
   MEDIA QUERIES - RESPONSIVE DESIGN
   ========================================== */

@media (max-width: 1024px) {
  .hero-grid, .bio-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero-visual {
    order: -1;
  }

  .hero-card-frame {
    max-width: 100%;
  }

  .nav {
    gap: 4px;
  }

  .nav a {
    padding: 8px 12px;
    font-size: 0.9rem;
  }

  .brand-3d-logo {
    height: 48px;
  }

  .brand-title-script {
    font-size: 1.5rem;
  }
}

@media (max-width: 860px) {
  .topbar {
    font-size: 0.78rem;
  }

  .nav-wrap {
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: flex;
    margin-left: auto;
  }

  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding-top: 16px;
    animation: fadeDown 0.25s ease;
  }

  .nav.show {
    display: flex;
  }

  .nav a {
    width: 100%;
    text-align: center;
    background: var(--melocoton-pastel);
    border: 1px solid var(--borde-suave);
  }

  .btn-cita {
    width: 100%;
    justify-content: center;
  }

  .credentials-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 2.1rem;
  }

  .section {
    padding: 50px 16px;
  }

  .symptom-card-display {
    padding: 24px 18px;
  }

  .mascot-widget {
    bottom: 16px;
    right: 16px;
  }

  .widget-speech-bubble {
    max-width: 220px;
    font-size: 0.85rem;
  }
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}