:root {
  --bg: #0b0f14;
  --card: #111827;
  --text: #0f172a;
  --muted: #64748b;
  --soft: #f1f5f9;

  --primary: #405189;
  --primaryHover: #324173;

  --success: #16a34a;
  --successHover: #15803d;

  --ring: rgba(22, 163, 74, .35);
  --shadow: 0 14px 40px rgba(0, 0, 0, .18);
  --radius: 16px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
}

body {
  color: var(--text);
  background: #fff;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}

/* HERO */
.hero {
  min-height: 92vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-image: url("asset/auth-one-bg.jpg");
  background-size: cover;
  background-position: center;
  background-color: var(--bg);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(3, 7, 18, .86), rgba(3, 7, 18, .55));
}

.hero-inner {
  position: relative;
  padding: 38px 0 56px 0;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 32px;
  align-items: center;
}

.brandbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
  margin-left: 46px;
}

.logo-mv {
  height: 150px;
  width: auto;
}

.logo-d360 {
  height: 32px;
  width: auto;
  opacity: .95;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2rem, 3.3vw, 3.1rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  font-weight: 800;
}

.hero p {
  color: rgba(255, 255, 255, .82);
  font-size: 1.1rem;
  line-height: 1.55;
  margin-bottom: 22px;
  max-width: 58ch;
}

.pillrow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .10);
  border: 1px solid rgba(255, 255, 255, .14);
  color: rgba(255, 255, 255, .86);
  font-size: .92rem;
  backdrop-filter: blur(10px);
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  cursor: pointer;
  user-select: none;
}

.btn:focus {
  outline: none;
  box-shadow: 0 0 0 6px var(--ring);
}

.btn-success {
  background: var(--success);
  color: #fff;
  box-shadow: 0 10px 22px rgba(22, 163, 74, .25);
}

.btn-success:hover {
  background: var(--successHover);
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(22, 163, 74, .28);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 22px rgba(64, 81, 137, .25);
}

.btn-primary:hover {
  background: var(--primaryHover);
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(64, 81, 137, .28);
}

.btn-ghost {
  background: rgba(255, 255, 255, .08);
  color: #fff;
  border-color: rgba(255, 255, 255, .22);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, .12);
  transform: translateY(-1px);
}

.hero-card {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius);
  padding: 22px;
  backdrop-filter: blur(12px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .22);
}

.hero-card h3 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: rgba(255, 255, 255, .86);
  font-size: .98rem;
}

.checklist li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.dot {
  margin-top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 99px;
  background: var(--success);
  flex: 0 0 auto;
}

/* SECTIONS */
.section {
  padding: 76px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 42px;
}

.section-title h2 {
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.section-title p {
  color: var(--muted);
  max-width: 70ch;
  margin: 0 auto;
  line-height: 1.55;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.card {
  border-radius: var(--radius);
  border: 1px solid #e2e8f0;
  background: #fff;
  box-shadow: 0 8px 24px rgba(2, 6, 23, .06);
  padding: 22px;
}

.card.soft {
  background: var(--soft);
  border-color: #e2e8f0;
}

.col-4 { grid-column: span 4; }
.col-6 { grid-column: span 6; }
.col-12 { grid-column: span 12; }

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.card p {
  color: var(--muted);
  line-height: 1.55;
  font-size: .98rem;
}

.highlight {
  border: 1px solid rgba(22, 163, 74, .25);
  box-shadow: 0 10px 28px rgba(22, 163, 74, .08);
}

.doc-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.badge {
  display: inline-flex;
  padding: 8px 10px;
  border-radius: 999px;
  font-size: .9rem;
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  color: #166534;
  font-weight: 600;
}

/* PRICING CTA */
.pricing {
  background: #0b1220;
  color: #fff;
}

.pricing .section-title p {
  color: rgba(255, 255, 255, .78);
}

.price-card {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}

.price-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.plan-name {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.plan-tag {
  background: rgba(22, 163, 74, .16);
  border: 1px solid rgba(22, 163, 74, .38);
  color: #86efac;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .85rem;
}

.price {
  font-size: 2.2rem;
  font-weight: 900;
  margin: 6px 0 6px 0;
  letter-spacing: -0.03em;
}

.price small {
  font-size: .95rem;
  font-weight: 700;
  opacity: .9;
}

.price-desc {
  color: rgba(255, 255, 255, .75);
  line-height: 1.55;
  margin-bottom: 18px;
}

.bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, .86);
}

.bullets li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

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

/* FOOTER */
footer {
  padding: 34px 0;
  border-top: 1px solid #e2e8f0;
  background: #fff;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 12px;
}



.footer-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  color: var(--muted);
  font-size: .92rem;
}

.footer-rights {
  font-size: 11px;
  opacity: 0.6;
  margin-top: 2px;
}

.footer-social{
  display:flex;
  gap:16px;
  align-items:center;
  justify-content:center;
}

.social-btn{
  width:32px;
  height:32px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:10px;
  transition:transform .2s ease;
}

.social-btn svg{
  width:18px;
  height:18px;
  fill:#fff;
}

.instagram{
  background: radial-gradient(circle at 30% 107%,
  #fdf497 0%, #fdf497 5%, #fd5949 45%,
  #d6249f 60%, #285AEB 90%);
}

/* FACEBOOK */

.facebook{
  background:#1877F2;
}

/* X */

.x{
  background:#000;
}

.social-btn:hover{
  transform:translateY(-2px);
}

.mv-mini {
  height: 38px;
  width: auto;
}

/* RESPONSIVE */
@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .col-4 { grid-column: span 12; }
  .col-6 { grid-column: span 12; }
}

@media (max-width: 992px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

/* MODAL (base) */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
  overflow-y: auto;
}

.modal.is-open {
  display: block;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
}

.modal__dialog {
  position: relative;
  width: min(640px, calc(100% - 32px));
  /*margin: 8vh auto 0;*/
  margin: 30px auto;
  background: var(--card);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  box-shadow: 0 22px 60px rgba(0,0,0,.45);
  overflow: hidden;
  color: #fff;

  max-height: 94vh;    /* No permite que el modal sea más alto que la pantalla */
  overflow-y: auto;    /* Activa el scroll vertical si el contenido no cabe */
  display: flex;       /* Ayuda a organizar el contenido interno */
  flex-direction: column;
}

.modal__header {
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,.10);
}

.modal__title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}

.modal__close {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.modal__close:hover {
  background: rgba(255,255,255,.10);
}

/* FORM en modal */
.modal__form {
  padding: 0;
}

.modal__body {
  padding: 18px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 10px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}

.form-field label {
  font-size: 13px;
  color: rgba(255,255,255,.82);
}

.form-field input,
.form-field textarea {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px;
  padding: 11px 12px;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
}

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

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(255,255,255,.45);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: rgba(64,81,137,.9);
  box-shadow: 0 0 0 3px rgba(64,81,137,.25);
}

/* Radios */
.form-options {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 4px;
}

.form-options label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  cursor: pointer;
}

.form-options input {
  accent-color: var(--primary);
}

/* Footer del modal (evita “bloque blanco”) */
.modal__footer {
  padding: 14px 18px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
}

/* Responsive modal */
@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.whatsapp-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(37,211,102,.45);
  z-index: 9998;
  transition: transform .15s ease, box-shadow .15s ease;
}

.whatsapp-float svg{
  width:30px;
  height:30px;
  fill:#ffffff;
}

.whatsapp-float:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(37,211,102,.55);
}

/* Notificación Flotante */
.toast-msg {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #10b981; /* Verde éxito */
    color: white;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 9999;
    font-family: 'Inter', sans-serif;
    transform: translateX(120%);
    transition: transform 0.3s ease-in-out;
}

.toast-msg.show {
    transform: translateX(0);
}

.toast-msg.error {
    background: #ef4444; /* Rojo error */
}