/* ============================================================
   Relyo Landing Page — Estilos custom sobre Bootstrap 5
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --color-bg:            #ffffff;
  --color-block:         #fff5ef;
  --color-primary:       #e8660a;
  --color-primary-hover: #b84e04;
  --color-text:          #1a1a1a;
  --color-white:         #ffffff;
  --shadow-card:         0 4px 24px rgba(232,102,10,.10);
  --shadow-card-hover:   0 12px 40px rgba(232,102,10,.20);
  --radius-card:         16px;
}

* { box-sizing: border-box; }

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-size: 1rem;
  line-height: 1.7;
}

/* ── Navbar ─────────────────────────────────────────── */
#mainNavbar {
  transition: box-shadow .3s ease;
  border-bottom: 1px solid rgba(0,0,0,.06);
}
#mainNavbar.scrolled {
  box-shadow: 0 4px 24px rgba(232,102,10,.12) !important;
  border-bottom-color: transparent;
}
.nav-link { color: var(--color-text) !important; font-weight: 500; transition: color .2s; }
.nav-link:hover,
.nav-link.active,
.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active { color: var(--color-primary) !important; }

/* ── Botones ─────────────────────────────────────────── */
.btn-primary {
  /* variables internas de Bootstrap 5 */
  --bs-btn-color: #fff;
  --bs-btn-bg: #e8660a;
  --bs-btn-border-color: #e8660a;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #b84e04;
  --bs-btn-hover-border-color: #b84e04;
  --bs-btn-focus-shadow-rgb: 232, 102, 10;
  --bs-btn-active-bg: #b84e04;
  --bs-btn-active-border-color: #a34504;
  --bs-btn-disabled-bg: #e8660a;
  --bs-btn-disabled-border-color: #e8660a;
  background: linear-gradient(135deg, #b84e04 0%, #e8660a 100%);
  border: none;
  border-radius: 10px;
  font-weight: 600;
  transition: all .25s ease;
  box-shadow: 0 4px 14px rgba(232,102,10,.35);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-primary-hover) 0%, var(--color-primary) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232,102,10,.45);
}
.btn-outline-primary {
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  border-radius: 10px;
  font-weight: 600;
  transition: all .25s ease;
}
.btn-outline-primary:hover {
  background-color: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(232,102,10,.3);
}
.btn-light {
  border-radius: 10px;
  font-weight: 700;
  transition: all .25s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.18); }

/* ── Hero ────────────────────────────────────────────── */
#hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #1a0a00 0%, #7a3000 45%, #e8660a 75%, #f59e0b 100%);
  position: relative;
  overflow: hidden;
}
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 60% at 80% 20%, rgba(255,180,100,.12) 0%, transparent 60%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
#hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0; right: 0;
  height: 80px;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, #ffffff);
}

/* ── Secciones alternadas ────────────────────────────── */
.section-bg    { background-color: #ffffff; }
.section-block { background-color: var(--color-block); }

/* ── Línea decorativa superior en secciones block ─── */
.section-block {
  position: relative;
}

/* ── Cards ───────────────────────────────────────────── */
.feature-card {
  background: #fff;
  border-radius: var(--radius-card);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(232,102,10,.06);
  transition: transform .25s ease, box-shadow .25s ease;
  height: 100%;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(232,102,10,.15);
}
.feature-card .icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}

/* ── Ícono con fondo de color ─────────────────────── */
.icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(232,102,10,.12) 0%, rgba(245,158,11,.08) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

/* ── Grid de funcionalidades ─────────────────────────── */
.func-card {
  background: #fff;
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 2px 16px rgba(232,102,10,.08);
  border: 1px solid rgba(232,102,10,.06);
  transition: transform .2s ease, box-shadow .2s ease;
  height: 100%;
}
.func-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(232,102,10,.14);
  border-color: rgba(232,102,10,.15);
}
.func-card .func-icon { font-size: 1.8rem; margin-bottom: .75rem; }

/* ── Steps / Timeline ────────────────────────────────── */
.step-number {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #b84e04 0%, #e8660a 100%);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(232,102,10,.35);
}

/* ── Banda CTA ──────────────────────────────────────── */
.cta-band {
  background: linear-gradient(135deg, #3d1500 0%, #b84e04 60%, #e8660a 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 50% 80% at 90% 50%, rgba(255,255,255,.06) 0%, transparent 70%);
}

/* ── Mockup placeholders ─────────────────────────────── */
.img-placeholder {
  background: var(--color-block);
  border-radius: var(--radius-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #888;
  font-size: .85rem;
  text-align: center;
  border: 2px dashed rgba(232,102,10,.2);
  padding: 2rem;
}

/* ── Sección estadísticas ────────────────────────────── */
.stat-number {
  font-size: 3rem;
  font-weight: 900;
  color: var(--color-primary);
  line-height: 1;
  letter-spacing: -1px;
}

/* ── Planes de precios ───────────────────────────────── */
.plan-card {
  background: #fff;
  border-radius: 20px;
  padding: 2.5rem 2rem;
  box-shadow: 0 4px 24px rgba(0,0,0,.07);
  border: 1.5px solid rgba(232,102,10,.08);
  position: relative;
  transition: transform .25s ease, box-shadow .25s ease;
  height: 100%;
}
.plan-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(232,102,10,.18);
  border-color: rgba(232,102,10,.2);
}
.plan-card.plan-featured {
  border: 2px solid var(--color-primary);
  background: linear-gradient(160deg, #fff 60%, #fff5ef 100%);
  transform: scale(1.04);
  box-shadow: 0 8px 40px rgba(232,102,10,.18);
}
.plan-card.plan-featured:hover { transform: scale(1.04) translateY(-6px); }
.badge-popular {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #b84e04, #e8660a);
  color: #fff;
  padding: .35rem 1.2rem;
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(232,102,10,.4);
}

/* ── Tabla comparativa ───────────────────────────────── */
.compare-table th {
  background: linear-gradient(90deg, #b84e04, #e8660a);
  color: #fff;
}
.compare-table td, .compare-table th { padding: .9rem 1rem; vertical-align: middle; }
.compare-table tbody tr:nth-child(even) { background: rgba(232,102,10,.03); }
.compare-table tbody tr:hover { background: rgba(232,102,10,.06); }

/* ── Formularios ─────────────────────────────────────── */
.form-control, .form-select {
  border-radius: 10px;
  border: 1.5px solid #e2e8f0;
  padding: .7rem 1rem;
  transition: border-color .2s ease, box-shadow .2s ease;
  background: #fafbff;
}
.form-control:focus, .form-select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(232,102,10,.12);
  background: #fff;
}
.form-label { font-weight: 600; font-size: .9rem; color: #374151; }

/* ── Widget WhatsApp flotante ────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37,211,102,.45);
  transition: transform .2s ease, box-shadow .2s ease;
  text-decoration: none;
}
.whatsapp-float:hover {
  transform: scale(1.12);
  box-shadow: 0 8px 32px rgba(37,211,102,.6);
}
.whatsapp-float i { color: #fff; font-size: 1.7rem; }

/* ── Botón volver arriba ─────────────────────────────── */
.scroll-top {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 999;
  width: 48px;
  height: 48px;
  background: #e8660a;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.35);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .25s ease, visibility .25s ease, transform .25s ease, box-shadow .2s ease;
}
.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.scroll-top:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,.5);
  background: #b84e04;
}
.scroll-top i { color: #fff; font-size: 1.2rem; }

/* ── Accordion FAQ ───────────────────────────────────── */
.accordion-item {
  border: 1px solid rgba(232,102,10,.1) !important;
}
.accordion-button:not(.collapsed) {
  background-color: rgba(232,102,10,.06);
  color: var(--color-primary);
  font-weight: 600;
  box-shadow: none;
}
.accordion-button:focus { box-shadow: none; }
.accordion-button { font-weight: 500; }

/* ── Sección de testimonios ──────────────────────────── */
.testimonial-card {
  background: #fff;
  border-radius: var(--radius-card);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(232,102,10,.07);
  position: relative;
}
.testimonial-card::before {
  content: '\201C';
  font-size: 4rem;
  color: rgba(232,102,10,.12);
  font-family: Georgia, serif;
  line-height: 1;
  position: absolute;
  top: .5rem;
  left: 1.25rem;
}

/* ── Pill badge decorativo ───────────────────────────── */
.section-pill {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(232,102,10,.08);
  color: var(--color-primary);
  font-weight: 600;
  font-size: .82rem;
  padding: .3rem .9rem;
  border-radius: 50px;
  margin-bottom: 1rem;
  letter-spacing: .02em;
}

/* ── Utilidades ──────────────────────────────────────── */
.text-primary-brand { color: var(--color-primary) !important; }
.bg-primary-brand { background-color: var(--color-primary) !important; }
section { padding: 96px 0; }
.section-title {
  font-size: 2.1rem;
  font-weight: 800;
  margin-bottom: .75rem;
  letter-spacing: -.5px;
}
.section-subtitle {
  font-size: 1.05rem;
  color: #64748b;
  max-width: 640px;
  margin: 0 auto 3rem;
}

/* ── Phone mockup ────────────────────────────────────── */
.phone-frame {
  background: #1e1e2e;
  border-radius: 32px;
  padding: 10px 8px;
  box-shadow: 0 16px 48px rgba(0,0,0,.22), inset 0 0 0 1px rgba(255,255,255,.08);
  max-width: 180px;
}
.phone-frame img {
  border-radius: 24px;
  width: 100%;
  display: block;
}

/* ── Browser mockup ──────────────────────────────────── */
.browser-frame {
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0,0,0,.14);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.08);
}
.browser-bar {
  background: #e8e8e8;
  height: 30px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 6px;
  flex-shrink: 0;
}
.browser-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.browser-frame > img {
  width: 100%;
  display: block;
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 768px) {
  #hero { min-height: 100vh; padding: 100px 0 80px; }
  #hero::after { display: none; }
  .section-title { font-size: 1.6rem; }
  .stat-number { font-size: 2.2rem; }
  .plan-card.plan-featured { transform: scale(1); }
  section { padding: 72px 0; }
  .phone-frame { max-width: 150px; border-radius: 28px; }
  .phone-frame img { border-radius: 20px; }
  .browser-frame { border-radius: 10px; }
}

@media (max-width: 480px) {
  .phone-frame { max-width: 130px; border-radius: 24px; padding: 8px 6px; }
  .phone-frame img { border-radius: 18px; }
  #hero .browser-frame { border-radius: 8px; }
}
