* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
  background-color: #fafbfc;
  color: #2c3e50;
}

.hidden {
  display: none !important;
}

/* PORTADA HERO */
.hero-wrapper {
  width: 100%;
  background-color: #f7f5f2;
  display: flex;
  justify-content: center;
}

.hero-image-container {
  position: relative;
  width: 100%;
  max-width: 1920px;
  line-height: 0;
}

.hero-img {
  width: 100%;
  height: auto;
  display: block;
}

.hotspot {
  position: absolute;
  cursor: pointer;
  z-index: 10;
  border-radius: 20px;
}

.btn-cita {
  top: 72.5%;
  left: 7.2%;
  width: 16%;
  height: 6.8%;
}

.btn-conocenos {
  top: 72.5%;
  left: 24.8%;
  width: 10%;
  height: 6.8%;
}

.nav-servicios {
  top: 6%;
  left: 79%;
  width: 7%;
  height: 4%;
}

.nav-contacto {
  top: 6%;
  left: 87.5%;
  width: 7%;
  height: 4%;
}

/* BARRA LOGÍSTICA */
.logistica-bar {
  background-color: #0b3c5d; /* Azul Helénico */
  color: white;
  padding: 18px 20px;
}

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

.logistica-item {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 240px;
}

.logistica-icon {
  font-size: 26px;
}

.logistica-item strong {
  display: block;
  font-size: 14.5px;
  color: #ffffff;
}

.logistica-item p {
  font-size: 13px;
  color: #cbd5e1;
  margin: 0;
}

.link-ubicacion {
  color: #cbd5e1;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.link-ubicacion:hover {
  color: #ffffff;
}

.link-wa {
  color: #4ade80;
  text-decoration: none;
  font-weight: 600;
}

.link-wa:hover {
  text-decoration: underline;
}

/* ALERTA PREVENTIVA EMERGENCIAS */
.alerta-emergencias-bar {
  background-color: #fef2f2;
  border-bottom: 1px solid #fecaca;
  padding: 10px 20px;
  font-size: 12.5px;
  color: #991b1b;
  text-align: center;
}

.alerta-emergencias-flex strong {
  color: #b91c1c;
}

/* SECCIONES GENERALES */
.section {
  padding: 60px 20px;
}

.bg-light {
  background-color: #f0f4f8;
}

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

.section-title {
  color: #0b3c5d;
  font-size: 32px;
  text-align: center;
  margin-bottom: 10px;
}

.section-sub {
  text-align: center;
  color: #64748b;
  margin-bottom: 40px;
  font-size: 16px;
}

/* SECCIÓN NOSOTROS / PBE */
.nosotros-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-bottom: 35px;
}

.nosotros-card {
  background: white;
  padding: 28px;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.04);
  border-top: 4px solid #556b2f; /* Verde Oliva */
}

.card-icon {
  font-size: 30px;
  margin-bottom: 12px;
}

.nosotros-card h3 {
  color: #0b3c5d;
  font-size: 18px;
  margin-bottom: 12px;
}

.nosotros-card p {
  font-size: 14px;
  line-height: 1.5;
  color: #475569;
  margin-bottom: 12px;
}

.lista-modelos {
  list-style: none;
  padding: 0;
  margin: 0;
}

.lista-modelos li {
  font-size: 13.5px;
  color: #334155;
  padding: 5px 0;
  border-bottom: 1px dashed #e2e8f0;
}

.lista-modelos li:last-child {
  border-bottom: none;
}

/* FILOSOFÍA INSTITUCIONAL */
.filosofia-box {
  background: white;
  border-radius: 12px;
  padding: 28px 32px;
  display: flex;
  gap: 30px;
  align-items: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.04);
  border-left: 5px solid #0b3c5d;
}

.filosofia-item {
  flex: 1;
}

.filosofia-item h4 {
  color: #0b3c5d;
  font-size: 16px;
  margin-bottom: 8px;
}

.filosofia-item p {
  font-size: 14px;
  line-height: 1.5;
  color: #475569;
  margin: 0;
}

.filosofia-divider {
  width: 1px;
  height: 60px;
  background-color: #cbd5e1;
}

@media (max-width: 768px) {
  .filosofia-box {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  .filosofia-divider {
    display: none;
  }
}

/* SERVICIOS CLÍNICOS */
.grid-services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.card {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.04);
  border-top: 4px solid #7a9a82;
  position: relative;
}

.card h3 {
  color: #0b3c5d;
  margin-bottom: 12px;
}

.card p {
  line-height: 1.5;
  color: #475569;
}

.modalidad-badge {
  display: inline-block;
  background-color: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
  margin-bottom: 12px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

/* BOTONES PRINCIPALES NOM-035 */
.nom035-actions-wrapper {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin: 30px auto 40px auto;
  max-width: 850px;
  flex-wrap: wrap;
}

.btn-nom {
  flex: 1;
  min-width: 280px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  border-radius: 12px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: left;
}

.btn-nom .btn-icon {
  font-size: 30px;
}

.btn-nom .btn-text strong {
  display: block;
  font-size: 16px;
  margin-bottom: 3px;
}

.btn-nom .btn-text small {
  display: block;
  font-size: 13px;
  opacity: 0.9;
}

.btn-nom.btn-info {
  background-color: #ffffff;
  border-color: #cbd5e1;
  color: #0b3c5d;
}

.btn-nom.btn-info:hover {
  border-color: #0b3c5d;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(11, 60, 93, 0.1);
}

.btn-nom.btn-acceso {
  background-color: #556b2f;
  color: #ffffff;
}

.btn-nom.btn-acceso:hover {
  background-color: #435424;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(85, 107, 47, 0.25);
}

/* MODALES */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  backdrop-filter: blur(4px);
}

.modal-card {
  background: #ffffff;
  border-radius: 14px;
  position: relative;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-lg { max-width: 820px; }
.modal-sm { max-width: 440px; }

.modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: transparent;
  border: none;
  font-size: 26px;
  color: #64748b;
  cursor: pointer;
}

.modal-title {
  color: #0b3c5d;
  font-size: 21px;
  margin-bottom: 24px;
}

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

.info-box {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 20px;
  border-radius: 10px;
}

.info-box h4 {
  color: #0b3c5d;
  margin-bottom: 10px;
  font-size: 16px;
}

.info-box.destacada {
  border-left: 4px solid #556b2f;
  background-color: #fdfdfd;
}

.btn-cotizar-modal {
  display: inline-block;
  background-color: #22c55e;
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 8px;
  margin-top: 24px;
}

.lock-circle {
  font-size: 38px;
  margin-bottom: 10px;
}

.login-header h3 {
  color: #0b3c5d;
  margin-bottom: 6px;
}

.login-header p {
  color: #64748b;
  font-size: 13.5px;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 16px;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
}

.form-group input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 14.5px;
}

.form-group input:focus {
  border-color: #556b2f;
  outline: none;
}

.btn-submit-login {
  width: 100%;
  background-color: #556b2f;
  color: #ffffff;
  border: none;
  padding: 14px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 10px;
}

.login-error {
  color: #dc2626;
  font-size: 13px;
  margin-bottom: 12px;
}

/* BANNER DE AUTENTICADO */
.banner-autenticado {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f0fdf4;
  border: 1px solid #22c55e;
  padding: 14px 20px;
  border-radius: 8px;
  margin-bottom: 24px;
}

.btn-logout {
  background: transparent;
  border: 1px solid #dc2626;
  color: #dc2626;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}

/* FORMULARIO Y CONTENEDORES NOM-035 */
.form-container {
  background: white;
  padding: 35px;
  border-radius: 12px;
  max-width: 850px;
  margin: 0 auto;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.form-container h3 {
  color: #0b3c5d;
  margin-bottom: 8px;
}

.form-row {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

.form-row input {
  flex: 1;
  padding: 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 15px;
}

.pregunta-box {
  background: #f8fafc;
  padding: 15px;
  border-radius: 8px;
  margin-top: 20px;
}

.pregunta-box p {
  font-weight: 600;
  margin-bottom: 10px;
}

.pregunta-box label {
  display: inline-block;
  margin-right: 15px;
  font-size: 14px;
}

.btn-submit {
  width: 100%;
  background-color: #7a9a82;
  color: white;
  border: none;
  padding: 15px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 25px;
  transition: background-color 0.2s;
}

.btn-submit:hover {
  background-color: #6a8671;
}

.categoria-header {
  background-color: #0b3c5d;
  color: white;
  padding: 12px 18px;
  border-radius: 8px;
  margin-top: 30px;
  margin-bottom: 15px;
}

.categoria-header h4 {
  color: white;
  margin: 0;
  font-size: 16px;
  letter-spacing: 0.5px;
}

.pregunta-texto {
  font-size: 15px;
  color: #1e293b;
  margin-bottom: 12px;
  line-height: 1.4;
}

.opciones-nom {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.opciones-nom label {
  background: white;
  border: 1px solid #cbd5e1;
  padding: 8px 14px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 13.5px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.opciones-nom label:hover {
  border-color: #7a9a82;
  background-color: #f1f5f9;
}

.opciones-nom input[type="radio"] {
  accent-color: #0b3c5d;
}

.selector-guia-box {
  background-color: #f1f5f9;
  border-left: 5px solid #0b3c5d;
  padding: 18px 20px;
  border-radius: 8px;
  margin-bottom: 25px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.selector-guia-box label {
  color: #0b3c5d;
  font-size: 15px;
}

.form-select {
  padding: 12px;
  border: 1.5px solid #cbd5e1;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  color: #1e293b;
  background-color: #ffffff;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
}

.form-select:focus {
  border-color: #0b3c5d;
}

.tabs-evaluacion {
  display: flex;
  gap: 12px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.btn-tab {
  flex: 1;
  min-width: 260px;
  padding: 14px 20px;
  background-color: #e2e8f0;
  color: #1e293b;
  border: none;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-tab.active {
  background-color: #0b3c5d;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(11, 60, 93, 0.2);
}

.btn-tab:hover:not(.active) {
  background-color: #cbd5e1;
}

.opciones-ats {
  display: flex;
  gap: 20px;
  margin-top: 10px;
}

.opciones-ats label {
  background: white;
  border: 1px solid #cbd5e1;
  padding: 8px 24px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.opciones-ats label:hover {
  border-color: #0b3c5d;
  background-color: #f8fafc;
}

.alerta-normativa {
  background-color: #fef3c7;
  border-left: 4px solid #f59e0b;
  padding: 12px 16px;
  border-radius: 6px;
  margin: 20px 0;
  font-size: 14px;
  color: #92400e;
  line-height: 1.4;
}

.instrucciones-sec {
  font-size: 14px;
  color: #475569;
  margin-bottom: 12px;
}

.politica-acordeon-box {
  margin-bottom: 25px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  overflow: hidden;
  background-color: #ffffff;
}

.btn-acordeon-politica {
  width: 100%;
  padding: 14px 18px;
  background-color: #f8fafc;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14.5px;
  font-weight: 600;
  color: #0b3c5d;
  cursor: pointer;
  text-align: left;
  transition: background-color 0.2s ease;
}

.btn-acordeon-politica:hover {
  background-color: #edf2f7;
}

.contenido-politica-desplegable {
  padding: 20px;
  border-top: 1px solid #e2e8f0;
  background-color: #ffffff;
  color: #334155;
  font-size: 13.5px;
  line-height: 1.6;
}

.contenido-politica-desplegable h4 {
  color: #0b3c5d;
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 15px;
}

.contenido-politica-desplegable ul {
  padding-left: 20px;
  margin: 10px 0;
}

.contenido-politica-desplegable li {
  margin-bottom: 6px;
}

.nota-politica {
  font-size: 12px;
  color: #64748b;
  margin-top: 12px;
}

.form-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  color: #1e293b;
  resize: vertical;
  outline: none;
  box-sizing: border-box;
}

.form-textarea:focus {
  border-color: #0b3c5d;
  box-shadow: 0 0 0 2px rgba(11, 60, 93, 0.15);
}

/* LEGALIDAD Y MODALES SCROLL */
.consentimiento-check-box {
  margin: 20px 0 15px 0;
  padding: 14px 16px;
  background-color: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  text-align: left;
}

.check-legal {
  display: flex !important;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}

.check-legal input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #0b3c5d;
  flex-shrink: 0;
  cursor: pointer;
}

.check-legal span {
  font-size: 13px;
  color: #334155;
  line-height: 1.5;
}

.check-legal a {
  color: #0b3c5d;
  font-weight: 600;
  text-decoration: underline;
}

.legal-content-scroll {
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 12px;
  text-align: left;
  font-size: 14px;
  color: #334155;
  line-height: 1.6;
}

.legal-content-scroll h4 {
  color: #0b3c5d;
  margin-top: 16px;
  margin-bottom: 6px;
  font-size: 15px;
}

.legal-content-scroll ul {
  padding-left: 20px;
  margin-bottom: 12px;
}

.legal-content-scroll li {
  margin-bottom: 6px;
}

/* BANNER DE COOKIES */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #0f172a;
  color: #f8fafc;
  padding: 16px 20px;
  z-index: 999;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
}

.cookie-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-content p {
  font-size: 13.5px;
  line-height: 1.5;
  color: #cbd5e1;
  margin: 0;
  flex: 1;
  min-width: 280px;
}

.cookie-content a {
  color: #93c5fd;
  text-decoration: underline;
}

.btn-cookie-accept {
  background-color: #22c55e;
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  font-size: 13.5px;
  transition: background-color 0.2s;
}

.btn-cookie-accept:hover {
  background-color: #16a34a;
}

/* BOTÓN FLOTANTE DE WHATSAPP */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: #25d366;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
  z-index: 990;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.55);
}

/* PIE DE PÁGINA */
footer {
  background-color: #0b3c5d;
  color: white;
  text-align: center;
  padding: 35px 20px;
  font-size: 14px;
  line-height: 1.6;
}

.footer-links-legal {
  margin: 10px 0 6px 0;
}

.footer-links-legal a {
  color: #93c5fd;
  text-decoration: underline;
  font-size: 13px;
  margin: 0 4px;
  cursor: pointer;
}

.footer-links-legal a:hover {
  color: #ffffff;
}

.footer-sub {
  font-size: 12.5px;
  color: #94a3b8;
  margin-top: 6px;
}

@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
    gap: 10px;
  }
  .whatsapp-float {
    bottom: 18px;
    right: 18px;
    width: 52px;
    height: 52px;
  }
}

/* ACCESO A LOS PORTALES (pacientes y terapeutas) */
.portales-bar {
  background: #f1f7fb;
  padding: 18px 0;
  border-bottom: 1px solid #dbe7f0;
}
.portales-flex {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-portal {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 260px;
  flex: 1 1 260px;
  max-width: 380px;
  padding: 14px 18px;
  border-radius: 14px;
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(11, 60, 93, 0.18);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-portal:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(11, 60, 93, 0.28);
}
.btn-portal strong { display: block; font-size: 16px; }
.btn-portal small { display: block; font-size: 12.5px; opacity: 0.9; margin-top: 2px; }
.btn-portal-icono { font-size: 26px; line-height: 1; }
.btn-portal-paciente { background: #0f766e; }
.btn-portal-terapeuta { background: #0b3c5d; }
@media (max-width: 600px) {
  .btn-portal { min-width: 0; max-width: none; flex-basis: 100%; }
}

/* DERECHOS RESERVADOS */
.footer-derechos {
  font-size: 12.5px;
  opacity: 0.85;
  margin-top: 10px;
}
