/******************************************/
/* --- inicio SECCIÓN HEADER ------------ */

/* Variables adicionales para los botones de contacto */
:root {
  --color-whatsapp: #25D366;
  --color-phone: #2d5a27;
  --header-height: 70px;
}

/* Estructura del Header */
.header {
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  font-family: system-ui, sans-serif;
}

.nav-container {
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 700;
  font-size: 1.2rem;
  color: #1e293b;
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.logo span {
  font-size: 0.85rem;
  color: var(--color-secondary);
  font-weight: 400;
  margin-top: -2px;
}

/* Botón Hamburguesa con CSS Puro */
.nav-toggle {
  display: none; /* Se oculta en escritorio */
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1100;
}

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background: #334155;
  position: relative;
  transition: background 0.2s ease-in-out;
}

.hamburger::before, .hamburger::after {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  background: #334155;
  position: absolute;
  transition: all 0.2s ease-in-out;
}
.hamburger::before { top: -6px; }
.hamburger::after { bottom: -6px; }

/* Animación del botón cuando el menú está abierto */
.nav-toggle.open .hamburger { background: transparent; }
.nav-toggle.open .hamburger::before { transform: rotate(45deg); top: 0; }
.nav-toggle.open .hamburger::after { transform: rotate(-45deg); bottom: 0; }

/* Menú Estilo Escritorio (Por defecto usando Flexbox) */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.nav-link {
  text-decoration: none;
  color: #475569;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-link:hover { color: var(--color-primary); }

.nav-actions {
  display: flex;
  gap: 0.75rem;
}

.btn-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  transition: opacity 0.2s;
}

.btn-nav:hover { opacity: 0.9; }
.btn-phone { background-color: var(--color-phone); }
.btn-whatsapp { background-color: var(--color-whatsapp); }

/* --- RESPONSIVE: DISEÑO PARA MÓVILES (Media Query) --- */
@media (max-width: 768px) {
  .nav-toggle { display: block; } /* Mostramos la hamburguesa */

  /* El menú se convierte en una cortina vertical oculta */
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%; /* Oculto a la derecha */
    width: 280px;
    height: 100vh;
    background-color: #ffffff;
    box-shadow: -5px 0 15px rgba(0,0,0,0.05);
    flex-direction: column;
    align-items: flex-start;
    padding: 6rem 2rem 2rem 2rem;
    gap: 3rem;
    transition: right 0.3s ease-in-out;
  }

  /* Cuando añadimos la clase 'open' con JS, el menú aparece */
  .nav-menu.open { right: 0; }

  .nav-list {
    flex-direction: column;
    width: 100%;
    gap: 1.5rem;
  }

  .nav-link { font-size: 1.2rem; width: 100%; display: block; }

  /* En móvil, los botones de contacto ocupan todo el ancho */
  .nav-actions {
    flex-direction: column;
    width: 100%;
    gap: 1rem;
  }
  .btn-nav { justify-content: center; padding: 0.8rem; font-size: 1rem; }
}

/******************************************/
/* --- fin SECCIÓN HEADER ------------ */






/* *******************************************/
/* --- inicio HERO ------------------------ */

.hero-section {
  background: linear-gradient(135deg, #f8fafc 0%, #eef5f0 100%); /* Degradado suave hacia el verde salvia */
  padding: 5rem 1.5rem;
  font-family: system-ui, sans-serif;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr; /* El texto ocupa un poco más que la imagen */
  gap: 4rem;
  align-items: center;
}

.hero-tag {
  display: inline-block;
  background-color: rgba(74, 124, 89, 0.1);
  color: var(--color-secondary);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.hero-content h1 {
  font-size: 3rem;
  color: var(--color-primary);
  line-height: 1.2;
  margin: 0 0 1.5rem 0;
}

.hero-content p {
  font-size: 1.15rem;
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

/* Contenedor específico de conversión */
.hero-cta-container {
  background: #ffffff;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
  max-width: 550px;
}

.cta-instruction {
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 1rem !important;
  font-size: 1rem !important;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.btn-hero {
  flex: 1; /* Hace que ambos botones midan exactamente lo mismo */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: transform 0.2s, opacity 0.2s;
}

.btn-hero:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.btn-hero-wa { background-color: var(--color-whatsapp); color: white; }
.btn-hero-tel { background-color: var(--color-phone); color: white; }

.cta-note {
  font-size: 0.85rem;
  color: var(--color-text-light);
  display: block;
}

/* Contenedor de la Imagen */
.hero-image {
  display: flex;
  justify-content: center;
}

.image-wrapper {
  width: 100%;
  max-width: 400px;
  border-radius: 30px; /* Bordes muy suaves */
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* --- BOTÓN FLOTANTE DE WHATSAPP --- */
.whatsapp-floating {
  font-family: system-ui, sans-serif;
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: var(--color-whatsapp);
  color: white;
  text-decoration: none;
  padding: 0.8rem 1.2rem;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
  z-index: 999;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-floating:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.wp-icon { font-size: 1.3rem; }

/* --- RESPONSIVE PARA EL HERO --- */
@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr; /* Pasa a una sola columna en tablets/móviles */
    gap: 3rem;
    text-align: center;
  }
  
  .hero-tag { margin: 0 auto 1.5rem auto; }
  .hero-content h1 { font-size: 2.2rem; }
  .hero-cta-container { margin: 0 auto; }
  
  .hero-image { order: -1; } /* Coloca la foto arriba del texto en móviles */
  
  /* En pantallas muy pequeñas, apilamos los dos botones del CTA */
  @media (max-width: 480px) {
    .hero-actions { flex-direction: column; }
    /* Escondemos sutilmente el texto del botón flotante para que no tape pantalla */
    .whatsapp-floating .wp-text { display: none; }
    .whatsapp-floating { padding: 1rem; bottom: 1.5rem; right: 1.5rem; }
    .wp-icon { font-size: 1.6rem; }
  }
}

/* **************************************/
/* --- fin HERO ------------------------ */




/* **************************************/
/* --- inicio ESTILOS PARA PÁGINAS LEGALES --- */
.legal-page {
  background-color: #f8fafc; /* Fondo neutro relajante */
  padding: 4rem 1.5rem;
  font-family: system-ui, sans-serif;
  color: #334155;
}

.legal-container {
  max-width: 750px; /* Ancho reducido. Las líneas cortas fatigan menos la vista en textos largos */
  margin: 0 auto;
  background: #ffffff;
  padding: 3rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.legal-container h1 {
  font-size: 2rem;
  color: #2d5a27; /* Usamos tu color primario médico */
  margin-bottom: 0.5rem;
}

.legal-updated {
  font-size: 0.85rem;
  color: #64748b;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 1rem;
}

.legal-content article {
  margin-bottom: 2rem;
}

.legal-content h2 {
  font-size: 1.25rem;
  color: #2d5a27;
  margin-bottom: 0.8rem;
}

.legal-content p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #475569;
  margin-bottom: 1rem;
}

.legal-content ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-content li {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #475569;
  margin-bottom: 0.5rem;
}

/* Responsive para pantallas móviles */
@media (max-width: 600px) {
  .legal-container {
    padding: 1.5rem; /* Menos margen interno para ganar espacio en el móvil */
  }
  .legal-container h1 {
    font-size: 1.6rem;
  }
}
/* ******************************************/
/* --- fin ESTILOS PARA PÁGINAS LEGALES --- */


/* *************************************************/
/* --- inicio SECCIÓN RESERVAS LIMPIAS ------------*/

/* Variables para mantener consistencia de colores relajantes */
:root {
  --color-bg: #f8fafc;
  --color-primary: #2d5a27; /* Verde médico/salvia oscuro */
  --color-secondary: #4a7c59; /* Verde intermedio */
  --color-accent: #eef5f0; /* Fondo suave para destacar tarjetas */
  --color-text: #334155;
  --color-text-light: #64748b;
  --border-radius: 12px;
}

/* Sección Contenedora General (Flexbox para centrado vertical/horizontal) */
.booking-section {
  background-color: var(--color-bg);
  padding: 4rem 2rem;
  font-family: system-ui, -apple-system, sans-serif;
  color: var(--color-text);
}

.booking-container {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.booking-title {
  font-size: 2.2rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.booking-subtitle {
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto 3rem auto;
  line-height: 1.6;
}

/* CSS Grid para las Tarjetas Híbridas (Responsivo automático) */
.booking-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  align-items: stretch;
}

/* Tarjeta Individual (Flexbox para empujar el botón al fondo si los textos miden distinto) */
.booking-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--border-radius);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Alinea textos a la izquierda */
  text-align: left;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.booking-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Destacar sutilmente la opción Online (Muy común en el sector actual) */
.booking-card.highlight {
  background-color: var(--color-accent);
  border-color: var(--color-secondary);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.booking-card h3 {
  font-size: 1.5rem;
  color: var(--color-primary);
  margin: 0 0 1rem 0;
}

.card-description {
  color: var(--color-text-light);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

/* Lista de características (Flexbox para alinear el check/viñeta) */
.card-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2.5rem 0;
}

.card-features li {
  margin-bottom: 0.75rem;
  position: relative;
  padding-left: 1.5rem;
  color: var(--color-text);
  line-height: 1.4;
}

.card-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-secondary);
  font-weight: bold;
}

/* Botones con Flexbox (margin-top: auto empuja el botón al final de la tarjeta siempre) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.85rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  margin-top: auto; 
  transition: background-color 0.2s ease;
}

.btn-primary {
  background-color: var(--color-primary);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: #20401c;
}

.btn-secondary {
  background-color: var(--color-secondary);
  color: #ffffff;
}

.btn-secondary:hover {
  background-color: #385f43;
}

/* *****************************************/
/* --- fin SECCIÓN RESERVA ------------*/




/* *********************************/
/* --- inicio SECCIÓN SOBRE MÍ --- */
.about-section {
  background-color: #ffffff;
  padding: 5rem 1.5rem;
  font-family: system-ui, sans-serif;
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr; /* La columna de texto es ligeramente más ancha */
  gap: 4rem;
  align-items: start;
}

/* Bloque Izquierdo: Imagen y placa de colegiado */
.about-image-block {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-image-wrapper {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
}

.about-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.about-badge {
  background-color: var(--color-bg);
  border-left: 4px solid var(--color-primary);
  padding: 1.2rem;
  border-radius: 0 8px 8px 0;
}

.badge-title {
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 0.2rem 0;
  font-size: 0.9rem;
}

.badge-number {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-text-light);
  line-height: 1.4;
}

/* Bloque Derecho: Contenido de texto */
.about-content h2 {
  font-size: 2.5rem;
  color: var(--color-primary);
  margin: 0.5rem 0;
}

.about-subtitle {
  font-size: 1.2rem;
  color: var(--color-secondary);
  font-weight: 600;
  margin-bottom: 2rem;
}

.about-philosophy p {
  color: var(--color-text-light);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

/* Historial / Línea de tiempo interna */
.about-timeline {
  margin-top: 2.5rem;
}

.about-timeline h3 {
  font-size: 1.3rem;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

.timeline-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.timeline-list li {
  position: relative;
  padding-left: 1.5rem;
}

/* El punto verde decorativo para cada hito académico */
.timeline-dot {
  position: absolute;
  left: 0;
  top: 6px;
  width: 8px;
  height: 8px;
  background-color: var(--color-secondary);
  border-radius: 50%;
}

.timeline-list li strong {
  display: block;
  color: var(--color-text);
  font-size: 1rem;
}

.timeline-list li p {
  margin: 0.2rem 0 0 0;
  color: var(--color-text-light);
  font-size: 0.9rem;
}

/* --- DISEÑO RESPONSIVO PARA MÓVILES --- */
@media (max-width: 992px) {
  .about-container {
    grid-template-columns: 1fr; /* Pasa a una sola columna */
    gap: 3rem;
  }
 
  .about-image-block {
    max-width: 500px;
    margin: 0 auto; /* Centra la imagen en tablets/móviles */
  }
}
/* *********************************/
/* --- fin SECCIÓN SOBRE MÍ --- */



/******************************************/
/* --- inicio SECCIÓN DEL FORMULARIO --- */
.form-section {
  background-color: var(--color-bg); /* Fondo sutil para contrastar con las secciones blancas */
  padding: 5rem 1.5rem;
  font-family: system-ui, sans-serif;
}

.form-container {
  max-width: 700px; /* Ancho óptimo para que los campos no se estiren demasiado */
  margin: 0 auto;
  text-align: center;
}

.form-container h2 {
  font-size: 2.3rem;
  color: var(--color-primary);
  margin: 0.5rem 0 1rem 0;
}

.form-subtitle {
  color: var(--color-text-light);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 3rem;
}

/* Estructura del Formulario */
.appointment-form {
  background: #ffffff;
  padding: 2.5rem;
  border-radius: var(--border-radius);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
  text-align: left;
}

/* Grid de dos columnas para pantallas grandes */
.form-grid-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.form-grid-inner .form-group {
  margin-bottom: 0; /* Limpia el margen inferior si ya están dentro del Grid */
}

.form-group label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text);
}

/* Inputs, Selects y Textarea estándar */
.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.8rem 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--color-text);
  background-color: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Efecto Focus para el paciente */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.15);
}

.form-group textarea {
  resize: vertical; /* Permite estirar hacia abajo pero no hacia los lados rompiendo el diseño */
}

/* Bloque Legal Checkbox (Flexbox) */
.form-privacy {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.form-privacy input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: var(--color-primary); /* Aplica el verde corporativo al check */
}

.form-privacy label {
  font-size: 0.88rem;
  color: var(--color-text-light);
  line-height: 1.5;
}

.form-privacy label a {
  color: var(--color-secondary);
  text-decoration: underline;
  font-weight: 600;
}

/* Botón de Envío */
.btn-submit {
  width: 100%;
  padding: 1rem;
  background-color: var(--color-primary);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-submit:hover {
  background-color: #20401c;
}

.btn-submit:active {
  transform: scale(0.99);
}

.form-notice {
  display: block;
  font-size: 0.8rem;
  color: var(--color-text-light);
  margin-top: 0.8rem;
  text-align: center;
}

/* --- RESPONSIVE PARA EL FORMULARIO --- */
@media (max-width: 580px) {
  .appointment-form {
    padding: 1.5rem; /* Ajuste estrecho para móviles */
  }
}

/******************************************/
/* --- fin SECCIÓN DEL FORMULARIO --- */



/******************************************/
/* --- inicio SECCIÓN SERVICIOS       --- */

.services-section {
  background-color: #ffffff; /* Fondo blanco para contrastar con el gris/verde del Hero */
  padding: 5rem 1.5rem;
  font-family: system-ui, sans-serif;
}

.services-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.section-tag {
  display: inline-block;
  color: var(--color-secondary);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.services-title {
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.services-subtitle {
  color: var(--color-text-light);
  max-width: 700px;
  margin: 0 auto 4rem auto;
  font-size: 1.1rem;
  line-height: 1.6;
}

/* CSS Grid Dinámico */
.services-grid {
  display: grid;
  /* Crea columnas de mínimo 320px; si no caben, las baja automáticamente */
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

/* Tarjeta de Servicio */
.service-card {
  background-color: var(--color-bg); /* Fondo gris/verde muy suave */
  border: 1px solid #f1f5f9;
  border-radius: var(--border-radius);
  padding: 2.5rem 2rem;
  text-align: left;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Efecto hover suave y sutil, nada agresivo */
.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(74, 124, 89, 0.3);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.02);
}

.service-icon {
  font-size: 2rem;
  margin-bottom: 1.2rem;
  background-color: #ffffff;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.service-card h3 {
  font-size: 1.3rem;
  color: var(--color-primary);
  margin: 0 0 0.8rem 0;
}

.service-card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* Ajustes menores para pantallas muy pequeñas */
@media (max-width: 480px) {
  .services-title { font-size: 2rem; }
  .service-card { padding: 2rem 1.5rem; }
}

/* --- MEJORAS DE TARJETAS CON TARIFAS --- */
.service-card {
  background-color: var(--color-bg);
  border: 1px solid #f1f5f9;
  border-radius: var(--border-radius);
  padding: 2.5rem 2rem;
  text-align: left;
  position: relative; /* Para la etiqueta superior */
  
  /* Flexbox vertical para empujar el bloque de precio abajo */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.service-duration {
  font-size: 0.85rem;
  color: var(--color-secondary);
  font-weight: 600;
  margin: -0.4rem 0 1rem 0;
  background-color: #ffffff;
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
}

.service-text {
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 2rem 0; /* Espacio antes del bloque de precio */
}

/* Bloque contenedor inferior (Flexbox Horizontal) */
.service-price-block {
  margin-top: auto; /* Truco de Flexbox: empuja todo este bloque al fondo de la tarjeta */
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #e2e8f0;
  padding-top: 1.5rem;
  gap: 1rem;
}

.service-price {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--color-primary);
}

.btn-card-booking {
  background-color: #ffffff;
  color: var(--color-secondary);
  border: 2px solid var(--color-secondary);
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  transition: background-color 0.2s, color 0.2s;
  text-align: center;
}

.btn-card-booking:hover {
  background-color: var(--color-secondary);
  color: #ffffff;
}

/* Opcional: Estilo para destacar sutilmente la Primera Consulta */
.service-card.high-priority {
  border: 2px solid rgba(74, 124, 89, 0.3);
  background-color: #ffffff;
  box-shadow: 0 10px 20px rgba(0,0,0,0.02);
}

.card-badge-top {
  position: absolute;
  top: -12px;
  left: 2rem;
  background-color: var(--color-secondary);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  letter-spacing: 0.5px;
}

/* Adaptación para pantallas muy pequeñas */
@media (max-width: 480px) {
  .service-price-block {
    flex-direction: column; /* Apila el precio sobre el botón en móviles pequeños */
    align-items: flex-start;
    gap: 0.8rem;
  }
  .btn-card-booking {
    width: 100%;
  }
}
/*********** fin MEJORAS TARJETAS CON TARIFAS **********/


/* --- inicio BLOQUE DE MÉTODOS DE PAGO --- */
.payment-info-block {
  max-width: 800px; /* Alineado con el ancho de las FAQ para mantener armonía */
  margin: 4rem auto 0 auto; /* Espacio amplio respecto a las tarjetas de arriba */
  background-color: var(--color-bg); /* Fondo suave salvia/gris */
  border: 1px dashed rgba(74, 124, 89, 0.4); /* Borde discontinuo elegante */
  border-radius: var(--border-radius);
  padding: 2rem;
  text-align: left;
}

.payment-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}

.payment-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.payment-header h3 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--color-primary);
  font-weight: 700;
}

.payment-text {
  color: var(--color-text);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 0.8rem 0;
}

.payment-note {
  display: block;
  font-size: 0.85rem;
  color: var(--color-text-light);
  font-style: italic;
  line-height: 1.4;
}

/* Ajuste responsive para pantallas móviles */
@media (max-width: 580px) {
  .payment-info-block {
    padding: 1.5rem;
    margin-top: 3rem;
  }
  .payment-header h3 {
    font-size: 1.1rem;
  }
}
/* --- fin BLOQUE DE MÉTODOS DE PAGO --- */



/******************************************/
/* --- fin SECCIÓN SERVICIOS       --- */



/*******************************************************/
/* ------- inicio SECCIÓN GALERIA IMAGENES ----------- */

.gallery-section {
  background-color: #ffffff;
  padding: 5rem 1.5rem;
  font-family: system-ui, sans-serif;
}

.gallery-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.gallery-subtitle {
  color: var(--color-text-light);
  max-width: 650px;
  margin: 0 auto 3rem auto;
  font-size: 1.1rem;
  line-height: 1.6;
}

/* El contenedor del carrusel con Flexbox */
.gallery-slider {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto; /* Permite el scroll horizontal */
  scroll-snap-type: x mandatory; /* Activa el efecto imán horizontal */
  padding-bottom: 1.5rem;
  scrollbar-width: thin; /* Barra de scroll sutil en Firefox */
  scrollbar-color: var(--color-secondary) #f1f5f9;
}

/* Estilo para los navegadores basados en Webkit (Chrome, Safari, Edge) */
.gallery-slider::-webkit-scrollbar {
  height: 8px;
}
.gallery-slider::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 10px;
}
.gallery-slider::-webkit-scrollbar-thumb {
  background: var(--color-secondary);
  border-radius: 10px;
}

/* Cada tarjeta/foto individual dentro del carrusel */
.gallery-slide {
  flex: 0 0 calc(50% - 0.75rem); /* En escritorio muestra 2 fotos a la vez */
  scroll-snap-align: center; /* Al hacer scroll, la foto se imanta al centro */
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.gallery-slide img {
  width: 100%;
  height: 350px;
  object-fit: cover; /* Recorta la imagen para que todas midan exactamente lo mismo sin deformarse */
  display: block;
}

/* Texto flotante sobre la imagen */
.slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7)); /* Degradado oscuro para que el texto se lea bien */
  color: #ffffff;
  padding: 1.5rem 1rem 1rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
}

.gallery-hint {
  display: block;
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-top: 1rem;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  .gallery-slide {
    flex: 0 0 85%; /* En móviles muestra una foto casi entera y deja ver un trozo de la siguiente */
  }
  .gallery-slide img {
    height: 250px; /* Un poco más bajas en el móvil */
  }
}

/******************************************/
/* ------- fin SECCIÓN FAQ ----------- */






/******************************************/
/* ------- inicio SECCIÓN FAQ ----------- */
.faq-section {
  background-color: var(--color-bg);
  padding: 5rem 1.5rem;
  font-family: system-ui, sans-serif;
}

.faq-container {
  max-width: 800px; /* Más estrecho para facilitar la lectura del acordeón */
  margin: 0 auto;
  text-align: center;
}

.faq-title {
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: 3rem;
}

.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
}

/* Estilo del contenedor nativo details */
.faq-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.faq-item[open] {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  border-color: var(--color-secondary);
}

/* Estilo de la pregunta (summary) */
.faq-question {
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  color: var(--color-primary);
  cursor: pointer;
  list-style: none; /* Esconde la flecha nativa en algunos navegadores */
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Añadimos un indicador personalizado + / - */
.faq-question::after {
  content: "+";
  font-size: 1.2rem;
  color: var(--color-secondary);
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-question::after {
  content: "−";
}

/* Estilo de la respuesta */
.faq-answer {
  padding: 0 1.5rem 1.25rem 1.5rem;
  color: var(--color-text-light);
  line-height: 1.6;
  font-size: 0.95rem;
}

.faq-answer p { margin: 0; }

/******************************************/
/* ------- fin SECCIÓN FAQ ----------- */




/***********************************************/
/* --- inicio SECCION CONTACTO Y UBICACION --- */

.contact-section {
  background-color: #ffffff;
  padding: 5rem 1.5rem;
  font-family: system-ui, sans-serif;
}

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

.contact-title {
  font-size: 2.5rem;
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 1rem;
}

.contact-subtitle {
  color: var(--color-text-light);
  max-width: 800px;
  margin: 0 auto 4rem auto;
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Grid Principal (Distribución 50% / 50%) */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 3rem;
  align-items: stretch; /* Hace que el bloque de info y el mapa midan exactamente lo mismo de alto */
}

/* Bloque de Información */
.contact-info-block {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-card {
  background-color: var(--color-bg);
  border: 1px solid #f1f5f9;
  border-radius: var(--border-radius);
  padding: 1.5rem;
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
}

.info-icon {
  font-size: 1.8rem;
  background-color: #ffffff;
  padding: 0.6rem;
  border-radius: 50%;
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
  line-height: 1;
}

.info-text {
  flex: 1;
}

.info-text h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.2rem;
  color: var(--color-primary);
}

.info-text p {
  margin: 0 0 0.4rem 0;
  color: var(--color-text);
  font-size: 0.95rem;
  line-height: 1.5;
}

.info-note {
  display: block;
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-top: 0.5rem;
  line-height: 1.4;
}

/* Flexbox para los botones internos de contacto rápido */
.contact-buttons-flex {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.btn-contact {
  flex: 1;
  text-align: center;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: opacity 0.2s;
}

.btn-contact:hover {
  opacity: 0.9;
}

.btn-contact-wa { background-color: var(--color-whatsapp); color: white; }
.btn-contact-tel { background-color: var(--color-phone); color: white; }

/* Contenedor del Mapa */
.contact-map-block {
  width: 100%;
  min-height: 450px; /* Evita que el mapa colapse en pantallas grandes */
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
  border: 1px solid #e2e8f0;
}

/* --- RESPONSIVE PARA CONTACTO --- */
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr; /* Una sola columna en dispositivos móviles */
    gap: 2rem;
  }
  
  .contact-map-block {
    min-height: 300px; /* Reducimos la altura en pantallas pequeñas */
  }

  .contact-buttons-flex {
    flex-direction: column; /* Apilamos los botones en pantallas muy estrechas */
  }
}

/********************************************/
/* --- fin SECCION CONTACTO Y UBICACION --- */





/********************************************************************/
/* --- inicio FOOTER (Usando Grid para organizar los 3 bloques) --- */
.footer {
  background-color: #1e293b; /* Gris oscuro que transmite seriedad y contrasta */
  color: #f1f5f9;
  padding: 4rem 1.5rem 1.5rem 1.5rem;
  font-family: system-ui, sans-serif;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  border-bottom: 1px solid #334155;
  padding-bottom: 3rem;
}

.footer-brand .footer-logo {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 0.2rem 0;
  color: #ffffff;
}

.footer-brand .footer-tagline {
  color: #94a3b8;
  margin: 0 0 1rem 0;
  font-size: 0.95rem;
}

.footer-medic-id {
  font-size: 0.85rem;
  background-color: #334155;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  display: inline-block;
  color: #cbd5e1;
}

.footer h3 {
  font-size: 1.1rem;
  color: #ffffff;
  margin: 0 0 1.2rem 0;
}

.footer p {
  font-size: 0.9rem;
  color: #cbd5e1;
  margin: 0 0 0.6rem 0;
}

.footer a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s;
}

.footer a:hover {
  color: #ffffff;
}

.footer-legal-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-legal-links li {
  margin-bottom: 0.6rem;
}

.footer-legal-links a {
  font-size: 0.9rem;
}

/* Franja inferior de copyright */
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: #64748b;
}

.footer-bottom p { margin: 0; }

/***************************************************/
/* ------------ fin FOOTER ----------------------- */
