/* ==========================================================================
   PBERRIO - Estilos de Página de Pre-Registro (Puerto Berrío, Antioquia)
   ========================================================================== */

:root {
  --color-primary: #0052ff;
  --color-primary-hover: #0043d4;
  --color-primary-light: #eaf1ff;
  --color-accent-orange: #ff5400;
  --color-dark: #0f172a;
  --color-slate-800: #1e293b;
  --color-slate-600: #475569;
  --color-slate-400: #94a3b8;
  --color-slate-200: #e2e8f0;
  --color-slate-100: #f1f5f9;
  --color-white: #ffffff;
  --color-success: #10b981;
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-bg-darker: rgba(255, 255, 255, 0.88);
  --glass-border: rgba(255, 255, 255, 0.9);
  --glass-shadow: 0 20px 50px -10px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.7) inset;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 30px;
  --radius-full: 9999px;
  
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset y caja */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-dark);
  background-color: #f8fafc;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   Fondos y Capas Visuales
   ========================================================================== */

.scenic-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: url('assets/bg-desktop.jpg');
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  z-index: -2;
  filter: brightness(0.98);
}

.backdrop-gradient-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0.88) 42%,
    rgba(255, 255, 255, 0.45) 60%,
    rgba(255, 255, 255, 0.05) 100%
  );
  z-index: -1;
  pointer-events: none;
}

/* Contenedor general */
.page-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 2rem;
}

/* ==========================================================================
   Header Superior
   ========================================================================== */

.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0 1.5rem;
  width: 100%;
}

.logo-container {
  display: flex;
  align-items: center;
}

.brand-logo {
  height: 64px;
  width: auto;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.brand-logo:hover {
  transform: scale(1.02);
}

.location-badge {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.badge-icon {
  color: var(--color-primary);
  width: 20px;
  height: 20px;
}

.location-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.location-city {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--color-dark);
}

.location-state {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--color-slate-600);
}

/* ==========================================================================
   Sección Principal (Hero)
   ========================================================================== */

.hero-section {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
  flex: 1;
  padding: 1rem 0 2rem;
}

.hero-left {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  max-width: 680px;
}

.mobile-location-pill,
.mobile-badge-tag {
  display: none;
}

.headline-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.main-title {
  font-family: var(--font-heading);
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--color-dark);
  letter-spacing: -0.03em;
}

.gradient-text {
  color: var(--color-primary);
  background: linear-gradient(135deg, #0052ff 0%, #0091ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.subtitle {
  font-size: 1.18rem;
  line-height: 1.55;
  color: var(--color-slate-600);
  font-weight: 400;
}

.subtitle strong {
  color: var(--color-dark);
  font-weight: 700;
}

/* ==========================================================================
   4 Pilares de Servicios
   ========================================================================== */

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}

.feature-card {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 1rem 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 82, 255, 0.12);
  border-color: rgba(0, 82, 255, 0.3);
}

.feature-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.6rem;
}

.car-bg {
  background: #e6efff;
  color: #0052ff;
}

.delivery-bg {
  background: #fff0eb;
  color: #ff5400;
}

.food-bg {
  background: #f1f5f9;
  color: #1e293b;
}

.package-bg {
  background: #eef2ff;
  color: #4338ca;
}

.feature-icon {
  width: 22px;
  height: 22px;
}

.feature-info h3 {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.25;
  margin-bottom: 0.2rem;
}

.feature-info p {
  font-size: 0.72rem;
  color: var(--color-slate-600);
  line-height: 1.2;
}

/* Ocultar mockup móvil en desktop */
.mobile-mockup-display {
  display: none;
}

/* ==========================================================================
   Tarjeta de Registro (Glassmorphism Waitlist Card)
   ========================================================================== */

.waitlist-card {
  background: var(--glass-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1.5px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.85rem 2rem;
  box-shadow: var(--glass-shadow);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.card-header {
  margin-bottom: 1.25rem;
}

.live-dot-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(0, 82, 255, 0.08);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.7rem;
}

.live-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-primary);
  box-shadow: 0 0 0 0 rgba(0, 82, 255, 0.7);
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(0, 82, 255, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(0, 82, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 82, 255, 0); }
}

.live-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-primary);
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--color-dark);
  line-height: 1.2;
  margin-bottom: 0.35rem;
}

.highlight-blue {
  color: var(--color-primary);
}

.card-subtitle {
  font-size: 0.92rem;
  color: var(--color-slate-600);
  line-height: 1.45;
}

/* ==========================================================================
   Formulario e Inputs
   ========================================================================== */

#waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.input-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-slate-800);
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--color-white);
  border: 1.5px solid var(--color-slate-200);
  border-radius: var(--radius-md);
  padding: 0 1rem;
  height: 50px;
  transition: var(--transition);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.input-wrapper:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(0, 82, 255, 0.15);
}

.input-icon {
  width: 18px;
  height: 18px;
  color: var(--color-slate-400);
  margin-right: 0.75rem;
  flex-shrink: 0;
}

.input-wrapper input {
  width: 100%;
  height: 100%;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-dark);
  background: transparent;
}

.input-wrapper input::placeholder {
  color: var(--color-slate-400);
}

/* Teléfono WhatsApp con prefijo colombiano */
.phone-wrapper {
  padding-left: 0.75rem;
}

.country-prefix {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding-right: 0.6rem;
  margin-right: 0.6rem;
  border-right: 1.5px solid var(--color-slate-200);
  user-select: none;
}

.country-prefix .flag {
  font-size: 1.15rem;
}

.country-prefix .code {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-slate-800);
}

.field-error {
  font-size: 0.75rem;
  color: #dc2626;
  min-height: 1rem;
  padding-left: 0.25rem;
  display: none;
}

.field-error.active {
  display: block;
}

/* Botón CTA */
.cta-button {
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-md);
  height: 52px;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  cursor: pointer;
  box-shadow: 0 10px 25px -5px rgba(0, 82, 255, 0.45);
  transition: var(--transition);
  margin-top: 0.3rem;
}

.cta-button:hover {
  background: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -4px rgba(0, 82, 255, 0.55);
}

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

.btn-icon {
  width: 20px;
  height: 20px;
  transition: transform 0.2s ease;
}

.cta-button:hover .btn-icon {
  transform: translateX(4px);
}

.btn-spinner {
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Nota de Privacidad */
.privacy-note {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1rem;
  font-size: 0.78rem;
  color: var(--color-slate-600);
  line-height: 1.35;
}

.privacy-icon {
  width: 17px;
  height: 17px;
  color: var(--color-success);
  flex-shrink: 0;
}

/* ==========================================================================
   Estado de Éxito
   ========================================================================== */

.success-box {
  text-align: center;
  padding: 1.5rem 0.5rem;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.success-icon-wrapper {
  width: 60px;
  height: 60px;
  background: #dcfce7;
  color: var(--color-success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.success-icon {
  width: 34px;
  height: 34px;
}

.success-title {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--color-dark);
  margin-bottom: 0.5rem;
}

.success-desc {
  font-size: 0.95rem;
  color: var(--color-slate-600);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.success-share {
  background: rgba(0, 82, 255, 0.05);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1.25rem;
}

.share-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-slate-800);
  margin-bottom: 0.75rem;
}

.share-wa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #25d366;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-full);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.35);
  transition: var(--transition);
}

.share-wa-btn:hover {
  background: #20bd5a;
  transform: translateY(-2px);
}

.wa-icon {
  width: 18px;
  height: 18px;
}

.secondary-btn {
  background: transparent;
  border: 1px solid var(--color-slate-200);
  color: var(--color-slate-600);
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}

.secondary-btn:hover {
  background: var(--color-slate-100);
  color: var(--color-dark);
}

/* ==========================================================================
   Columna Derecha (Hero Mockup)
   ========================================================================== */

.hero-right {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.mockup-frame {
  position: relative;
  width: 100%;
  max-width: 540px;
  display: flex;
  justify-content: center;
}

.hero-desktop-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.25);
  transition: transform 0.4s ease;
  object-fit: cover;
}

.hero-desktop-img:hover {
  transform: translateY(-6px) scale(1.01);
}

/* Floating Pills */
.floating-pill {
  position: absolute;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-full);
  padding: 0.65rem 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  animation: float 4s ease-in-out infinite;
}

.app-status-pill {
  top: 8%;
  left: -8%;
}

.towns-pill {
  bottom: 12%;
  right: -5%;
  animation-delay: 2s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.pulse-green {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-success);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-green-ring 2s infinite;
}

@keyframes pulse-green-ring {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.towns-icon {
  width: 20px;
  height: 20px;
  color: var(--color-primary);
}

.floating-pill strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  color: var(--color-dark);
}

.floating-pill span {
  font-size: 0.7rem;
  color: var(--color-slate-600);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.page-footer {
  margin-top: auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(226, 232, 240, 0.6);
}

.footer-content {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-slate-600);
}

/* ==========================================================================
   ADAPTACIÓN RESPONSIVA (Tablet y Móvil)
   ========================================================================== */

@media (max-width: 1100px) {
  .hero-section {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .hero-right {
    display: none;
  }

  .mobile-mockup-display {
    display: flex;
    justify-content: center;
    margin: 1rem 0;
  }

  .phone-mockup-img {
    max-width: 340px;
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.18);
  }

  .backdrop-gradient-overlay {
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.96) 0%,
      rgba(255, 255, 255, 0.92) 50%,
      rgba(255, 255, 255, 0.88) 100%
    );
  }
}

@media (max-width: 768px) {
  .page-wrapper {
    padding: 1rem 1.25rem;
  }

  .brand-logo {
    height: 52px;
  }

  .location-badge {
    display: none;
  }

  .mobile-location-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    align-self: center;
    background: rgba(0, 82, 255, 0.08);
    color: var(--color-primary);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-full);
  }

  .pill-icon {
    width: 14px;
    height: 14px;
  }

  .mobile-badge-tag {
    display: inline-block;
    align-self: center;
    font-family: var(--font-heading);
    font-size: 1.85rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    color: var(--color-primary);
    text-transform: uppercase;
    transform: rotate(-2deg);
    margin-bottom: 0.2rem;
  }

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

  .main-title {
    font-size: 2.2rem;
  }

  .subtitle {
    font-size: 1rem;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
  }

  .feature-card {
    padding: 0.85rem 0.6rem;
  }

  .waitlist-card {
    padding: 1.5rem 1.25rem;
    border-radius: var(--radius-md);
  }

  .card-title {
    font-size: 1.4rem;
  }

  .footer-content {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
}
