﻿/* Pages/Public: vistas publicas compartidas */
body.public-page {
  background: linear-gradient(145deg, #e9f9cf 0%, #f6fde8 50%, #e3f4cc 100%);
  color: #20342f;
}

.form-shell,
.query-shell,
.result-shell {
  max-width: 980px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid #d7e7d2;
  border-radius: 1rem;
  box-shadow: 0 16px 30px rgba(20, 80, 60, 0.08);
  padding: 1.5rem;
}

.query-shell,
.result-shell {
  max-width: 820px;
}

.consulta-form {
  max-width: 640px;
  margin: 0 auto;
}

.public-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.45;
  color: #0f4d38;
  letter-spacing: 0.02em;
}

.public-title-lg {
  font-size: 1.35rem;
  letter-spacing: 0.03em;
}

.hero-banner {
  background: linear-gradient(135deg, #f0f9d9 0%, #ffffff 48%, #e4f4cf 100%);
  border: 1px solid #d4e4c7;
  border-radius: 0.9rem;
  padding: 1rem 1rem 1.1rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.query-shell .hero-banner .center-image,
.result-shell .hero-banner .center-image {
  max-width: 170px;
  width: 32%;
}

.query-shell .section-header,
.result-shell .section-header {
  text-align: center;
}

.query-shell .result-heading,
.result-shell .result-heading {
  font-size: 1.32rem;
  font-weight: 700;
  letter-spacing: 0.015em;
}

.public-result-message {
  background: #ffffff;
  border: 1px solid #cfe3d1;
  border-radius: 0.8rem;
  color: #20342f;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.72;
  max-width: 62ch;
  margin-left: auto;
  margin-right: auto;
  padding: 1rem 1.1rem;
  text-align: left;
  white-space: pre-line;
}

.public-note {
  background-color: #eef8e7;
  border: 1px solid #c7ddbc;
  color: #244736;
  border-radius: 0.8rem;
}

.public-card {
  border: 0;
  border-radius: 0.9rem;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(33, 49, 43, 0.08);
}

.public-card > .section-header {
  background: linear-gradient(120deg, #0f5b3f 0%, #249464 100%);
  color: #fff;
  font-weight: 600;
}

.public-card .card-body {
  background-color: #f3f9ef;
  padding: 1.25rem;
}

.public-card .form-control,
.public-card .form-select {
  border-radius: 0.6rem;
  border-color: #bfd8c5;
}

.public-card .form-control:focus,
.public-card .form-select:focus {
  border-color: #249464;
  box-shadow: 0 0 0 .2rem rgba(36, 148, 100, 0.2);
}

body.public-page .btn-primary {
  background-color: #17724f;
  border-color: #17724f;
}

body.public-page .btn-primary:hover,
body.public-page .btn-primary:focus {
  background-color: #0f5b3f;
  border-color: #0f5b3f;
}

/* Ajuste visual fuerte para la vista principal de afiliacion */
body.public-page > .container {
  max-width: 1080px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #d6e6d0;
  border-radius: 1rem;
  box-shadow: 0 16px 32px rgba(20, 80, 60, 0.12);
  padding: 1.25rem 1.25rem 1.5rem;
  margin-top: 1.25rem;
}

body.public-page.public-feedback-page > .container {
  max-width: 100%;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  margin-top: 0;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

body.public-page.public-feedback-page .result-shell {
  width: min(100%, 820px);
  margin-left: auto;
  margin-right: auto;
}

body.public-page.public-feedback-page .hero-banner,
body.public-page.public-feedback-page .section-header,
body.public-page.public-feedback-page .result-heading,
body.public-page.public-feedback-page .footer {
  text-align: center;
}

body.public-page.public-feedback-page .hero-banner .center-image {
  margin-left: auto;
  margin-right: auto;
}

body.public-page.public-feedback-page .hero-banner .public-title {
  margin-top: 2.25rem;
}

body.public-page .logo-container {
  background: linear-gradient(135deg, #f0f9d9 0%, #ffffff 48%, #e4f4cf 100%);
  border: 1px solid #d4e4c7;
  border-radius: 0.9rem;
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
  margin-bottom: 0.7rem;
}

body.public-page .logo-container + .h3 {
  color: #0f4d38;
  font-weight: 700;
  letter-spacing: 0.01em;
}

body.public-page .card {
  border: 0;
  border-radius: 0.9rem;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(33, 49, 43, 0.09);
}

body.public-page .card > .card-header,
body.public-page .card .card-header {
  background: linear-gradient(120deg, #0f5b3f 0%, #249464 100%);
  color: #fff;
  font-weight: 600;
  border: 0;
  border-radius: 0.75rem;
  box-shadow: 0 10px 18px rgba(18, 73, 52, 0.16);
  letter-spacing: 0.02em;
  padding: 0.9rem 1rem;
  margin-bottom: 1rem;
}

body.public-page .card .card-body {
  background-color: #f3f9ef;
  padding: 1.1rem;
}

body.public-page .form-control,
body.public-page .form-select {
  border-radius: 0.55rem;
  border-color: #bfd8c5;
}

body.public-page .form-control:focus,
body.public-page .form-select:focus {
  border-color: #249464;
  box-shadow: 0 0 0 .2rem rgba(36, 148, 100, 0.2);
}

body.public-page .additional-content {
  background: #f3faee;
  border: 1px solid #d3e4cc;
  border-radius: 0.85rem;
  padding: 0.9rem;
  margin-top: 0.9rem;
}

body.public-page .footer {
  margin-top: 1rem;
  border-radius: 0.75rem;
  overflow: hidden;
}

/* Modal moderno para la vista publica de afiliacion */
body.public-page .public-modal .modal-content {
  border: 1px solid #d3e4cc;
  border-radius: 0.9rem;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 18px 36px rgba(24, 72, 54, 0.22);
}

body.public-page .public-modal .modal-header {
  background: linear-gradient(120deg, #0f5b3f 0%, #249464 100%);
  color: #ffffff;
  border-bottom: 0;
  height: auto;
  padding: 0.85rem 1rem;
}

body.public-page .public-modal .modal-title {
  font-size: 1.05rem;
  font-weight: 700;
}

body.public-page .public-modal .btn-close {
  filter: brightness(0) invert(1);
  opacity: 0.9;
  box-shadow: none;
}

body.public-page .public-modal .modal-body {
  background: #f3f9ef;
  color: #20342f;
  padding: 1rem;
}

body.public-page .public-modal .modal-footer {
  background: #f7fcf3;
  border-top: 1px solid #dbe8d5;
  padding: 0.75rem 1rem;
}

body.public-page .public-modal .btn-secondary {
  background-color: #17724f;
  border-color: #17724f;
}

body.public-page .public-modal .btn-secondary:hover,
body.public-page .public-modal .btn-secondary:focus {
  background-color: #0f5b3f;
  border-color: #0f5b3f;
}
