/* ================= VARIABLES DE MARCA ================= */
:root {
  --azul-marca: #5bc3de;
  --azul-marca-oscuro: #4aa0c6;
  --gris-marca: #606979;
  --gris-oscuro: #2e3640;
  --texto-principal: #3c454f;
  --blanco: #ffffff;
}

/* ================= RESET ================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  color: var(--texto-principal);
  background-color: var(--blanco);
  scroll-behavior: smooth;
}

html {
  scroll-behavior: smooth;
}

/* ================= HEADER ================= */
header {
  background-color: var(--blanco);
  border-bottom: 1px solid #ddd;
  padding: 1rem 2rem;

  position: sticky;
  top: 0;
  z-index: 1000;
}

header nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.logo-pequeno {
  height: 90px;
}

/* ================= MENÚ ================= */
nav ul.menu {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

nav ul.menu li {
  position: relative;
}

nav ul.menu li a {
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  color: var(--texto-principal);
  font-weight: 500;
  transition: color 0.2s;
}

nav ul.menu li a:hover {
  color: var(--azul-marca);
}

/* ================= SUBMENÚ ================= */
.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--blanco);
  border: 1px solid #ddd;
  min-width: 220px;
  border-radius: 4px;
  z-index: 10;
}

.submenu li a {
  padding: 0.75rem 1rem;
  display: block;
  color: var(--texto-principal);
}

.submenu li a:hover {
  background: #e6f4fb;
}

nav ul.menu li:hover > .submenu {
  display: block;
}

/* ================= BOTÓN HAMBURGUESA ================= */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--gris-marca);
}

/* ================= MENÚ MÓVIL - SOLO HOME ================= */
@media (max-width: 768px) {
  body.home nav ul.menu {
    display: none;
    flex-direction: column;
    width: 100%;
  }

  body.home nav ul.menu.show {
    display: flex;
  }

  body.home .menu-toggle {
    display: block;
  }

  body.home nav ul.menu li a {
    padding: 1rem;
    border-top: 1px solid #ddd;
  }

  body.home .submenu {
    position: static;
    border: none;
    box-shadow: none;
  }

  body.home .submenu.show {
    display: block;
  }
}

/* ================= HERO ================= */
#hero {
  position: relative;
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(91, 195, 222, 0.85), rgba(96, 105, 121, 0.85)),
    url("img/clinica-fisioterapia-valdepenas.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  color: var(--blanco);
  padding: 4rem 2rem;
  text-align: center;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Contenido interno para limitar ancho (más premium) */
.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

/* Título principal */
#hero h1 {
  font-size: 2.6rem;
  margin-bottom: 1.2rem;
  color: var(--blanco);
  line-height: 1.2;
}

/* Subtítulo */
#hero p {
  font-size: 1.2rem;
  max-width: 620px;
  margin: 0 auto 2.5rem;
  opacity: 0.95;
}

/* ================= BOTONES HERO ================= */
.hero-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px; /* separación elegante entre botones */
  flex-wrap: wrap;
  margin-top: 1rem;
}

/* Botón principal (CTA WhatsApp) */
.cta-whatsapp {
  background: var(--azul-marca);
  color: #ffffff;
  padding: 1.1rem 2.6rem;
  border-radius: 40px;
  font-weight: 600;
  text-decoration: none;
  font-size: 1.1rem;
  letter-spacing: 0.3px;
  align-self: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  transition: 
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.cta-whatsapp:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
  filter: brightness(0.95);
}

/* Botón secundario */
.btn-servicios {
  padding: 1rem 2.2rem;
  border-radius: 40px;
  border: 2px solid #ffffff;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  transition: 
    transform 0.25s ease,
    background 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease;
}

.btn-servicios:hover {
  background: #ffffff;
  color: var(--azul-marca);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
}

/* Texto destacado (más clínico y premium) */
#sobre-nosotros .lead {
  font-size: 1.2rem;
  font-weight: 500;
  color: #2b2b2b;
  line-height: 1.6;
}
#sobre-nosotros h2 {
  font-size: 2rem;
  color: var(--azul-marca);
}
#beneficios h2 {
  font-size: 2rem;
  color: var(--azul-marca);
}
#servicios h2 {
  font-size: 2rem;
  color: var(--azul-marca);
}

/* Lista más elegante (menos básica que ul normal) */
.lista-servicios-premium {
  list-style: none;
  padding-left: 0;
  margin: 1rem 0;
}

.lista-servicios-premium li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.7rem;
}

.lista-servicios-premium li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: var(--azul-marca);
  font-weight: bold;
}

.btn-cta-secundario {
  display: inline-block;
  background-color: var(--azul-marca);
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 30px;
  font-weight: bold;
  text-decoration: none;
  margin-top: 1.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-cta-secundario:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.cta-suave {
  margin-top: 1.2rem;
  font-weight: 500;
}

/* Botón Google estilo borde con sombra y separación */
.google-rating-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  background-color: var(--blanco); /* fondo blanco */
  color: var(--azul-marca);       /* texto azul marca */
  font-weight: 600;
  border-radius: 50px;             /* redondeado moderno */
  border: 2px solid var(--azul-marca); /* borde azul marca */
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15); /* sombra detrás */
  transition: transform 0.2s, box-shadow 0.2s;
  font-size: 0.95rem;
  margin-top: 40px; /* separación más evidente del botón de arriba */
}

.google-rating-btn:hover {
  transform: scale(1.05); /* se agranda un poco */
  box-shadow: 0 6px 15px rgba(0,0,0,0.2); /* sombra más intensa */
}

/* Estilo interno de estrellas y puntuación */
.google-rating-btn .rating-stars {
  font-size: 1.1rem;
  color: #FFD700; /* dorado para estrellas */
  line-height: 1;
}

.google-rating-btn .rating-score {
  font-weight: 700;
  margin-left: 4px;
}

.google-rating-btn .rating-text {
  display: flex;
  flex-direction: column;
  font-size: 0.8rem;
  line-height: 1.1;
  color: var(--azul-marca);
  margin-left: 6px;
  white-space: nowrap;
}

/* Ajuste responsivo: en móvil, texto debajo de estrellas */
@media (max-width: 480px) {
  .google-rating-btn {
    flex-direction: column;
    gap: 4px;
    padding: 8px 16px;
    margin-top: 24px; /* mantiene separación en móvil */
  }
  .google-rating-btn .rating-text {
    margin-left: 0;
    text-align: center;
  }
}

/* Ajuste responsivo: en móvil, texto debajo de estrellas */
@media (max-width: 480px) {
  .google-rating-btn {
    flex-direction: column;
    gap: 4px;
    padding: 8px 16px;
  }
  .google-rating-btn .rating-text {
    margin-left: 0;
    text-align: center;
  }
}

/* CTA suave (no agresivo, coherente con clínica premium) */
.btn-cta-secundario {
  display: inline-block;
  margin-top: 1.2rem;
  padding: 0.9rem 1.8rem;
  border-radius: 30px;
  background: transparent;
  border: 2px solid var(--azul-marca);
  color: var(--azul-marca);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-cta-secundario:hover {
  background: var(--azul-marca);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.15);
}

/* CTA suave texto */
.cta-suave {
  margin-top: 1.2rem;
  font-weight: 500;
  color: #444;
}

#sobre-la-clinica p {
  margin-bottom: 1.2rem;
  line-height: 1.6;
  color: #333;
}

#sobre-la-clinica h2 {
  font-size: 2rem;
  color: var(--azul-marca);
}

#faq h2 {
  font-size: 2rem;
  color: var(--azul-marca);
}

.btn-cta-secundario {
  display: inline-block;
  background-color: var(--azul-marca);
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 30px;
  font-weight: bold;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-cta-secundario:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}


/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
  #hero {
    padding: 3rem 1.5rem;
    min-height: 90vh;
  }

  #hero h1 {
    font-size: 2rem;
  }

  #hero p {
    font-size: 1.05rem;
    margin-bottom: 2rem;
  }

  .hero-buttons {
    flex-direction: column; /* en móvil se apilan (mejor conversión) */
    gap: 16px;
    width: 100%;
  }

  .cta-whatsapp,
  .btn-servicios {
    width: 100%;
    max-width: 320px;
    text-align: center;
  }
}

/* Desktop grande (más aire visual premium) */
@media (min-width: 1200px) {
  #hero h1 {
    font-size: 3rem;
  }

  #hero p {
    font-size: 1.25rem;
  }

  .hero-buttons {
    gap: 32px;
    margin-top: 1.5rem;
  }
}


/* ================= WHATSAPP FLOTANTE ================= */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--azul-marca);
  color: var(--blanco);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  text-decoration: none;
}
a.btn-servicios {
  display: inline-block;
  padding: 12px 28px;

  background-color: transparent;
  border: 2px solid #5bc3de;
  color: #5bc3de;

  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;

  transition: all 0.3s ease;
}

a.btn-servicios:hover {
  background-color: #5bc3de;
  color: #ffffff;
}

/* ================= CONTENIDO ================= */
main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
}

section {
  margin-bottom: 3rem;
  scroll-margin-top: 220px;
}

h2 {
  color: var(--azul-marca);
  margin-bottom: 1rem;
}

/* Carrusel: imágenes con tamaño uniforme */
#clinicaCarousel .carousel-inner img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 8px;
}

/*===========beneficios*==========*/
.beneficio-card {
  background-color: #5bc4de25;
  color: #5bc3de;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.beneficio-card:hover {
  transform: translateY(-5px);
}

.beneficio-card h3 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.beneficio-card p {
  font-size: 1rem;
  margin: 0;
}

/*===========SERVICIOS===========*/
/* ================= SERVICIO CARD ================= */
.servicio-card {
  padding: 30px;
  border-radius: 16px;
  background-color: #ffffff;
  border: 2px solid var(--azul-marca);
  color: var(--azul-marca);
  cursor: pointer;
  transition: all 0.4s ease;
  margin: 1rem 0;
  scroll-margin-top: 220px;
}

/* Título */
.servicio-card h3 {
  margin-bottom: 15px;
  font-weight: 600;
  color: #000;
}

/* Lista con ticks */
.lista-tick {
  list-style: none;
  padding-left: 0;
  margin-top: 20px;
}

.lista-tick li {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  gap: 8px;
}

/* Tick dinámico */
.lista-tick .tick {
  color: var(--azul-marca);
  font-weight: bold;
  transition: color 0.3s;
}

/* ================= HOVER: fondo azul, borde blanco ================= */
.servicio-card:hover {
  background-color: var(--azul-marca);
  border: 2px solid #ffffff;
  color: #ffffff;
}

/* Cambiar color de todos los textos al hacer hover */
.servicio-card:hover h3,
.servicio-card:hover p,
.servicio-card:hover li {
  color: #ffffff;
}

/* Tick blanco al hacer hover */
.servicio-card:hover .tick {
  color: #ffffff;
}

/* ================= CONTACTO ================= */
#contacto label {
  color: var(--azul-marca);
  font-weight: bold;
}

#contacto input,
#contacto textarea {
  padding: 0.6rem;
  border-radius: 4px;
  border: 1px solid #ccc;
}

#contacto button {
  background: var(--azul-marca);
  color: #003b3b;
  padding: 0.8rem;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
}

#contacto button:hover {
  background: var(--azul-marca-oscuro);
}

.social-icons {
  display: flex;
  gap: 1.2rem;
  margin-top: 1rem;
}

.social-icons a {
  width: 44px;
  height: 44px;
  background: var(--azul-marca);
  color: var(--blanco);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.social-icons a:hover {
  background: var(--azul-marca-oscuro);
  transform: translateY(-2px);
}
/* ================= FORMULARIO "ESCRÍBENOS" ================= */
#contacto #contact-form {
  margin-top: 2rem;
  display: grid;
  gap: 1.2rem;
}

/* Labels y enlaces en blanco */
#contacto #contact-form label {
  color: #ffffff;
  font-size: 0.95rem;
}

/* Inputs y textarea con fondo blanco */
#contacto #contact-form input,
#contacto #contact-form textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 0.95rem;
  font-family: inherit;
  color: #003b3b;
  background: #ffffff;
}

/* Placeholder gris oscuro */
#contacto #contact-form input::placeholder,
#contacto #contact-form textarea::placeholder {
  color: #666;
}

/* Altura mínima del textarea */
#contacto #contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

/* Focus en inputs y textarea */
#contacto #contact-form input:focus,
#contacto #contact-form textarea:focus {
  outline: none;
  border-color: #5bc3de;
  box-shadow: 0 0 0 2px rgba(91, 195, 222, 0.25);
}

/* Botón enviar */
#contacto #contact-form button {
  margin-top: 1rem;
  background: #5bc3de;
  color: #ffffff;
  padding: 0.9rem;
  border: none;
  border-radius: 30px;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

#contacto #contact-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* ================= CHECKBOX PRIVACIDAD ================= */
.privacy-container label {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.95rem;
  color: #000;
}

.privacy-container input[type="checkbox"] {
  margin: 0;
  vertical-align: middle;
}

.review-card {
  background-color: #ffffff;
  border: 2px solid #5bc3de;
  border-radius: 12px;
  max-width: 350px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.review-card .estrellas {
  color: #5bc3de;
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.review-card .review-text {
  color: #5bc3de;
  font-style: italic;
  margin: 10px 0;
}

.review-card .review-time {
  color: #5bc3de;
  font-size: 0.9rem;
}

.review-card .reviewer-name {
  color: #000000;
  font-weight: bold;
  margin-top: 5px;
}

/* ================= MAPA ================= */
.map-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 6px;
}

.map-container iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
/* =========================================
   BLOQUE FINAL CON DEGRADADO CONTINUO
========================================= */

.bloque-final {
  background: linear-gradient(
    135deg,
    rgba(91, 195, 222, 0.95),
    rgba(96, 105, 121, 0.95)
  );
  padding: 5rem 1.5rem;
}

.bloque-final,
.bloque-final h2,
.bloque-final h3,
.bloque-final p,
.bloque-final strong,
.bloque-final label,
.bloque-final a {
  color: #ffffff;
}

/* Quitar fondos individuales */
#contacto {
  background: transparent !important;
  padding: 3rem 0;
}

/* Tarjetas */
.section-card {
  max-width: 1000px;
  margin: 0 auto 3rem auto;
  padding: 3rem 2rem;
  border-radius: 20px;
  border: 3px solid var(--azul-marca);

  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  color: var(--blanco);
}
#horario,
#horario .section-card {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* =================================================
   TARJETAS TRANSPARENTES (MISMO FONDO)
================================================= */

.section-card {
  max-width: 1000px;
  margin: 0 auto;
  padding: 3rem 2rem;
  border-radius: 20px;
  border: 3px solid var(--azul-marca);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Texto blanco dentro */
.section-card h2,
.section-card h3,
.section-card p,
.section-card strong,
.section-card label,
.section-card a {
  color: var(--blanco);
}

/* Iconos sociales adaptados */
.section-card .social-icons a {
  background: var(--blanco);
  color: var(--azul-marca);
}

.section-card .social-icons a:hover {
  background: var(--azul-marca-oscuro);
  color: var(--blanco);
}

/* ================= IMÁGENES ================= */
img {
  max-width: 100%;
  border-radius: 6px;
  margin: 1rem auto;
  display: block;
}

/* ================= MAPA ================= */
.map-container {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 20px auto;
  padding-bottom: 56.25%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* ================= DIRECCIÓN ================= */
.direccion {
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

/* ================= HORARIO ================= */
.btn-cita-previa {
  display: inline-block;
  background-color: var(--azul-marca);
  color: #fff;
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-cita-previa:hover {
  background-color: var(--azul-marca-oscuro);
  transform: translateY(-2px);
}

/* ================= FAQ ================= */
.faq-card {
  border: 1px solid var(--azul-marca);
  border-radius: 12px;
  margin-bottom: 10px;
  overflow: hidden;
}

.faq-question {
  background-color: var(--azul-marca);
  color: #fff;
  padding: 12px 20px;
  width: 100%;
  text-align: left;
  border: none;
  outline: none;
  cursor: pointer;
  font-weight: bold;
}

.faq-answer {
  padding: 12px 20px;
  display: none;
  background-color: #f7faff;
  color: var(--texto-principal);
}

/* Mostrar/ocultar FAQ con JS */
.faq-question.active + .faq-answer {
  display: block;
}

/* FOOTER CORPORATIVO */
.footer-corporativo {
  background-color: var(--gris-oscuro);
  padding: 3rem 1.5rem;
  color: #ffffff;
}

.footer-corporativo .footer-content {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.footer-corporativo .logo-footer {
  max-width: 180px;
  margin-bottom: 1rem;
}

.footer-corporativo .footer-nav a {
  color: #ffffff;
  text-decoration: none;
  margin: 0 0.5rem;
  transition: color 0.2s ease;
}

.footer-corporativo .footer-nav a:hover {
  color: var(--azul-marca);
}

.error-message {
  color: #d93025;
  font-size: 0.875rem;
  margin-top: 2px;
  display: none;
}
input:invalid,
textarea:invalid {
  border-color: #d93025;
}

/* ================= PRIVACIDAD Y COOKIES ================= */

/* Fondo y texto general para páginas de privacidad o cookies */
body.privacidad,
body.cookies {
  background-color: #ffffff;
  color: #003b3b;
}

/* Tarjetas dentro de estas páginas */
body.privacidad .section-card,
body.cookies .section-card {
  background: var(--gris-marca);
  color: #003b3b;
  border: 3px solid var(--azul-marca);
  border-radius: 20px;
  padding: 3rem 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}
