
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ========================
   FUENTE Y FONDO
   ======================== */
body {
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  color: #333;
  background: linear-gradient(135deg, #FFD97D, #FFEAC2);
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
}

/* NOVA destacado */
.nova {
  font-family: "Sitka Heading Bold", serif;
}

/* ========================
   HEADER Y FOOTER
   ======================== */
header, footer {
  background-color: #FFA26B;
  color: #333;
  width: 100%;

  text-align: center;
}

header {
  padding: 20px 0;
  font-size: 1.3rem;
}

/* Encabezado principal */
.titulo-centro {
  font-size: 2.5rem;
  line-height: 1.2;
  margin: 0 0 15px 0;
  text-align: center;
  font-weight: bold;
}

/* Botón hamburguesa */
.menu-toggle {
  display: none;
  background: #FFA26B;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  margin: 10px;
}

/* Menú principal */
nav ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
}

nav ul li {
  position: relative;
}

nav ul li a {
  display: block;
  padding: 10px 20px;
  background: #FFA26B;
  color: #333;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s;
}

nav ul li a:hover {
  color: white;
  border-radius: 5px;
}

/* Dropdown */
nav ul li .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #FFA26B;
  border-radius: 5px;
  flex-direction: column;
  min-width: 200px;
}

nav ul li:hover .dropdown-menu {
  display: flex;
}

nav ul li .dropdown-menu li a {
  padding: 10px 15px;
}
/* Fondo oscuro */
.popup {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

/* Caja del popup */
.popup-content {
  position: relative;
  width: 90%;
  max-width: 500px;   /* tamaño cómodo en desktop */
  max-height: 90vh;
  padding: 10px;
  border-radius: 12px;
}

/* Imagen */
.popup-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

/* Botón cerrar */
.popup-close {
  position: absolute;
  top: -12px;
  right: -12px;
  background: #000;
  color: #fff;
  font-size: 22px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  text-align: center;
  line-height: 32px;
  cursor: pointer;
}


/* RESPONSIVE MÓVIL */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    margin: 10px auto; /* Auto a los lados centra horizontalmente */
    text-align: center;
  }

  nav {
    width: 100%;
  }

  nav ul {
    display: none;
    flex-direction: column;
  }

  nav.activo ul {
    display: flex;
  }

  nav ul li {
    width: 100%;
  }

  nav ul li .dropdown-menu {
    position: static;
    display: none;
  }

  nav ul li.dropdown.active .dropdown-menu {
    display: flex;
    flex-direction: column;
  }

  nav ul li a {
    text-align: left;
  }
}
.video-hernia{
  width: 100%;
  max-width: 1200px;
  margin: 40px auto;
}

.video-hernia video {
  width: 100%;
  height: auto;
  display: block;

}
/* ========================
   MAIN / BLOQUES
   ======================== */
main {
  padding: 20px;
  text-align: center;
}

main p,
main h3 {
  text-align: center;
}

.inicio-direccion h3 {
  margin-bottom: 30px;
  margin-top: 18px;
  font-size: 2rem;
  text-align: center;
}

.presentation img.logo {
  margin-top: 20px;
  max-width: 300px;
  width: 100%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Bloque principal grande */
.bloque-grande {
  max-width: 1000px;
  margin: 0 auto 40px auto;
  padding: 30px;
  background: linear-gradient(135deg, #FFD97D, #FFEAC2);
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
  text-align: center;
  transition: background 0.3s;
}

.bloque-grande img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 20px;
}

.bloque-grande .mapa iframe {
  display: block;
  width: 100%;
  max-width: 350px; /* más pequeño que las imágenes principales */
  height: auto;     /* mantiene proporción automáticamente */
  border-radius: 10px;
  margin: 20px auto;
}

.bloque-grande h2 {
  margin-bottom: 15px;
}

.bloque-grande img.logo {
  width: 100%;
  max-width: 500px;
  height: auto;
  margin-bottom: 20px;
}

.bloque-grande img.bea {
  width: 100%;
  max-width: 300px;
  height: auto;
  margin-bottom: 20px;
}

.bloque-grande p {
  font-size: 1.1rem;
  line-height: 1.6;
  text-align: center;
}

/* Contenedor de bloques flexibles */
.bloques-contenedor {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.bloque {
  flex: 1 1 250px;
  max-width: 100%;
  min-width: 200px;
  background: linear-gradient(135deg, #FFD97D, #FFEAC2);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  text-align: center;
  transition: background 0.3s;
}

.bloque:hover {
  background: linear-gradient(135deg, #FFC87D, #FFF1C2);
}

.bloque img {
  width: 100%;
  max-width: 250px;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
}

.bloque .btn {
  display: inline-block;
  padding: 8px 16px;
  background-color: #FFA26B;
  color: white;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  margin-top: 10px;
  transition: background-color 0.3s;
}

.bloque .btn:hover {
  background-color: #f08a36d7;
}

/* Bloque terapia */
.bloque-terapia {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}

/* Título arriba a la derecha */
.bloque-terapia h2 {
  text-align: right;
  margin-top: 0;
  margin-bottom: 10px;
}


/* Contenedor horizontal de imagen y texto */
.bloque-imagen-texto {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  align-items: flex-start;
}

/* Imagen a la izquierda */
.bloque-imagen-texto img {
  max-width: 300px;
  width: 100%;
  border-radius: 10px;
  flex-shrink: 0;
}

/* Texto a la derecha */
.bloque-imagen-texto .texto {
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Párrafos */
.bloque-imagen-texto .texto p {
  text-align: justify;
  line-height: 1.6;
  margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 768px) {
  .bloque-terapia h2 {
    text-align: center;
  }

  .bloque-imagen-texto {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .bloque-imagen-texto .texto p {
    text-align: left;
  }
}

/* Títulos de secciones */
.bloque-titulo {
  max-width: 1000px;
  margin: 40px auto 20px;
  padding: 20px 30px;
  background-color: #FFA26B;
  border-radius: 10px;
  text-align: center;
  transition: background-color 0.3s;
}

/* ========================
   TARJETAS DE PRECIOS
   ======================== */
.precio-boton-contenedor {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-top: 20px;
}

.precio-card {
  flex: 0 1 180px;
  min-width: 160px;
  max-width: 200px;
  background: #fdfdfd;
  border: 2px solid #ff8c42;
  border-radius: 10px;
  padding: 12px;
  text-align: center;
  box-shadow: 0 3px 6px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.precio-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.12);
}

.precio-card h4 {
  font-size: 1rem;
  color: #ff8c42;
  margin: 6px 0;
  line-height: 1.3;
  word-wrap: break-word;
}
.precio-card-larga {
  max-width: 700px;        /* más ancho que las tarjetas pequeñas */
  margin: 0 auto;
  padding: 25px;
  background: #fdfdfd;
  border: 2px solid #ff8c42;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.precio-card-larga h4 {
  color: #ff8c42;
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.lista-precios-larga div {
  padding: 8px 0;
  border-bottom: 1px solid #ff8c42;
}

.lista-precios-larga div:last-child {
  border-bottom: none;
}

.lista-precios-larga span {
  display: block;          /* cada línea centrada */
  font-size: 1rem;
}

/* Botón de reserva */
.btn-reserva {
  display: inline-block;
  padding: 15px 25px;
  background-color: #25D366;
  color: white;
  text-decoration: none;
  border-radius: 12px;
  font-weight: bold;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}

.btn-reserva:hover {
  background-color: #1ebe57;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* Botón de servicios online */
.btn-serviciosonline {
  display: inline-block;
  padding: 15px 25px;
  background-color: #FFA26B;
  color: white;
  text-decoration: none;
  border-radius: 12px;
  font-weight: bold;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}

.btn-serviciosonline:hover {
  background-color: #f08a36d7;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}
/* ========================
   BOTONES PRINCIPALES (WhatsApp y Online)
   ======================== */
.botones-principales {
  display: flex;
  justify-content: center; /* centra los botones */
  gap: 20px; /* espacio entre botones */
  margin: 30px 0; /* separación de otros bloques */
  flex-wrap: wrap; /* se ajustan en pantallas pequeñas */
}

.btn-principal {
  display: inline-block;
  padding: 15px 25px;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 12px;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s;
  min-width: 200px; /* tamaño mínimo uniforme */
  flex: 1; /* ocupan el mismo espacio si hay suficiente ancho */
}

.btn-principal.whatsapp {
  background-color: #25D366;
  color: white;
}

.btn-principal.whatsapp:hover {
  background-color: #1ebe57;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.btn-principal.online {
  background-color: #FFA26B;
  color: white;
}

.btn-principal.online:hover {
  background-color: #f08a36d7;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* Botón verde enviar */
.boton-enviar {
  background-color: #25d366; /* verde WhatsApp */
  color: #fff;
  border: none;
  padding: 12px 25px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

.boton-enviar:hover {
  background-color: #1ebe5d;
}

/* Separación entre textarea, botón y la imagen */
.form-group {
  margin-bottom: 20px;
}

.form-footer {
  margin-top: 15px; /* espacio entre textarea y botón */
  margin-bottom: 30px; /* espacio entre botón y la siguiente sección (imagen) */
}
/* Responsive para móviles pequeños */
@media (max-width: 480px) {
  .botones-principales {
    flex-direction: column;
    align-items: center;
  }

  .btn-principal {
    width: 100%;
    max-width: 300px;
  }
}
/* ========================
   FORMULARIOS
   ======================== */
form .form-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 15px;
}

form .form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
}

form input, form textarea {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

/* Botón volver */
.btn-volver {
  display: inline-block;
  padding: 10px 20px;
  background-color:  #FFA26B;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background 0.3s, transform 0.3s;
}

.btn-volver:hover {
  background-color:  #f08a36d7;
  transform: scale(1.05);
}
/* ========================
   MODAL HORARIO
   ======================== */

   .btn-principal, 
.btn-principal a, 
.btn-principal button {
  background-color: #ff6600;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 16px;
  cursor: pointer;
  display: inline-block;
  text-align: center;
  transition: background 0.3s;
}

.btn-principal:hover {
  background-color: #e65c00;
}
.modal {
  display: none;
  position: fixed;
  z-index: 3000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: linear-gradient(135deg, #FFD97D, #FFEAC2);
  margin: 20px;
  padding: 20px;
  border-radius: 15px;
  max-width: 700px;
  width: 90%;
  box-shadow: 0 8px 16px rgba(0,0,0,0.3);
  text-align: center;
  position: relative;
  animation: modalFade 0.3s ease-in-out;
}

.modal-content h2 {
  margin-bottom: 15px;
  
}

.img-horario {
  max-width: 100%;
  border-radius: 10px;
}

.close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
 
}

@keyframes modalFade {
  from {opacity: 0; transform: scale(0.9);}
  to {opacity: 1; transform: scale(1);}
}

/* Ajuste responsive para móviles */
@media (max-width: 480px) {
  .modal-content {
    padding: 15px;
  }
  .close {
    font-size: 24px;
  }
}
/* ========================
   VIDEO RESPONSIVE
   ======================== */
.video-container {
  width: 100%;
  max-width: 400px; /* opcional, para limitar tamaño máximo */
  margin: 20px auto; /* centrado */
  overflow: hidden;
}

.video-container video {
  width: 100%;
  height: 400px;       /* mantiene la proporción original */
  display: block;
  border-radius: 10px; /* opcional, igual que otras imágenes */
}
/* ========================
   FOOTER
   ======================== */
footer {
  padding: 10px 0;
  font-size: 1rem;
}

body.inicio footer {
  padding: 20px 0;
  font-size: 1.3rem;
}

footer a {
  color: inherit;
  text-decoration: none;
}

.social-icons {
  margin: 20px 0;
  display: flex;
  justify-content: center;
  gap: 15px;
}

.social-icons a {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: white;
  transition: transform 0.3s, opacity 0.3s;
}

.social-icons a.whatsapp { background-color: #25D366; }
.social-icons a.phone { background-color: #FF8C42; }
.social-icons a.instagram { background: radial-gradient(circle at 30% 30%, #feda75, #d62976, #962fbf, #4f5bd5); }
.social-icons a.email { background-color: #ff4262; }

.social-icons a:hover { transform: scale(1.1); opacity: 0.8; }

/* ========================
   ICONOS FLOTANTES
   ======================== */
.floating-icons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 2000;
}

.floating-icons a {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: white;
  text-decoration: none;
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
}

.floating-icons a:hover {
  transform: scale(1.2);
  filter: brightness(1.3);
  cursor: pointer;
  box-shadow: 0 6px 12px rgba(0,0,0,0.4);
}

.floating-icons a.whatsapp { background-color: #25D366; }
.floating-icons a.phone { background-color: #FF8C42; }
.floating-icons a.instagram { background: radial-gradient(circle at 30% 30%, #feda75, #d62976, #962fbf, #4f5bd5); }
.floating-icons a.email { background-color: #ff4262; }

/* ========================
   RESPONSIVE
   ======================== */
@media (max-width: 1024px) {
  header h1 { font-size: 1.8rem; }
  .bloque-grande h2 { font-size: 1.5rem; }
  .bloque-grande p { font-size: 1rem; }
  .titulo-centro { font-size: 2rem; }

  .inicio-direccion h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
  }
  .inicio-direccion img {
    max-width: 250px;
    margin-bottom: 15px;
  }
}

@media (max-width: 768px) {
  .bloque-grande { padding: 15px; }
  .bloque-grande h2 { font-size: 1.3rem; }
  .bloque-grande p { font-size: 1rem; line-height: 1.4; }
  .bloques-contenedor { flex-direction: column; gap: 15px; }
  .titulo-centro { font-size: 1.7rem; }

  .inicio-direccion h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
  }
  .inicio-direccion img {
    max-width: 200px;
    margin-bottom: 12px;
  }



  /* precios en móvil */
  .precio-boton-contenedor {
    flex-direction: column;
    align-items: center;
  }
  .precio-card {
    width: 100%;
    max-width: 300px;
  }
}




@media (max-width: 480px) {
  .bloque-grande { padding: 10px; }
  .bloque-grande h2 { font-size: 1.1rem; }
  .bloque-grande p { font-size: 0.9rem; line-height: 1.3; }
  footer { font-size: 0.9rem; padding: 8px 0; }
  .bloque img { width: 100%; height: auto; max-width: 250px; }
  .bloque { flex: 1 1 auto; max-width: 100%; }
  .titulo-centro { font-size: 1.4rem; }

  .inicio-direccion h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
  }
  .inicio-direccion img {
    max-width: 180px;
    margin-bottom: 10px;
  }
}

/* ========================
   IMÁGENES PRINCIPALES RESPONSIVE
   ======================== */
.presentacion img.logo,
.presentacion img.bea,
.inicio-direccion img.novacentro {
  display: block;
  margin: 20px auto;
  width: 100%;
  max-width: 500px;  /* más grandes en pantallas grandes */
  height: auto;
  border-radius: 10px; /* opcional */
}

@media (max-width: 1024px) {
  .presentacion img.logo,
  .presentacion img.bea,
  .inicio-direccion img.novacentro {
    max-width: 450px;
  }
}

@media (max-width: 768px) {
  .presentacion img.logo,
  .presentacion img.bea,
  .inicio-direccion img.novacentro {
    max-width: 90%;
  }
}

@media (max-width: 480px) {
  .presentacion img.logo,
  .presentacion img.bea,
  .inicio-direccion img.novacentro {
    max-width: 80%;
  }
}


/* Tablets */
@media (max-width: 768px) {
  .mapa iframe {
    max-width: 300px;
  }
}

/* Móviles pequeños */
@media (max-width: 480px) {
  .mapa iframe {
    max-width: 250px;
  }
}
@media (max-width: 480px) {
  .video-container {
    max-width: 90%;
  }
}
/* IMAGEN NUEVO GRUPO - FORZADO */
.bloque-imagen-texto {
  justify-content: center; /* centra el bloque */
}

.bloque-imagen-texto img.img-nuevo-grupo {
  width: 100%;
  max-width: 820px; /* más grande */
  height: auto;
  display: block;
  margin: 0 auto;
  flex-shrink: 1; /* rompe el bloqueo */
}