:root {
  --navy: #002855;
  --navy-dark: #0b2147;
  --yellow: #ffcc00;
  --ink: #12284b;
  --muted: #506480;
  --line: #e5e8ed;
  --cream: #f8f7f2;
  --font: Arial, sans-serif;
  --display: Arial, sans-serif;
  --bg-body: #f2f4f8;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Arial, sans-serif; background-color: var(--bg-body); color: #333; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.hide-mobile { display: block; }
.show-mobile { display: none; }

/* --- FAKE LOADER --- */
.trust-loader {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: var(--navy); z-index: 9999; display: flex;
  align-items: center; justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s;
}
.loader-content {
  text-align: center; color: white;
}
.loader-logo {
  height: 50px; margin-bottom: 20px;
  filter: brightness(0) invert(1);
}
.spinner {
  width: 40px; height: 40px; border: 4px solid rgba(255,255,255,0.3);
  border-top-color: var(--yellow); border-radius: 50%;
  animation: spin 1s linear infinite; margin: 0 auto 20px;
}
@keyframes spin { 100% { transform: rotate(360deg); } }
.loader-progress {
  width: 250px; height: 4px; background: rgba(255,255,255,0.2);
  margin: 15px auto; border-radius: 2px; overflow: hidden;
}
.loader-bar {
  height: 100%; background: var(--yellow); width: 0%;
  transition: width 0.3s;
}
#loader-text {
  font-family: var(--display); font-size: 16px; font-weight: 500;
}

/* --- GDPR BANNER --- */
.gdpr-banner {
  position: fixed; bottom: -150px; left: 0; width: 100%;
  background: white; border-top: 1px solid #ddd; z-index: 9000;
  box-shadow: 0 -5px 15px rgba(0,0,0,0.1);
  transition: bottom 0.5s ease;
}
.gdpr-banner.show { bottom: 0; }
.gdpr-content {
  max-width: 1200px; margin: 0 auto; padding: 15px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.gdpr-content p { margin: 0; font-size: 12px; color: #555; line-height: 1.4; flex: 1; }
.gdpr-buttons { display: flex; gap: 10px; }
.gdpr-btn {
  padding: 8px 16px; border: none; border-radius: 4px; cursor: pointer;
  font-weight: bold; font-size: 13px; background: var(--navy); color: white;
}
.gdpr-btn.outline { background: white; color: var(--navy); border: 1px solid var(--navy); }

/* --- FOMO TIMER --- */
.fomo-timer {
  background: #fff8e1; border: 1px solid #ffe082; padding: 10px 15px;
  border-radius: 6px; display: flex; gap: 10px; align-items: center;
  margin-bottom: 20px; font-size: 13px; color: #8a6d3b;
}
.fomo-timer strong { color: #d32f2f; font-size: 14px; font-family: monospace; }

/* --- TRUST BADGES --- */
.trust-badges {
  display: flex; justify-content: center; gap: 15px; margin-top: 25px;
  border-top: 1px dashed #eee; padding-top: 15px;
}
.trust-badge {
  display: flex; align-items: center; gap: 5px; font-size: 11px; color: #888;
  font-weight: 500;
}
.trust-badge .trust-icon { font-size: 16px; opacity: 0.7; }

/* --- RECEIPT PROCESSING --- */
.receipt-processing {
  display: flex; align-items: center; gap: 10px; padding: 10px;
  background: #f8f9fa; border-radius: 4px; margin-top: 10px;
}
.proc-spinner {
  width: 20px; height: 20px; border: 2px solid #ddd;
  border-top-color: var(--navy); border-radius: 50%;
  animation: spin 1s linear infinite;
}
#proc-text { font-size: 13px; color: var(--navy); font-weight: 500; }

/* --- SECURITY EXTRA MESSAGES --- */
.security-top-banner {
  background-color: #e8f5e9; color: #1b5e20; text-align: center;
  padding: 10px 15px; font-size: 13px; display: flex;
  justify-content: center; align-items: center; gap: 8px;
  border-bottom: 1px solid #c8e6c9;
}
.security-top-banner a { color: #1b5e20; text-decoration: underline; font-weight: bold; }

.secure-checkout-note {
  background-color: #f0f7ff; border-left: 4px solid var(--navy);
  padding: 12px; margin: 20px 0; display: flex; gap: 12px;
  align-items: flex-start; border-radius: 0 4px 4px 0;
}
.secure-checkout-note .lock-icon { font-size: 20px; }
.secure-checkout-note p { margin: 0; font-size: 12px; color: var(--navy-dark); line-height: 1.4; }

.correos-header { background: #fff; border-bottom: 1px solid #ddd; }
.header-top { background: #f9f9f9; border-bottom: 1px solid #eee; font-size: 11px; font-weight: bold; }
.ht-inner { display: flex; justify-content: space-between; align-items: center; height: 36px; }
.ht-left a { text-decoration: none; color: #666; margin-right: 15px; padding: 10px 0; text-transform: uppercase; }
.ht-left a.active { color: var(--navy); border-bottom: 2px solid var(--yellow); }
.ht-right { display: flex; align-items: center; gap: 15px; }
.ht-right a { text-decoration: none; color: var(--navy); }
.search-wrap { border: 1px solid #ccc; border-radius: 4px; padding: 2px 5px; background: #fff; }
.search-wrap input { border: none; outline: none; font-size: 11px; }

.header-main { padding: 15px 0; }
.hm-inner { display: flex; align-items: center; gap: 40px; }
.logo { width: 120px; }
.main-nav { display: flex; gap: 20px; }
.main-nav a { text-decoration: none; color: var(--navy); font-weight: bold; font-size: 14px; text-transform: uppercase; }

/* --- MAIN LAYOUT --- */
.main-content { display: flex; flex-direction: column; gap: 20px; margin-top: 20px; margin-bottom: 40px; }

/* --- BANNER --- */
.banner-regularizacion { background: #e3f2fd; display: flex; border-radius: 8px; overflow: hidden; }
.banner-text { padding: 30px; flex: 1; }
.banner-text .tag { display: inline-block; background: #bbdefb; color: #0d47a1; font-size: 12px; font-weight: bold; padding: 4px 8px; border-radius: 4px; margin-bottom: 10px; }
.banner-text h1 { margin: 0 0 10px 0; font-size: 24px; color: var(--navy); }
.banner-text p { font-size: 14px; line-height: 1.5; color: #444; margin-bottom: 20px; }
.btn-outline { background: transparent; border: 2px solid var(--navy); color: var(--navy); padding: 10px 20px; font-weight: bold; border-radius: 4px; cursor: pointer; }
.banner-img { width: 40%; }
.banner-img img { width: 100%; height: 100%; object-fit: cover; }

/* --- SIGUE TU ENVIO --- */
.sigue-tu-envio { background: #fff; padding: 20px; border-radius: 8px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.sigue-tu-envio h3 { margin: 0 0 15px 0; color: var(--navy); }
.track-form-comp { display: flex; gap: 10px; }
.track-form-comp input { flex: 1; padding: 12px; border: 1px solid #ccc; border-radius: 4px; font-size: 14px; }
.track-form-comp button { background: var(--navy); color: #fff; border: none; padding: 0 20px; border-radius: 4px; font-weight: bold; cursor: pointer; }

/* --- ENLACES RAPIDOS --- */
.enlaces-rapidos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.enlace-card { background: #fff; display: flex; align-items: center; padding: 15px; border-radius: 8px; text-decoration: none; color: var(--navy); font-weight: bold; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.enlace-card .icon { font-size: 24px; margin-right: 10px; }

/* --- SERVICIO PAQUETERIA --- */
.servicio-paqueteria { background: #fff; padding: 25px; border-radius: 8px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.sp-header h4 { margin: 0 0 5px 0; color: var(--navy); font-size: 18px; }
.sp-header p { margin: 0 0 20px 0; font-size: 14px; color: #666; }
.sp-header .price { color: #d32f2f; font-weight: bold; }

.paqueteria-form { display: flex; flex-direction: column; gap: 20px; }
.radios-top { display: flex; gap: 20px; font-weight: bold; color: var(--navy); }
.inputs-cp { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.input-group { display: flex; flex-direction: column; gap: 5px; }
.input-group label { font-size: 12px; color: #666; font-weight: bold; }
.input-group input { padding: 10px; border: 1px solid #ccc; border-radius: 4px; }

.pesos p { font-size: 14px; font-weight: bold; color: var(--navy); margin: 0 0 10px 0; }
.peso-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.peso-box { border: 1px solid #ccc; padding: 10px; text-align: center; border-radius: 4px; font-size: 13px; font-weight: bold; color: #555; cursor: pointer; }
.sp-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.btn-yellow { background: var(--yellow); border: none; padding: 12px 24px; border-radius: 4px; font-weight: bold; color: var(--navy); cursor: pointer; }
.mas-info { color: var(--navy); text-decoration: none; font-weight: bold; font-size: 12px; }

/* --- FOOTER --- */
.comp-footer { background: var(--navy); color: #fff; padding: 20px 0; text-align: center; font-size: 12px; margin-top: 40px; }

/* --- OFFICIAL CLONE CSS --- */
.official-header { background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 100; }
.head-wrapper { display: flex; justify-content: space-between; align-items: center; height: 70px; }
.head-left { display: flex; align-items: center; gap: 40px; }
.logo { width: 140px; }
.head-nav { display: flex; gap: 20px; height: 70px; }
.head-nav a { display: flex; align-items: center; text-decoration: none; color: #555; font-weight: bold; border-bottom: 3px solid transparent; }
.head-nav a.active { color: var(--navy); border-bottom-color: var(--yellow); }
.head-right { display: flex; align-items: center; gap: 20px; }
.search-bar { display: flex; align-items: center; background: #f4f4f4; border-radius: 20px; padding: 5px 15px; }
.search-bar input { border: none; background: transparent; outline: none; padding: 5px; font-size: 13px; }
.nav-link { font-size: 12px; font-weight: bold; color: var(--navy); }
.btn-login { border: 1px solid var(--navy); padding: 6px 15px; border-radius: 20px; transition: 0.2s; }
.btn-login:hover { background: var(--navy); color: #fff; }

.alert-bar { background: #fdfaf3; border-bottom: 1px solid #fce8a1; padding: 10px 0; font-size: 13px; color: #333; }
.alert-bar p { margin: 0; display: flex; justify-content: space-between; align-items: center; }
.alert-bar a { font-weight: bold; color: var(--navy); }

/* HERO */
.hero-official { background: #f9f9f9; padding: 40px 0; }
.hero-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.hero-content { flex: 1; }
.hero-content h1 { font-size: 32px; color: var(--navy); margin: 0 0 10px 0; }
.hero-content h2 { font-size: 20px; margin: 0 0 20px 0; }
.hero-content p { font-size: 15px; color: #555; line-height: 1.5; margin-bottom: 30px; }
.btn-yellow-solid { display: inline-block; background: var(--yellow); color: var(--navy); padding: 12px 30px; font-weight: bold; border-radius: 30px; text-decoration: none; }
.hero-image { width: 50%; border-radius: 10px; overflow: hidden; }
.hero-image img { width: 100%; height: auto; display: block; }

/* TOOLS */
.tools-official { padding: 40px 0; }
.tracking-box { background: #fff; padding: 30px; border-radius: 10px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); margin-bottom: 30px; text-align: center; }
.tracking-box h1 { margin: 0 0 20px 0; color: var(--navy); }
.track-form-official { display: flex; max-width: 600px; margin: 0 auto; gap: 10px; }
.input-wrapper { flex: 1; border-bottom: 2px solid var(--navy); }
.input-wrapper input { width: 100%; border: none; outline: none; padding: 10px 0; font-size: 16px; }
.btn-navy-solid { background: var(--navy); color: #fff; border: none; padding: 0 30px; border-radius: 30px; font-weight: bold; cursor: pointer; }

.quick-tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.qt-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 15px; background: #fff; padding: 30px 20px; border-radius: 10px; text-align: center; color: var(--navy); font-weight: bold; text-decoration: none; box-shadow: 0 5px 15px rgba(0,0,0,0.05); border: 1px solid transparent; transition: 0.2s; }
.qt-card:hover { border-color: var(--yellow); transform: translateY(-5px); }
.qt-icon { font-size: 32px; }

/* PAQUETERIA */
.paqueteria-official { background: #f2f4f8; padding: 60px 0; }
.pq-wrapper { background: #fff; max-width: 800px; margin: 0 auto; padding: 40px; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.pq-header { text-align: center; margin-bottom: 30px; }
.pq-header h3 { font-size: 24px; color: var(--navy); margin: 0 0 10px 0; }
.pq-header .price { color: #d32f2f; font-size: 18px; }
.pq-label { font-weight: bold; color: var(--navy); margin: 0 0 10px 0; }
.pq-radios { display: flex; gap: 20px; margin-bottom: 25px; }
.pq-radios label { display: flex; align-items: center; gap: 5px; cursor: pointer; }
.pq-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 25px; }
.pq-select-group { display: flex; border-bottom: 1px solid #ccc; }
.pq-select-group input, .pq-select-group button { border: none; padding: 10px; outline: none; background: transparent; }
.pq-select-group input { flex: 1; }
.disabled-btn { color: #999; cursor: not-allowed; }
.pq-weights { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 30px; }
.w-btn { border: 1px solid #ddd; background: #fff; padding: 15px 10px; border-radius: 8px; cursor: pointer; display: flex; flex-direction: column; gap: 5px; transition: 0.2s; }
.w-btn.active { border-color: var(--navy); background: #f4f7fa; }
.w-btn strong { color: var(--navy); font-size: 14px; }
.w-btn span { font-size: 11px; color: #666; }
.pq-footer { display: flex; justify-content: space-between; align-items: center; }
.link-more { color: var(--navy); font-weight: bold; text-decoration: none; }

/* REGULARIZACION */
.regularizacion-official { padding: 60px 0; }
.r-inner { background: #e3f2fd; padding: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: space-between; }
.r-text h3 { color: var(--navy); margin: 0 0 15px 0; font-size: 22px; }
.r-text p { color: #444; margin-bottom: 20px; line-height: 1.5; max-width: 800px; }
.btn-outline-navy { display: inline-block; border: 2px solid var(--navy); color: var(--navy); padding: 10px 20px; font-weight: bold; border-radius: 30px; text-decoration: none; }

/* FOOTER */
.official-footer { background: #f9f9f9; padding: 60px 0 20px; border-top: 1px solid #ddd; }
.footer-content { display: flex; flex-direction: column; gap: 40px; }
.footer-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.fl-col h4 { color: var(--navy); margin: 0 0 20px 0; font-size: 16px; }
.fl-col a { display: block; color: #555; text-decoration: none; margin-bottom: 10px; font-size: 14px; }
.fl-col a:hover { color: var(--navy); text-decoration: underline; }
.footer-bottom { border-top: 1px solid #ddd; padding-top: 20px; text-align: center; color: #777; font-size: 12px; }

@media(max-width: 768px) {
  .hero-inner { flex-direction: column; text-align: center; }
  .hero-image { width: 100%; }
  .track-form-official { flex-direction: column; }
  .btn-navy-solid { padding: 15px; }
  .quick-tools { grid-template-columns: 1fr; }
  .pq-inputs, .pq-weights, .footer-links { grid-template-columns: 1fr; }
  .pq-footer { flex-direction: column; gap: 20px; }
}

/* ==========================================================================
   MODERN HOME PAGE STYLES
   ========================================================================== */
:root {
  --navy: #002855;
  --yellow: #ffcc22;
  --yellow-hover: #e6b800;
  --bg-body: #f4f7fa;
}

body { margin: 0; background: var(--bg-body); font-family: 'Space Grotesk', system-ui, sans-serif; color: var(--navy); }
* { box-sizing: border-box; }

.container-modern { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* TOP BAR */
.top-bar-modern { background: #fff; border-bottom: 1px solid #e1e7f0; font-size: 13px; font-weight: 700; }
.top-bar-inner { display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: 0 auto; padding: 0 20px; height: 44px; }
.top-bar-left { display: flex; gap: 24px; }
.top-bar-left a { color: #76879c; text-decoration: none; text-transform: uppercase; position: relative; display: flex; align-items: center; height: 44px; }
.top-bar-left a.active { color: var(--navy); }
.top-bar-left a.active::after { content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 3px; background: var(--yellow); }
.top-bar-right { display: flex; align-items: center; gap: 24px; }
.search-box-modern { display: flex; align-items: center; background: #f4f7fa; border-radius: 20px; padding: 6px 16px; }
.search-box-modern input { border: none; background: transparent; outline: none; font-size: 13px; font-family: 'Space Grotesk'; width: 160px; }
.btn-text { color: var(--navy); text-decoration: none; text-transform: uppercase; }

/* HEADER */
.header-modern { background: #fff; position: sticky; top: 0; z-index: 100; box-shadow: 0 4px 20px rgba(0,40,85,0.05); }
.header-inner { max-width: 1200px; margin: 0 auto; padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--navy); text-decoration: none; }
.brand-symbol { width: 44px; height: 44px; }
.brand-word { font-size: 28px; font-weight: 800; font-style: italic; letter-spacing: -1px; }

/* NOTICE */
.notice-modern { background: #001a38; color: #fff; text-align: center; padding: 12px 20px; font-size: 13px; font-weight: 600; display: flex; justify-content: center; gap: 12px; align-items: center; flex-wrap: wrap; }
.notice-modern a { color: var(--yellow); }

/* HERO */
.hero-modern { max-width: 1200px; margin: 40px auto; padding: 0 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.hero-content { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.badge-novedad { background: #e8f5ec; color: #237b4f; font-weight: 800; font-size: 12px; padding: 6px 12px; border-radius: 6px; letter-spacing: 1px; }
.hero-content h1 { font-size: clamp(40px, 4vw, 56px); line-height: 1.1; margin: 0; font-weight: 800; letter-spacing: -2px; }
.hero-content p { font-size: 18px; color: #4a5568; margin: 0; line-height: 1.5; }
.hero-price { font-size: 20px; color: #4a5568; }
.hero-price strong { font-size: 32px; color: var(--navy); font-weight: 800; }
.hero-image-wrapper { border-radius: 24px; overflow: hidden; box-shadow: 0 24px 48px rgba(0,40,85,0.12); height: 400px; }
.hero-image-wrapper img { width: 100%; height: 100%; object-fit: cover; }

/* TRACKING */
.tracking-section-modern { max-width: 800px; margin: 0 auto 60px; padding: 0 20px; }
.tracking-card { background: #fff; border-radius: 24px; padding: 40px; box-shadow: 0 20px 40px rgba(0,40,85,0.08); text-align: center; border: 1px solid #e1e7f0; }
.tracking-card h2 { font-size: 32px; margin: 0 0 12px; font-weight: 800; letter-spacing: -1px; }
.tracking-card p { color: #76879c; margin: 0 0 24px; font-size: 16px; }
.track-form-modern { display: flex; gap: 12px; }
.track-form-modern input { flex: 1; height: 56px; border: 2px solid #cbd5e1; border-radius: 12px; padding: 0 20px; font-size: 16px; font-family: 'Space Grotesk'; outline: none; transition: 0.2s; }
.track-form-modern input:focus { border-color: var(--navy); }
.btn-primary { height: 56px; background: var(--navy); color: #fff; border: none; padding: 0 32px; border-radius: 12px; font-size: 16px; font-weight: 800; cursor: pointer; transition: 0.2s; font-family: 'Space Grotesk'; }
.btn-primary:hover { background: #001a38; transform: translateY(-2px); }

/* QUICK LINKS */
.quick-links-modern { margin-bottom: 60px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card-link { background: #fff; border: 1px solid #e1e7f0; border-radius: 20px; padding: 32px; text-decoration: none; color: var(--navy); transition: 0.3s; display: flex; flex-direction: column; gap: 12px; }
.card-link:hover { border-color: var(--navy); transform: translateY(-4px); box-shadow: 0 12px 24px rgba(0,40,85,0.06); }
.card-icon { font-size: 32px; background: #f4f7fa; width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; }
.card-link h3 { margin: 0; font-size: 20px; font-weight: 800; }
.card-link p { margin: 0; color: #76879c; font-size: 14px; line-height: 1.5; }

/* CALCULATOR */
.calculator-section { margin-bottom: 80px; }
.calculator-card { background: #fff; border-radius: 24px; padding: 40px; box-shadow: 0 20px 40px rgba(0,40,85,0.08); border: 1px solid #e1e7f0; }
.calc-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; }
.calc-header h2 { font-size: 32px; margin: 0; font-weight: 800; letter-spacing: -1px; }
.price-tag { background: #fffdf5; border: 1px solid #fce8a1; color: #b78700; font-weight: 800; padding: 8px 16px; border-radius: 8px; font-size: 14px; }

.radio-cards-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 32px; }
.radio-card { cursor: pointer; position: relative; }
.radio-card input { position: absolute; opacity: 0; }
.rc-inner { border: 2px solid #cbd5e1; border-radius: 12px; padding: 20px; display: flex; align-items: center; gap: 12px; font-weight: 700; color: #76879c; transition: 0.2s; font-size: 16px; }
.rc-icon { font-size: 24px; }
.radio-card input:checked + .rc-inner { border-color: var(--navy); background: #f8fbff; color: var(--navy); }

.input-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 32px; }
.input-group { display: flex; flex-direction: column; gap: 8px; }
.input-group label { font-size: 13px; font-weight: 700; color: var(--navy); }
.input-group input, .input-group select { height: 56px; border: 1px solid #cbd5e1; border-radius: 12px; padding: 0 16px; font-size: 15px; font-family: 'Space Grotesk'; outline: none; background: #fff; }
.input-group input:focus, .input-group select:focus { border-color: var(--navy); }
.disabled-input { background: #f4f7fa !important; color: #76879c !important; cursor: not-allowed; }

.weight-section { margin-bottom: 32px; }
.weight-section label { display: block; font-size: 13px; font-weight: 700; color: var(--navy); margin-bottom: 12px; }
.weight-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.weight-btn { height: 56px; border: 1px solid #cbd5e1; background: #fff; border-radius: 12px; font-family: 'Space Grotesk'; font-size: 14px; font-weight: 700; color: #76879c; cursor: pointer; transition: 0.2s; }
.weight-btn.active { border-color: var(--navy); background: var(--navy); color: #fff; }

.btn-large { width: 100%; height: 64px; font-size: 18px; }

/* FOOTER */
.footer-modern { background: #001a38; color: #fff; padding: 80px 0 40px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; margin-bottom: 60px; }
.footer-col h4 { margin: 0 0 24px; font-size: 16px; color: var(--yellow); }
.footer-col a { display: block; color: #a0aec0; text-decoration: none; margin-bottom: 12px; font-size: 14px; transition: 0.2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 40px; text-align: center; color: #76879c; font-size: 12px; }

@media(max-width: 768px) {
  .top-bar-modern { display: none; }
  .hero-modern { grid-template-columns: 1fr; gap: 32px; margin: 32px auto; }
  .hero-image-wrapper { height: 300px; }
  .track-form-modern { flex-direction: column; }
  .grid-3 { grid-template-columns: 1fr; }
  .input-grid { grid-template-columns: 1fr; gap: 16px; }
  .weight-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================================
   DEMO PAGO STYLES (DO NOT DELETE - NEEDED FOR PAGO.HTML)
   ========================================================================== */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.notice{min-height:34px;background:#091e41;color:#fff;display:flex;align-items:center;justify-content:center;gap:9px;padding:7px 20px;font-size:11px;font-weight:600;letter-spacing:.01em;text-align:center}

.payment-demo-section { background: #f4f7fa; min-height: 100vh; padding-bottom: 60px; font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif; }

.payment-main-content { padding: 40px 20px; display: flex; flex-direction: column; gap: 24px; max-width: 600px; margin: 0 auto; width: 100%; }

/* --- STEPS (Paso 1, 2, 3) --- */
.escrow-steps-container { background: #fff; border: 1px solid #e1e7f0; border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 20px; box-shadow: 0 10px 30px rgba(0, 40, 85, 0.05); }
.escrow-title { font-size: 14px; color: var(--navy); margin: 0 0 8px 0; text-align: center; text-transform: uppercase; letter-spacing: 1px; font-weight: 800; }
.escrow-step { display: flex; gap: 16px; position: relative; padding-bottom: 20px; }
.escrow-step:not(:last-child)::after { content: ''; position: absolute; left: 19px; top: 40px; bottom: -4px; width: 2px; background: #e1e7f0; transition: 0.3s; }
.escrow-icon { width: 40px; height: 40px; background: #f8f9fa; border: 2px solid #e1e7f0; border-radius: 50%; display: grid; place-items: center; font-size: 16px; flex-shrink: 0; position: relative; z-index: 2; color: #a0aec0; transition: 0.3s; }
.escrow-step.active .escrow-icon { background: var(--yellow); border-color: var(--yellow); color: var(--navy); box-shadow: 0 0 15px rgba(255, 204, 0, 0.4); }
.escrow-step.active ~ .escrow-step:not(:last-child)::after { background: #e1e7f0; }
.escrow-text { padding-top: 6px; }
.escrow-text strong { display: block; font-size: 15px; color: var(--navy); margin-bottom: 6px; }
.escrow-text p { margin: 0; font-size: 13px; color: #64748b; line-height: 1.5; }

.payment-title { font-size: 20px; font-weight: 800; text-align: center; color: var(--navy); margin: 10px 0; line-height: 1.3; }

/* --- PAYMENT CARDS --- */
.payment-method-card { background: #fff; border: 1px solid #e1e7f0; border-radius: 16px; margin-bottom: 16px; overflow: hidden; transition: 0.3s; }
.payment-method-card.disabled { opacity: 0.6; filter: grayscale(1); }
.payment-method-card.active { border: 2px solid var(--navy); box-shadow: 0 15px 35px rgba(0, 40, 85, 0.1); }
.pulse-glow { animation: pulseBorder 2s infinite; }
@keyframes pulseBorder { 0% { box-shadow: 0 0 0 0 rgba(0, 40, 85, 0.2); } 70% { box-shadow: 0 0 0 10px rgba(0, 40, 85, 0); } 100% { box-shadow: 0 0 0 0 rgba(0, 40, 85, 0); } }

.pm-header { padding: 20px; display: flex; align-items: center; gap: 16px; position: relative; cursor: pointer; }
.pm-icon { width: 48px; height: 48px; background: #f4f7fa; border-radius: 12px; display: grid; place-items: center; font-size: 24px; color: var(--navy); }
.pm-icon.logo-icon { background: var(--navy); color: var(--yellow); padding: 8px; }
.pm-info { flex: 1; }
.pm-info strong { display: block; font-size: 16px; color: var(--navy); margin-bottom: 4px; }
.text-red { color: #e53e3e; font-size: 12px; font-weight: 600; }
.text-muted { color: #718096; font-size: 13px; }
.badge-disponible { position: absolute; top: 24px; right: 20px; background: #c6f6d5; color: #22543d; font-size: 10px; font-weight: 800; padding: 4px 10px; border-radius: 6px; letter-spacing: 0.5px; }

/* --- DETAILS INSIDE ACTIVE CARD --- */
.pm-details { padding: 24px; border-top: 1px solid #e1e7f0; background: #fafafc; }
.detail-group { margin-bottom: 20px; }
.detail-group label { display: block; font-size: 11px; color: #718096; font-weight: 700; text-transform: uppercase; margin-bottom: 6px; letter-spacing: 0.5px; }
.detail-group strong { display: block; font-size: 15px; color: var(--navy); }
.badge-req { background: #fee2e2; color: #c53030; font-size: 9px; padding: 2px 6px; border-radius: 4px; margin-left: 6px; vertical-align: middle; }
.text-sm { display: block; font-size: 12px; color: #a0aec0; margin-top: 4px; font-style: italic; }

/* --- IBAN BOX --- */
.iban-display { display: flex; justify-content: space-between; align-items: center; background: #fff; border: 1px solid #cbd5e1; padding: 12px 16px; border-radius: 8px; font-family: monospace; font-size: 16px; letter-spacing: 1px; color: var(--navy); box-shadow: inset 0 2px 4px rgba(0,0,0,0.02); }
.copy-btn { background: none; border: none; font-size: 18px; cursor: pointer; color: #718096; transition: 0.2s; padding: 4px; border-radius: 4px; }
.copy-btn:hover { color: var(--navy); background: #e2e8f0; }

/* --- PRICING --- */
.modern-pricing { background: #fff; border: 1px dashed #cbd5e1; padding: 20px; border-radius: 12px; margin: 24px 0; }
.price-row { display: flex; justify-content: space-between; font-size: 14px; color: #4a5568; margin-bottom: 12px; }
.highlight-total { margin-top: 16px; padding-top: 16px; border-top: 2px solid #e2e8f0; font-size: 18px; font-weight: 800; color: var(--navy); }

/* --- WARNING --- */
.elegant-warning { background: #fffaf0; border-left: 4px solid #ed8936; padding: 16px 20px; border-radius: 0 8px 8px 0; margin-bottom: 30px; font-size: 13px; color: #7b341e; line-height: 1.5; }
.elegant-warning strong { color: #dd6b20; }

/* --- UPLOAD --- */
.modern-upload { border: 2px dashed #cbd5e1; background: #fff; border-radius: 12px; padding: 30px 20px; text-align: center; transition: 0.3s; cursor: pointer; }
.modern-upload:hover { border-color: var(--navy); background: #f8fbff; }
.file-upload-label { cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.upload-icon { font-size: 32px; margin-bottom: 8px; }
.file-upload-label strong { color: var(--navy); font-size: 16px; }
.upload-sub { color: #a0aec0; font-size: 12px; }
.file-upload-box input[type="file"] { display: none; }
.receipt-status { margin-top: 12px; font-size: 13px; font-weight: 600; text-align: center; min-height: 20px; color: #38a169; }

/* --- RADIOS & CHECKBOXES --- */
.modern-radio { margin: 24px 0; display: flex; justify-content: space-between; align-items: center; background: #fff; padding: 16px; border-radius: 8px; border: 1px solid #e2e8f0; }
.modern-radio strong { font-size: 14px; color: var(--navy); }
.radio-group { display: flex; gap: 20px; }
.radio-group label { font-size: 14px; font-weight: 600; color: #4a5568; cursor: pointer; }

.modern-checkbox { margin-bottom: 24px; text-align: center; }
.modern-checkbox label { font-size: 13px; color: #718096; cursor: pointer; }
.modern-checkbox a { color: var(--navy); text-decoration: underline; font-weight: 600; }

/* --- CONFIRM BTN --- */
.premium-btn { width: 100%; background: var(--navy); color: #fff; border: none; padding: 18px; border-radius: 12px; font-size: 16px; font-weight: 800; letter-spacing: 1px; cursor: pointer; transition: 0.3s; box-shadow: 0 10px 20px rgba(0, 40, 85, 0.2); }
.premium-btn:hover { background: #001a38; transform: translateY(-2px); box-shadow: 0 15px 25px rgba(0, 40, 85, 0.3); }
.premium-btn:active { transform: translateY(0); }

.footer-demo-text { text-align: center; font-size: 11px; color: #a0aec0; margin-top: 20px; line-height: 1.6; }

/* --- CHAT --- */
.chat-fab { position: fixed; bottom: 20px; right: 20px; width: 60px; height: 60px; background: var(--yellow); border: none; border-radius: 50%; font-size: 28px; box-shadow: 0 4px 15px rgba(0,0,0,0.2); cursor: pointer; z-index: 1000; transition: transform 0.2s; display: grid; place-items: center; }
.chat-fab:hover { transform: scale(1.1); }
.chat-window { position: fixed; bottom: 90px; right: 20px; width: 340px; height: 450px; background: #fff; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,0.15); display: flex; flex-direction: column; z-index: 1000; overflow: hidden; border: 1px solid #e1e7f0; }
.chat-header { background: var(--navy); color: #fff; padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; }
.chat-header-info { display: flex; align-items: center; gap: 10px; }
.chat-avatar { font-size: 24px; background: rgba(255,255,255,0.1); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; }
.chat-header-info strong { display: block; font-size: 15px; }
.chat-header-info span { font-size: 12px; color: #a0aec0; }
.chat-close { background: none; border: none; color: #fff; font-size: 24px; cursor: pointer; padding: 0; line-height: 1; }
.chat-messages { flex: 1; padding: 20px; overflow-y: auto; background: #f8fafc; display: flex; flex-direction: column; gap: 15px; }
.chat-msg { max-width: 85%; padding: 12px 16px; border-radius: 12px; font-size: 14px; line-height: 1.4; }
.chat-msg.bot { background: #fff; color: var(--navy); border: 1px solid #e2e8f0; border-bottom-left-radius: 4px; align-self: flex-start; box-shadow: 0 2px 5px rgba(0,0,0,0.02); }
.chat-msg.user { background: var(--navy); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.chat-input-area { padding: 15px; background: #fff; border-top: 1px solid #e2e8f0; display: flex; gap: 10px; }
.chat-input-area input { flex: 1; border: 1px solid #cbd5e1; border-radius: 20px; padding: 10px 15px; font-size: 14px; outline: none; }
.chat-input-area input:focus { border-color: var(--navy); }
.chat-input-area button { background: var(--navy); color: #fff; border: none; width: 40px; height: 40px; border-radius: 50%; font-size: 16px; cursor: pointer; display: grid; place-items: center; transition: 0.2s; }
.chat-input-area button:hover { background: var(--yellow); color: var(--navy); }

@media(max-width: 600px) {
  .chat-window { width: 100vw; height: 100vh; bottom: 0; right: 0; border-radius: 0; z-index: 9999; }
  .chat-fab { bottom: 20px; right: 20px; z-index: 9998; }
}

/* --- TOP BAR (Competitor style) --- */
.top-bar { background: #fff; border-bottom: 1px solid #e1e7f0; font-size: 11px; font-weight: 700; }
.top-bar-inner { display: flex; justify-content: space-between; align-items: center; height: 36px; padding: 0 20px; }
.top-bar-left { display: flex; gap: 20px; }
.top-bar-left a { color: #506480; text-decoration: none; text-transform: uppercase; letter-spacing: 0.5px; position: relative; height: 36px; display: flex; align-items: center; }
.top-bar-left a.active { color: var(--navy); }
.top-bar-left a.active::after { content: ''; position: absolute; bottom: -1px; left: 0; width: 100%; height: 2px; background: var(--yellow); }
.top-bar-right { display: flex; align-items: center; gap: 16px; }
.top-bar-right a { color: var(--navy); text-decoration: none; }
.search-box { display: flex; align-items: center; background: #f4f7fa; border-radius: 999px; padding: 4px 12px; }
.search-icon { font-size: 12px; margin-right: 6px; }
.search-box input { border: none; background: transparent; font-size: 11px; outline: none; width: 140px; }

/* --- PROMO BANNER --- */
.promo-banner { background: #fdfaf3; border-bottom: 1px solid #fce8a1; overflow: hidden; margin-bottom: 40px; }
.promo-inner { display: flex; align-items: center; justify-content: space-between; padding: 40px 20px; }
.promo-content { max-width: 500px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.promo-tag { background: #e8f5ec; color: #237b4f; font-size: 10px; font-weight: 800; padding: 4px 10px; border-radius: 4px; letter-spacing: 0.5px; }
.promo-content h2 { font-family: var(--display); font-size: 36px; line-height: 1.1; margin: 0; color: var(--navy); letter-spacing: -1px; }
.promo-content p { font-size: 16px; color: var(--muted); margin: 0; }
.promo-content strong { color: var(--navy); }
.promo-image { width: 400px; height: 260px; border-radius: 16px; overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
.promo-image img { width: 100%; height: 100%; object-fit: cover; }

/* --- BREATHING (PULSE) ANIMATIONS --- */
@keyframes breathe {
  0% { transform: scale(1); box-shadow: 0 0 0 rgba(255, 204, 0, 0.4); }
  50% { transform: scale(1.02); box-shadow: 0 0 20px rgba(255, 204, 0, 0.6); }
  100% { transform: scale(1); box-shadow: 0 0 0 rgba(255, 204, 0, 0.4); }
}
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}
.btn-primary, .btn-yellow-solid, .premium-btn {
  animation: breathe 3s infinite ease-in-out;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.btn-primary:hover, .btn-yellow-solid:hover, .premium-btn:hover {
  animation: none;
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 15px 30px rgba(0, 40, 85, 0.3);
}
.tracking-card, .calculator-card, .payment-method-card.active, .hero-image-wrapper, .promo-image {
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}
.tracking-card:hover, .calculator-card:hover, .payment-method-card.active:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(0, 40, 85, 0.15);
}
.hero-image-wrapper, .promo-image {
  animation: float 6s infinite ease-in-out;
}

/* --- QUICK LINKS --- */
.quick-links { margin-bottom: 60px; }
.quick-links-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quick-link-card { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid #e1e7f0; padding: 24px; border-radius: 12px; text-decoration: none; color: var(--navy); transition: 0.2s; box-shadow: 0 4px 12px rgba(16,43,89,0.02); }
.quick-link-card:hover { border-color: var(--navy); transform: translateY(-2px); box-shadow: 0 12px 24px rgba(16,43,89,0.08); }
.ql-icon { width: 48px; height: 48px; background: #f4f7fa; border-radius: 50%; display: grid; place-items: center; font-size: 24px; flex-shrink: 0; }
.quick-link-card strong { font-size: 15px; line-height: 1.3; }

/* --- COMPLEX FORM (Competitor Clone) --- */
.complex-form { display: flex; flex-direction: column; gap: 24px; margin-top: 24px; }
.radio-group-modern { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.radio-card { position: relative; cursor: pointer; }
.radio-card input { position: absolute; opacity: 0; }
.rc-content { display: block; text-align: center; padding: 16px; border: 1px solid #cbd5e1; border-radius: 8px; font-weight: 700; color: var(--muted); transition: 0.2s; }
.radio-card input:checked + .rc-content { border-color: var(--navy); background: #f8fbff; color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }

.input-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.input-col { display: flex; flex-direction: column; gap: 8px; }
.input-col label { font-size: 12px; font-weight: 700; color: var(--navy); }
.input-col input { border: 1px solid #cbd5e1; border-radius: 8px; padding: 0 16px; height: 48px; font-size: 14px; outline: none; transition: 0.2s; }
.input-col input:focus { border-color: var(--navy); }

.weight-selection p { font-size: 12px; font-weight: 700; color: var(--navy); margin: 0 0 12px 0; }
.weight-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.weight-card { position: relative; cursor: pointer; }
.weight-card input { position: absolute; opacity: 0; }
.weight-card span { display: block; text-align: center; padding: 12px 0; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 12px; font-weight: 700; color: var(--muted); transition: 0.2s; }
.weight-card input:checked + span { border-color: var(--navy); background: var(--navy); color: #fff; }

.btn-full { width: 100%; justify-content: center; height: 56px; font-size: 16px; }

@media(max-width: 900px) {
  .promo-inner { flex-direction: column; text-align: center; gap: 32px; padding: 40px 20px; }
  .promo-content { align-items: center; }
  .promo-image { width: 100%; height: auto; }
  .quick-links-grid { grid-template-columns: 1fr; }
  .top-bar { display: none; }
}
