/* Reporte de pagos — mismo lenguaje visual que erplike.co */

:root {
  --color-bg: #ffffff;
  --color-text: #1a1a1a;
  --color-text-muted: #4a4a4a;
  --color-accent: #c41e3a;
  --color-accent-hover: #a01830;
  --color-accent-light: rgba(196, 30, 58, 0.08);
  --color-border: #e8e8e8;
  --color-card: #ffffff;
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.08);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --header-offset: 7.25rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--color-border);
}

.header-top {
  background: #fafafa;
  border-bottom: 1px solid var(--color-border);
  padding: 0.35rem 5%;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.header-top-inner,
.navbar-inner,
.page-wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}

.header-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.header-top-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.header-top-links a {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  background: var(--color-accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.8rem;
  text-decoration: none;
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(196, 30, 58, 0.25);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.header-top-links a:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(196, 30, 58, 0.35);
}

.navbar {
  padding: 0.85rem 5%;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.navbar-logo {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.5px;
  text-decoration: none;
}

.navbar-logo span {
  color: var(--color-accent);
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar-links a {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color var(--transition);
}

.navbar-links a:hover {
  color: var(--color-accent);
}

.navbar-cta {
  padding: 0.55rem 1.15rem;
  background: var(--color-accent);
  color: #fff !important;
  border-radius: var(--radius-sm);
}

.navbar-cta:hover {
  background: var(--color-accent-hover);
  color: #fff !important;
}

.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}

.navbar-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
}

.page {
  padding: 0 5%;
  background:
    radial-gradient(900px 420px at 100% -10%, rgba(196, 30, 58, 0.06), transparent 60%),
    linear-gradient(180deg, #fafafa 0%, #ffffff 280px);
}

.page-wrap {
  padding: 2.75rem 0 4.5rem;
}

.hero-badge {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  background: var(--color-accent-light);
  color: var(--color-accent);
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 50px;
  margin-bottom: 0.9rem;
}

.page-intro h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.page-intro h1 em {
  font-style: normal;
  color: var(--color-accent);
}

.page-intro p {
  margin: 0;
  max-width: 640px;
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

.pago-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.18fr);
  gap: 2rem;
  align-items: start;
  margin-top: 2.25rem;
}

.paso-list {
  display: grid;
  gap: 0.85rem;
}

.paso {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  padding: 1.05rem 1.1rem;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.paso strong {
  display: block;
  font-size: 0.98rem;
  margin-bottom: 0.15rem;
}

.paso p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.paso-num {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: var(--radius-sm);
  background: var(--color-accent-light);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.aside-note {
  margin-top: 0.85rem;
  padding: 1.15rem 1.2rem;
  border-radius: var(--radius-md);
  background: #1a1a1a;
  color: #f3f3f3;
}

.aside-note h2 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.aside-note p {
  margin: 0;
  color: #c8c8c8;
  font-size: 0.9rem;
}

.pago-form {
  background: #fafafa;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.5rem 1.4rem;
  box-shadow: var(--shadow-md);
}

.pago-form h2 {
  margin: 0 0 0.25rem;
  font-size: 1.25rem;
  font-weight: 800;
}

.form-lead {
  margin: 0 0 1.25rem;
  color: var(--color-text-muted);
  font-size: 0.92rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.95rem 1rem;
}

.field {
  min-width: 0;
}

.field-wide {
  grid-column: 1 / -1;
}

.field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.86rem;
  font-weight: 600;
}

.req {
  color: var(--color-accent);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.82rem 0.95rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--color-text);
  font: inherit;
  font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.field textarea {
  min-height: 96px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.12);
}

.input-prefix {
  display: flex;
  align-items: stretch;
}

.input-prefix span {
  display: flex;
  align-items: center;
  padding: 0 0.85rem;
  border: 1px solid var(--color-border);
  border-right: 0;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  background: #fff;
  color: var(--color-text-muted);
  font-weight: 700;
}

.input-prefix input {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  text-align: right;
}

.file-field input[type="file"] {
  padding: 0.65rem 0.75rem;
  background: #fff;
}

.file-hint,
.field-hint {
  display: block;
  margin-top: 0.35rem;
  color: #6b6b6b;
  font-size: 0.78rem;
}

.form-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.9rem;
  margin-top: 0.35rem;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-width: 220px;
  padding: 0.95rem 1.6rem;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--color-accent);
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(196, 30, 58, 0.3);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn-submit:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(196, 30, 58, 0.35);
}

.btn-submit:disabled {
  opacity: 0.7;
  cursor: wait;
  transform: none;
}

.form-note {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.82rem;
}

.pago-loader {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--color-text-muted);
  font-weight: 600;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid #e4e4e4;
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.alert {
  width: 100%;
  margin: 0;
  padding: 0.95rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  position: relative;
}

.alert h1 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
}

.alert-danger {
  background: rgba(196, 30, 58, 0.08);
  color: #8d152b;
  border: 1px solid rgba(196, 30, 58, 0.22);
}

.alert-success {
  background: rgba(22, 163, 74, 0.1);
  color: #166534;
  border: 1px solid rgba(22, 163, 74, 0.25);
}

.alert .close {
  position: absolute;
  top: 0.55rem;
  right: 0.7rem;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}

.footer {
  background: var(--color-text);
  color: #e0e0e0;
  padding: 2.6rem 5% 2.2rem;
  text-align: center;
}

.footer-logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.7rem;
}

.footer-logo span {
  color: var(--color-accent);
}

.footer p {
  margin: 0.35rem auto 0;
  max-width: 720px;
  color: #aaa;
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer a {
  color: #fff;
  text-decoration: none;
}

.footer a:hover {
  color: #ffd0d7;
}

.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1200;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

.whatsapp-float:hover {
  transform: translateY(-2px) scale(1.05);
  background: #1ebe5d;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}

@media (max-width: 900px) {
  .header-top-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .navbar {
    position: relative;
  }

  .navbar-toggle {
    display: flex;
  }

  .navbar-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    padding: 0.8rem 5% 1rem;
    background: #fff;
    box-shadow: var(--shadow-lg);
  }

  .navbar-links.is-open {
    display: flex;
  }

  .pago-layout,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .field-wide,
  .form-actions {
    grid-column: auto;
  }

  .btn-submit {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .page-wrap {
    padding-top: 1.6rem;
  }

  .pago-form {
    padding: 1.2rem 1rem 1.1rem;
  }

  .whatsapp-float {
    right: 16px;
    bottom: 16px;
    width: 52px;
    height: 52px;
  }

  .g-recaptcha {
    transform: scale(0.9);
    transform-origin: left top;
  }
}
