/* ---------------------------------------------------------
   checkout-style.min.css — FINAL DEFINITIVO (LIMPIO)
---------------------------------------------------------- */

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: #ffffff;
  color: #1F1F1F;
}

*, *::before, *::after {
  box-sizing: border-box;
}

.checkout-page{
  display:block;
  padding:0;
}

.checkout-container {
  width: 100%;
  max-width: 450px;
  padding: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  min-height: calc(100vh - 32px); /* ← resta el padding vertical */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* ---------------------------------------------------------
   HEADER
---------------------------------------------------------- */
.checkout-header{
  font-size:0.8rem;
  line-height:1.2;

  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;

  margin-bottom:18px;

  padding:28px 16px 16px;
}

.product-badge{
  display:flex;
  align-items:center;
  justify-content:space-between;

  width:100%;
  max-width:340px;

  padding:12px 20px;

  margin:6px auto 18px;

  background:#F2F6F5;
  border-radius:999px;

  font-size:15px;
  font-weight:500;

  color:#3f5f58;
}

.product-name-inline{
  font-size:15px;
  font-weight:500;
  color:#3f5f58;
}

.product-price-inline{
  font-size:18px;
  font-weight:800;
  color:#0F4E43;
}

/* ---------------------------------------------------------
   PASO 1 — EMAIL
---------------------------------------------------------- */
.email-section {
  position: relative;
  margin: 24px 14px 32px;
  border: 2px solid rgba(15,78,67,0.35);
  border-radius: 18px;
  padding: 20px 16px;
  background: #F4FBF9;
  box-shadow: 0 14px 32px rgba(15,78,67,0.14);
  animation: emailGlow 2.8s ease-in-out infinite;
  overflow: hidden;
}

.email-section::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 20px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(15,78,67,0.45),
    transparent
  );
  opacity: 0.1;
  animation: borderGlow 4.5s linear infinite;
  pointer-events: none;
}

.email-caption {
  font-size: 13px;
  color: #5f6f6a;
  margin: 0 0 12px;
}

.email-input {
  width: 100%;
  padding: 18px 52px 18px 16px;
  border: 2px solid #0F4E43;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 500;
  margin-top:8px;   /* nuevo */
}

.email-input{
  width:calc(100% - 16px);
  margin-left:8px;

  padding:18px 52px 18px 16px;
  border:2px solid #0F4E43;
  border-radius:16px;
  font-size:16px;
  font-weight:500;

  margin-top:8px;
}

.email-input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(15,78,67,0.18);
}

.email-valid-check {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #0F4E43;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  scale: 0.85;
  transition: opacity .2s ease, scale .2s ease;
  pointer-events: none;
}

.email-section.valid .email-valid-check {
  opacity: 1;
  scale: 1;
}

@keyframes emailGlow {
  0%,100% { box-shadow: 0 0 0 rgba(15,78,67,0); }
  50% { box-shadow: 0 0 22px rgba(15,78,67,0.28); }
}

@keyframes borderGlow {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ---------------------------------------------------------
   PASO 2 — PAGO
---------------------------------------------------------- */
#step2 {
  margin-top: 24px;
  transition: opacity .2s ease;
}

#step2.locked {
  opacity: .55;
}

.card-section {
  padding: 0 18px;
  margin: 0 14px;
}

.step-pill {
  font-weight: 700;
  margin-bottom: 8px;
  display: inline-block;
}

.step2-caption {
  font-size: 13px;
  color: #6f7c78;
  text-align: center;
  width: 100%;
  margin: 8px auto 0;
}

#step2.locked .payment-content {
  display: none;
}

#step2:not(.locked) .step2-caption {
  display: none;
}


/* ---------------------------------------------------------
   BOTÓN WALLET — OFICIAL MERCADOPAGO
---------------------------------------------------------- */
.mp-wallet-btn {
  width: 100%;
  height: 56px;
  margin-top: 12px;

  background: #3483FA;
  color: #ffffff;

  border: none;
  border-radius: 14px;

  position: relative; /* ← ESTA ES LA CLAVE */

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 18px;
  box-sizing: border-box;
  font-size: 16px;
  font-weight: 600;

  cursor: pointer;
  transition: all .2s ease;
  box-shadow: 0 6px 16px rgba(0,158,227,.35);
}

.mp-wallet-btn:active {
  transform: scale(.98);
  box-shadow: 0 3px 8px rgba(0,158,227,.25);
}

/* logo + texto */
.mp-wallet-btn .mp-brand-wrapper {
  display: flex;
  align-items: center;   /* ← ESTO es lo que faltaba */
  gap: 9px;
  height: 56%;
  flex: 1;
  justify-content: center;
}

/* logo */
.mp-wallet-icon {
  width: 50px;        /* ← MÁS GRANDE (clave) */
  height: auto;       /* ← NO fuerces cuadrado */
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

/* texto */
.mp-wallet-text {
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  transform: translateY(1px);
}

/* ---------------------------------------------------------
   BOTÓN TARJETA (match visual wallet)
---------------------------------------------------------- */
.mp-card-btn {
  width: 100%;
  height: 56px;
  margin-top: 12px;

  background: #ffffff;
  color: #1f1f1f;

  border: 2px solid #3483FA;
  border-radius: 14px;

  display: flex;
  align-items: center;
  justify-content: center;

  position: relative;

  font-size: 15px;
  font-weight: 600;

  cursor: pointer;
  transition: all .2s ease;

  box-shadow: 0 6px 16px rgba(0,158,227,.18);
}

.mp-card-btn:active {
  transform: scale(.98);
}

.mp-card-text {
  pointer-events: none;
  white-space: nowrap;
}

.mp-brand-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex: 1;
}

/* flecha unificada (wallet + tarjeta) */
.mp-chevron {
  position: absolute;
  right: 18px;

  font-size: 22px;
  font-weight: 700;
  line-height: 1;

  display: flex;
  align-items: center;
  justify-content: center;
}

/* color por contexto */
.mp-wallet-btn .mp-chevron {
  transform: translateY(-1px);
  color: #ffffff; /* blanca */
}

.mp-card-btn .mp-chevron {
  color: #3483FA; /* azul */
}


/* =========================================================
   CARD BRICK — SIN TARJETA (FULL-BLEED SEGURO)
========================================================= */
.brick-clean-wrapper {
  width: 100%;
  margin-top: 16px;

  /* se elimina la card */
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;

  box-sizing: border-box;
  overflow-x: hidden;
}

/* contenedor directo del iframe */
#cardBrick_container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  overflow-x: hidden;
}

/* iframe MP */
#cardBrick_container iframe {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  display: block;
  border: 0;
}

/* Skeleton loader */
.brick-skeleton{
  height:420px;
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  background: #f2f2f2;
  display: block;
}

.sk-line {
  height: 14px;
  border-radius: 6px;
  margin-bottom: 10px;
  background: linear-gradient(
    90deg,
    #e0e0e0 25%,
    #f5f5f5 37%,
    #e0e0e0 63%
  );
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
}

.sk-line.short {
  width: 60%;
}

@keyframes shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}


/* ---------------------------------------------------------
   FOOTER
---------------------------------------------------------- */
.footer-legal {
  margin-top: 20px;
  padding: 6px 18px 32px;
  text-align: center;
  font-size: 11px;
  color: #7a7a7a;
}

.footer-trust {
  margin-bottom: 14px;
  font-size: 12px;
  color: #4f5d59;
}

.footer-copy {
  font-size: 10.5px;
  color: #9a9a9a;
}

/* =========================================================
   OVERLAY CARD BRICK — PORTAL FULL MOBILE (FIX DEFINITIVO)
========================================================= */

.mp-overlay {
  position: fixed;
  inset: 0;
  background: #FAF7F2;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

/* oculto por defecto */
.mp-overlay.hidden {
  display: none;
}

/* header del overlay */
.mp-overlay-header {
  position: sticky;
  top: 0;
  background: #FAF7F2;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  z-index: 1;
}

.mp-overlay-back {
  background: none;
  border: none;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.mp-overlay-title {
  font-size: 16px;
  font-weight: 700;
}

/* cuerpo del overlay */
.mp-overlay-body {
  flex: 1;
  padding: 16px 14px 32px;
  box-sizing: border-box;
}

/* contenedor seguro del brick */
.mp-overlay-body #cardBrick_container {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* iframe MP seguro */
.mp-overlay-body #cardBrick_container iframe {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  display: block;
  border: 0;
}


/* ===== FIX DEFINITIVO: aislar cr-footer de footer-legal ===== */
.footer-legal .cr-footer{
  font-size: initial !important;
  color: initial !important;
}

.footer-legal .cr-footer *{
  font-size: inherit !important;
  color: inherit !important;
}

/* =========================
   FOOTER 
   ========================= */
/* ===== FORCE FOOTER IDENTICAL (CHECKOUT) ===== */
.cr-footer,
.cr-footer *{
  font-family: inherit !important;
}

.cr-footer-brand{
  font-size: 0.8rem !important;
  font-weight: 500 !important;
  color: #6B6B6B !important;
  opacity: 0.75 !important;
  margin-bottom: 0.35rem !important;
}

.cr-footer-terms a{
  font-size: 0.78rem !important;
  color: #8A8A8A !important;
  opacity: 0.8 !important;
  text-decoration: none !important;
}

.cr-footer-terms a:hover{
  text-decoration: underline !important;
}

/* ===== FOOTER CHECKOUT — MATCH LANDING 1:1 ===== */
.footer-legal .cr-footer{
  text-align: center;
}

.footer-legal .cr-footer-brand{
  font-size: 0.8rem !important;
  font-weight: 500 !important;
  color: #6B6B6B !important;
  opacity: 0.75 !important;
  margin-bottom: 0.35rem !important;
}

.footer-legal .cr-footer-terms a{
  font-size: 0.78rem !important;
  font-weight: 400 !important;
  color: #8A8A8A !important;
  opacity: 0.8 !important;
  text-decoration: none !important;
}

.footer-legal .cr-footer-terms a:hover{
  text-decoration: underline !important;
}

/* ===== FIX FINAL: MISMA FUENTE QUE LA LANDING ===== */
.footer-legal .cr-footer,
.footer-legal .cr-footer *{
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 
               "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
}

html, body {
  min-height: 100%;
}

.cr-footer{
  position: relative;
  top: 10px; /* baja solo el copy */
}

.cr-footer{
  opacity: 0.8;
}

.cr-footer-terms a{
  opacity: 0.8;
}

.cr-footer-brand{
  font-size: 0.72rem;
}

.cr-footer-terms a{
  font-size: 0.7rem;
}

.secure{
  font-size:14px;
  font-weight:500;
}

/* ============================================================
   Reservar el espacio desde el inicio
============================================================ */
#cardBrick_container {
  min-height: 420px;
  width: 100%;
  position: relative;
}


/* ============================================================
   CSS para Single Screen
============================================================ */
.payment-card{
  background:white;
  border-radius:0;
  padding:22px;
  box-shadow:0 8px 28px rgba(0,0,0,0.08);
  margin-top:-16px;
}

.email-field{
  margin-top:16px;
  margin-bottom:18px;
}

.email-label{
  font-size:19px;
  font-weight:700;
  letter-spacing:-0.2px;
  color:#1F1F1F;

  padding-left:16px;
  margin-top:6px;
  margin-bottom:16px;
}

.card-field{
  margin-top:10px;
}

.email-confirmation{
  display:none;
  font-size:13px;
  color:#0F7B3F;
  margin-top:6px;
  font-weight:500;
}

iframe[src*="mercadopago"] h3{
  display:none !important;
}

.email-field{
  padding-left:0;
  margin-left:0;
}

.email-field.valid .email-input{
  background:#EAF7F1;
  border-color:#1f7a5c;
}

.email-field{
  position:relative;
}

.email-valid-check{
  position:absolute;

  right:24px;            /* más hacia la izquierda */
  top:calc(50% + 12px);

  transform:translateY(-50%);

  width:28px;            /* más grande */
  height:28px;

  border-radius:50%;
  background:#2ecc71;
  color:#fff;

  font-size:16px;        /* tick más grande */

  display:flex;
  align-items:center;
  justify-content:center;

  opacity:0;
  transition:opacity .2s ease;
}

.email-field.valid .email-valid-check{
  opacity:1;
}

.email-input[readonly]{
  cursor:default;
}

/* =========================================
   WALLET MERCADOPAGO — DESACTIVADO
========================================= */
.wallet-alt{
  display:none !important;
}

/* =====================================
   TRUST MERCADOPAGO
===================================== */

.mp-trust{
  margin-top:6px;
  margin-bottom:8px;

  display:flex;
  justify-content:center;
  align-items:center;
  gap:6px;

  font-size:14px;
  color:#6b6b6b;
}

.mp-trust strong{
  font-weight:600;
  color:#4a4a4a;
}

.mp-trust img{
  height:18px;
  width:auto;
}

.mp-trust{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:6px;
}

.mp-trust span{
  font-size:16px;
}

.lock{
  font-size:18px;
  line-height:1;
  transform:translateY(-1px);
  margin-right:-2px;
}

.mp-trust{
  transform: translateY(4px);
}

/* =====================================
   CTA PAGAR — MAYOR PRESENCIA
===================================== */

#cardBrick_container button{
  height:60px !important;
  font-size:17px !important;
  font-weight:700 !important;
  border-radius:16px !important;
}

/* =====================================
   FIXES
===================================== */
/* HERO */

.checkout-header{
  text-align:center;
  padding-top:16px;
  padding-bottom:18px;
  background:#F7F9F8;
}

.checkout-header h1{
  margin-bottom:10px;
}


/* PRODUCT BADGE (PILL) */

.product-badge{
  display:inline-flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;

  padding:10px 18px;
  border-radius:999px;

  max-width:100%;
}

.product-name-inline{
  font-size:15px;
  font-weight:500;
  white-space:nowrap;
}

.product-price-inline{
  font-size:21px;
  font-weight:700;
  white-space:nowrap;
}

.mp-trust{
  margin-top:6px;
  margin-bottom:21px;

  display:flex;
  justify-content:center;
  align-items:center;
  gap:6px;

  font-size:14px;
  color:#6b6b6b;
}

.mp-footer img{
  height:124px;
  width:auto;
  opacity:0.9;
}

.footer-legal {
  margin-top: -10px;
  padding: 0 18px 16px;
}

.payment-card{
  margin-bottom:0px;
  background:white;
  border-radius:0;
  padding:22px;
  box-shadow:0 8px 28px rgba(0,0,0,0.08);
  margin-top:-16px;
}

.checkout-container {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.payment-card{
  padding-bottom:14px;
}

.mp-trust{
  margin-top:6px;
  margin-bottom:8px;
}

.footer-legal {
  margin-top: 8px;
  padding: 6px 18px 16px;
}

.mp-trust{
  margin-top:6px;
  margin-bottom:18px;
}

.cr-footer{
  position: relative;
  top: -8px;
}

.footer-legal {
  margin-top: 8px;
  padding: 6px 18px 16px;

  display:flex;
  flex-direction:column;
  align-items:center;
}

.mp-footer{
  transform: translateY(-12px);
}

.checkout-container{
  transform: translateZ(0);
}

/* ajustar espacio texto-precio en la pill */
.product-badge{
  justify-content:center;
  gap:24px;
}
