:root {
  --header-aqua: #7fdcd3;
  --surface-ice: #f2f9ff;
  --action-green: #4fb358;
  --action-green-dark: #3f9947;
  --ink-primary: #2d3136;
  --ink-muted: #5f6770;
  --pure-white: #ffffff;
  --card-elevation: 0 10px 28px rgba(18, 38, 63, 0.08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink-primary);
  background-color: var(--pure-white);
  line-height: 1.65;
}

.wrapper {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 22px;
}

.center-text {
  text-align: center;
}

/* Cabecera superior */
.header-ribbon {
  background-color: var(--header-aqua);
  padding: 14px 0;
}

.brand-heading {
  color: var(--pure-white);
  font-size: clamp(1.45rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.22);
}

.brand-link {
  color: inherit;
  text-decoration: none;
}

/* Aviso de política de gestoría privada (debajo del encabezado, igual que en la captura) */
.policy-notice-bar {
  background-color: var(--pure-white);
  border-bottom: 1px solid #eaeef3;
  padding: 10px 0;
}

.policy-notice-text {
  max-width: 820px;
  margin: 0 auto;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #3a3f45;
}

/* Portada / Hero con fondo propio en CSS */
.hero-stage {
  min-height: 360px;
  background:
    radial-gradient(circle at 20% 30%, rgba(127, 220, 211, 0.16) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(0, 159, 227, 0.18) 0%, transparent 55%),
    linear-gradient(135deg, #1b222c 0%, #26313f 50%, #192028 100%);
  color: var(--pure-white);
  display: flex;
  align-items: center;
  padding: 64px 0;
}

.hero-title {
  font-size: clamp(1.7rem, 3.4vw, 2.45rem);
  font-weight: 800;
  margin-bottom: 16px;
}

.hero-lead {
  font-size: 1.05rem;
  max-width: 650px;
  margin: 0 auto 30px;
  color: rgba(255, 255, 255, 0.9);
}

/* Botón Principal */
.cta-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 28px;
  background-color: var(--action-green);
  color: var(--pure-white);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.cta-pill:hover {
  background-color: var(--action-green-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(79, 179, 88, 0.38);
}

.cta-pill:active {
  transform: translateY(0);
}

.full-width {
  width: 100%;
}

/* Bloques de contenido */
.content-block {
  padding: 60px 0;
}

.surface-tint {
  background-color: var(--surface-ice);
}

.section-banner-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 34px;
  color: var(--ink-primary);
}

/* Diseño en 2 columnas */
.split-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.block-subtitle {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink-primary);
  margin-bottom: 10px;
}

.block-paragraph {
  color: var(--ink-muted);
  margin-bottom: 24px;
  font-size: 1rem;
}

.action-holder {
  margin-top: 10px;
}

/* Tarjeta de muestra del informe */
.document-card {
  background: var(--pure-white);
  border-radius: 14px;
  padding: 14px;
  box-shadow: var(--card-elevation);
  border: 1px solid #e4e9f0;
  text-align: center;
}

.document-preview-img {
  width: 100%;
  max-width: 440px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 6px;
  cursor: zoom-in;
  transition: transform 0.2s ease;
}

.document-preview-img:hover {
  transform: scale(1.015);
}

.document-caption {
  margin-top: 10px;
  font-size: 0.84rem;
  color: var(--ink-muted);
}

/* Tarjetas de ventajas */
.features-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.feature-tile {
  background: var(--pure-white);
  border-radius: 14px;
  padding: 28px 22px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 136, 204, 0.08);
}

.feature-badge {
  width: 68px;
  height: 68px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #eaf6ff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-tile h4 {
  font-size: 1.12rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--ink-primary);
}

.feature-tile p {
  font-size: 0.94rem;
  color: var(--ink-muted);
}

/* ==========================================
   Estilos de pasoData.php (Formulario y Precios)
   ========================================== */
.step-page-main {
  padding: 46px 0 64px;
}

.step-card {
  max-width: 780px;
  margin: 0 auto;
  background: var(--pure-white);
  border-radius: 18px;
  padding: 36px 34px;
  box-shadow: var(--card-elevation);
  border: 1px solid #e3eaf2;
}

.step-header {
  margin-bottom: 28px;
  border-bottom: 1px solid #edf2f7;
  padding-bottom: 20px;
}

.back-link {
  display: inline-block;
  font-size: 0.86rem;
  font-weight: 600;
  color: #1f5f8b;
  text-decoration: none;
  margin-bottom: 12px;
}

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

.step-badge {
  display: block;
  width: fit-content;
  background: #e6f6f4;
  color: #16796f;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.step-title {
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 800;
  color: var(--ink-primary);
  margin-bottom: 6px;
}

.step-subtitle {
  font-size: 0.95rem;
  color: var(--ink-muted);
}

.form-section-block {
  margin-bottom: 28px;
}

.form-section-heading {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--ink-primary);
  margin-bottom: 14px;
}

.form-grid-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.pricing-helper-note {
  font-size: 0.88rem;
  color: var(--ink-muted);
  margin-bottom: 14px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.price-option-card {
  position: relative;
  display: block;
  border: 2px solid #dce4ee;
  border-radius: 14px;
  padding: 18px 16px;
  background: #fbfdff;
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.price-option-card:hover {
  border-color: #9ec5e6;
}

.price-option-card input[type="radio"] {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 18px;
  height: 18px;
  accent-color: var(--action-green);
}

.price-option-card.is-selected,
.price-option-card:has(input[type="radio"]:checked) {
  border-color: var(--action-green);
  background: #f3fbf4;
  box-shadow: 0 4px 14px rgba(79, 179, 88, 0.14);
}

.recommended-pill {
  display: inline-block;
  background: #0088cc;
  color: var(--pure-white);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 9px;
  border-radius: 999px;
  margin-bottom: 6px;
}

.price-card-top {
  display: flex;
  flex-direction: column;
  padding-right: 26px;
  margin-bottom: 8px;
}

.plan-name {
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--ink-primary);
}

.plan-time {
  font-size: 0.84rem;
  font-weight: 600;
  color: #0077b6;
}

.price-values {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
}

.price-current {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--action-green-dark);
}

.plan-schedule {
  font-size: 0.78rem;
  color: var(--ink-muted);
}

.step-consent {
  background: #f8fafc;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #e5ebf2;
}

.inline-link-dark {
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: inherit;
  font-weight: 600;
  color: #1f5f8b;
  text-decoration: underline;
  cursor: pointer;
}

.step-submit-row {
  margin-top: 20px;
}

.step-submit-btn {
  padding: 15px 30px;
  font-size: 1.08rem;
}

/* Estilos de pasoPago.php (Tarjeta) */
.pago-importe {
  margin-top: 10px;
  font-size: 0.95rem;
  color: var(--ink-muted);
}

.pago-importe strong {
  color: var(--action-green-dark);
  font-size: 1.1rem;
}

.card-number-wrap {
  position: relative;
}

.card-number-wrap input {
  padding-right: 64px;
  letter-spacing: 0.04em;
}

.card-brand-icon {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  width: 44px;
  height: auto;
  border-radius: 4px;
  pointer-events: none;
}

.cvv-toggle-btn {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  display: flex;
  padding: 6px;
  background: none;
  border: none;
  border-radius: 6px;
  color: var(--ink-muted);
  cursor: pointer;
}

.cvv-toggle-btn:hover {
  color: var(--ink-primary);
}

/* Ojo tachado mientras el CVV está oculto */
.cvv-toggle-btn[aria-pressed="true"] .eye-slash {
  display: none;
}

/* Estilos de pasoRes.php (Resumen) */
.summary-list {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 6px 20px;
}

.summary-list div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #edf2f7;
  font-size: 0.95rem;
}

.summary-list div:last-child {
  border-bottom: none;
}

.summary-list dt {
  color: var(--ink-muted);
  font-weight: 600;
}

.summary-list dd {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  text-align: right;
}

.summary-card-icon {
  width: 36px;
  height: auto;
  border-radius: 3px;
}

.summary-price-highlight {
  color: var(--action-green-dark);
  font-size: 1.25rem;
}

/* Estilos de pagoEx.php y pagoFa.php (Procesando y Resultado) */
.procesando-box,
.resultado-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 0 12px;
}

.procesando-box[hidden],
.resultado-box[hidden] {
  display: none;
}

.procesando-spinner {
  width: 64px;
  height: 64px;
  margin-bottom: 22px;
  border: 6px solid #dff3f1;
  border-top-color: var(--header-aqua);
  border-right-color: var(--action-green);
  border-radius: 50%;
  animation: girar-spinner 0.9s linear infinite;
}

@keyframes girar-spinner {
  to {
    transform: rotate(360deg);
  }
}

.resultado-flash {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  /* 2 s de pantalla completa y luego se desvanece */
  animation: desvanecer-flash 2.8s ease-in forwards;
}

.flash-ok {
  background: var(--action-green);
}

.flash-error {
  background: #d64545;
}

.flash-icon {
  width: 140px;
  height: 140px;
  border: 8px solid var(--pure-white);
  border-radius: 50%;
  color: var(--pure-white);
  font-size: 5rem;
  font-weight: 800;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: aparecer-icono 0.45s ease-out;
}

@keyframes desvanecer-flash {
  0%,
  72% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

.resultado-icon {
  width: 72px;
  height: 72px;
  margin-bottom: 16px;
  border-radius: 50%;
  font-size: 2.2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: aparecer-icono 0.35s ease-out;
}

@keyframes aparecer-icono {
  from {
    transform: scale(0.5);
    opacity: 0;
  }
}

.resultado-ok {
  background: #e7f7e9;
  color: var(--action-green-dark);
}

.resultado-error {
  background: #fdecec;
  color: #d64545;
}

.badge-error {
  background: #fdecec;
  color: #b83232;
}

.resultado-box .step-subtitle {
  max-width: 520px;
}

.resultado-nota {
  font-size: 0.88rem;
  color: var(--ink-muted);
  margin: 10px 0 24px;
}

/* Seguridad anti-bots */
.seg-trampa {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.seg-error {
  background: #fdecec;
  color: #b83232;
  border: 1px solid #f5c2c2;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 20px;
}

/* Panel admin/clics.php */
.admin-card {
  max-width: 1000px;
}

.admin-ips {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid #cfd6df;
  border-radius: 8px;
  font-family: Consolas, monospace;
  font-size: 0.9rem;
}

.admin-tabla-wrap {
  overflow-x: auto;
}

.admin-tabla {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.admin-tabla th,
.admin-tabla td {
  text-align: left;
  padding: 9px 10px;
  border-bottom: 1px solid #edf2f7;
}

.admin-tabla th {
  color: var(--ink-muted);
  font-weight: 700;
}

.admin-sospechosa {
  background: #fdecec;
}

.admin-agente {
  max-width: 320px;
  color: var(--ink-muted);
  word-break: break-all;
}

.btn-salir {
  background: var(--pure-white);
  color: var(--ink-primary);
  border: 1px solid #cbd5e1;
  padding: 10px 20px;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
}

/* Pie de página completo con políticas legales */
.site-footer {
  background-color: #f8fafc;
  border-top: 1px solid #e2e8f0;
  padding: 44px 0 28px;
  color: var(--ink-muted);
}

.footer-transparency-box {
  background-color: var(--pure-white);
  border: 1px solid #dce4ee;
  border-left: 4px solid #0088cc;
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 28px;
}

.footer-disclaimer-strong {
  font-size: 0.88rem;
  color: #333a42;
  line-height: 1.55;
}

.footer-legal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 28px;
}

.footer-col h5 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink-primary);
  margin-bottom: 8px;
}

.footer-col p {
  font-size: 0.83rem;
  line-height: 1.55;
  color: var(--ink-muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 0;
  border-top: 1px solid #e6ecf2;
  border-bottom: 1px solid #e6ecf2;
  margin-bottom: 18px;
}

.footer-link-btn {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: #1f5f8b;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-link-btn:hover {
  color: #0e3d5c;
}

.footer-sep {
  color: #b0bac5;
}

.footer-bottom {
  font-size: 0.8rem;
  color: #747d88;
}

/* Banner de Cookies */
.cookie-banner {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  max-width: 960px;
  margin: 0 auto;
  background: #1c2430;
  color: #f1f5f9;
  border-radius: 14px;
  padding: 16px 22px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.3);
  z-index: 950;
}

.cookie-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.cookie-banner-text {
  font-size: 0.84rem;
  line-height: 1.5;
}

.inline-policy-btn {
  background: none;
  border: none;
  color: #7fdcd3;
  font-family: inherit;
  font-size: inherit;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

.cookie-banner-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--pure-white);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 9px 16px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.cookie-btn-accept {
  padding: 9px 20px;
  font-size: 0.88rem;
}

/* Modal interactivo */
.dialog-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 34, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 1000;
}

.dialog-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.dialog-box {
  background: var(--pure-white);
  width: 100%;
  max-width: 450px;
  border-radius: 16px;
  padding: 28px 24px;
  position: relative;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.legal-dialog-box {
  max-width: 680px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}

.legal-tabs-nav {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 12px;
  margin-bottom: 16px;
  padding-right: 28px;
  flex-wrap: wrap;
}

.legal-tab-trigger {
  background: #f1f5f9;
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-muted);
  cursor: pointer;
}

.legal-tab-trigger.active {
  background: #0088cc;
  color: var(--pure-white);
}

.legal-modal-body {
  overflow-y: auto;
  padding-right: 6px;
}

.legal-section h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 4px;
  color: var(--ink-primary);
}

.legal-updated {
  font-size: 0.8rem;
  color: var(--ink-muted);
  margin-bottom: 16px;
}

.legal-section h4 {
  font-size: 0.96rem;
  font-weight: 700;
  margin: 14px 0 6px;
  color: var(--ink-primary);
}

.legal-section p,
.legal-section li {
  font-size: 0.88rem;
  color: #495057;
  line-height: 1.6;
}

.legal-section ul {
  padding-left: 20px;
  margin-bottom: 10px;
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--ink-muted);
  cursor: pointer;
}

.input-field {
  margin-bottom: 14px;
}

.input-field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 5px;
}

.input-field input {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid #cfd6df;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
}

.input-field input:focus {
  outline: none;
  border-color: var(--action-green);
  box-shadow: 0 0 0 3px rgba(79, 179, 88, 0.2);
}

.consent-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.consent-checkbox input {
  margin-top: 3px;
}

/* Visor de imagen ampliada */
.zoom-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(12, 18, 26, 0.86);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 1100;
}

.zoom-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.zoom-image {
  max-width: 90vw;
  max-height: 90vh;
  background: var(--pure-white);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.5);
}

.zoom-close {
  position: absolute;
  top: 18px;
  right: 26px;
  background: none;
  border: none;
  color: var(--pure-white);
  font-size: 2.3rem;
  cursor: pointer;
}

/* Adaptación móvil */
@media (max-width: 820px) {
  .split-layout,
  .form-grid-two,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .features-row,
  .footer-legal-grid {
    grid-template-columns: 1fr;
  }

  .step-card {
    padding: 24px 18px;
  }

  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-banner-actions {
    justify-content: flex-end;
  }

  .hero-stage {
    min-height: 310px;
    padding: 46px 0;
  }
}
