/* FerreiQ Landing - Diseño moderno y responsive */

:root {
  --brand-50: #fffbeb;
  --brand-100: #fef3c7;
  --brand-200: #fde68a;
  --brand-300: #fcd34d;
  --brand-400: #fbbf24;
  --brand-500: #f59e0b; /* Primario */
  --brand-600: #d97706;
  --brand-700: #b45309;
  --brand-800: #92400e;
  --brand-900: #78350f;

  --bg: #0f172a; /* Azul oscuro */
  --bg-elev: #1e293b;
  --text: #e2e8f0; /* Texto más suave */
  --muted: #94a3b8;
  --card: #1e293b;
  --border: #334155;
  --success: #22c55e;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--brand-400); text-decoration: none; transition: color .2s; }
a:hover { color: var(--brand-300); }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-spaced { padding: 80px 0; }
.section-muted { background: #131c31; }
.section-title { margin: 0 0 24px; font-size: clamp(2rem, 5vw, 2.5rem); text-align: center; letter-spacing: -0.02em; }
.lead { color: var(--muted); font-size: clamp(1rem, 3vw, 1.125rem); max-width: 640px; margin: 0 auto 32px; text-align: center; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-logo { width: 36px; height: 36px; border-radius: 8px; }
.brand-name { font-weight: 700; font-size: 1.25rem; letter-spacing: -0.01em; }

.nav-toggle { display: none; background: transparent; border: 0; width: 40px; height: 40px; padding: 0; cursor: pointer; z-index: 10; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px auto; transition: .2s; }
.nav-list { display: flex; gap: 24px; list-style: none; padding: 0; margin: 0; }
.nav-list a { color: var(--muted); font-weight: 500; }
.nav-list a:hover { color: var(--text); }
.header-cta .btn { margin-left: 12px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 8px; border: 1px solid transparent; padding: 12px 20px; font-weight: 600; transition: all .2s; min-height: 48px; }
.btn-lg { padding: 16px 28px; font-size: 1.125rem; }
.btn-primary { background: var(--brand-500); color: var(--bg); box-shadow: 0 4px 14px rgba(251, 191, 36, 0.3); }
.btn-primary:hover { background: var(--brand-400); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(251, 191, 36, 0.4); }
.btn-secondary { background: var(--bg-elev); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { background: #334155; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--bg-elev); }
.w-100 { width: 100%; }

/* Hero */
.hero { position: relative; padding-top: 80px; text-align: center; }
.hero-copy h1 { font-size: clamp(2.5rem, 6vw, 3.75rem); line-height: 1.1; margin: 0 auto 16px; letter-spacing: -0.03em; font-weight: 800; max-width: 800px; }
.hero-copy .lead { max-width: 600px; }
.hero-cta { display: flex; gap: 16px; margin: 32px auto 24px; justify-content: center; }
.hero-badges { display: flex; gap: 16px; padding: 0; margin: 24px 0 0; list-style: none; color: var(--muted); justify-content: center; }

.hero-visual { margin-top: 64px; }
.device-card { position: relative; border-radius: 16px; background: linear-gradient(145deg, #1e293b, #131c31); border: 1px solid var(--border); padding: 24px; box-shadow: 0 20px 50px rgba(0,0,0,0.3); }
.device-card svg { border-radius: 8px; }

.trust { border-top: 1px solid var(--border); margin-top: 80px; }
.trust-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 24px; color: var(--muted); flex-wrap: wrap; }
.trust-logos { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.pill { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg-elev); color: var(--muted); font-size: 14px; }

/* Cards y grids */
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 24px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 24px; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.2); }
.card h3 { margin: 0 0 8px; font-size: 1.25rem; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); }

.diff .icon { font-size: 28px; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; background: var(--brand-500); color: var(--bg); margin-bottom: 16px; }

/* Features */
.features-grid .feature { transition: transform .2s, box-shadow .2s; }
.features-grid .feature:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(0,0,0,0.35); }

/* Pricing */
.pricing-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; flex-wrap: wrap; }
.billing-toggle { display: inline-flex; padding: 4px; border: 1px solid var(--border); border-radius: 12px; background: #131318; }
.toggle-btn { border: 0; padding: 8px 12px; background: transparent; color: var(--muted); font-weight: 600; border-radius: 10px; cursor: pointer; }
.toggle-btn.active { background: #1b1b21; color: var(--text); box-shadow: inset 0 0 0 1px var(--border); }
/* Pricing Launch */
.pricing-launch-card {
  background: linear-gradient(145deg, #1e293b, #131c31);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 48px;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}
.launch-badge {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand-500);
  color: var(--bg);
  padding: 8px 24px;
  font-weight: 700;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}
.pricing-launch-card .section-title { margin-top: 32px; }
.price-container {
  margin: 32px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.original-price {
  font-size: 1.5rem;
  color: var(--muted);
  text-decoration: line-through;
}
.final-price {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--brand-400);
}
.period { color: var(--muted); }
.launch-features {
  list-style: none;
  padding: 0;
  margin: 32px 0;
  display: inline-block;
  text-align: left;
  color: var(--muted);
  line-height: 2;
}
.note { color: var(--muted); font-size: 14px; margin-top: 24px; text-align: center; }

/* Testimonials */
.quote p { margin: 0 0 12px; font-size: 1.125rem; }
.quote footer { color: var(--muted); font-style: italic; }

/* FAQ */
.faq { max-width: 720px; margin: 0 auto; }
.faq details { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 16px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.5rem; } 
details[open] summary::after { content: '−'; }
.faq p { color: var(--muted); margin-top: 12px; padding-left: 8px; border-left: 2px solid var(--brand-500); }

/* Formulario */
.subscribe-form .form-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.subscribe-form .form-group label { display: block; font-weight: 600; margin-bottom: 8px; }
.subscribe-form input { width: 100%; background: var(--bg-elev); color: var(--text); border: 1px solid var(--border); border-radius: 8px; padding: 14px; line-height: 1.4; font-size: 1rem; }
.subscribe-form input:focus { border-color: var(--brand-400); box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.2); outline: none; }
.subscribe-form .error { color: #f87171; min-height: 18px; display: block; margin-top: 6px; font-size: 0.875rem; }
.actions-row { display: flex; align-items: center; gap: 16px; margin-top: 24px; }
.status { color: var(--muted); font-size: 14px; }
.status.error { color: #f87171; }

.form-group-checkbox { display: none; /* Oculto por defecto */ }

.notice { background: var(--bg-elev); padding: 12px; border-radius: 8px; margin: 24px 0; font-size: 0.875rem; color: var(--muted); }

/* Spinner */
.spinner { animation: rotate 2s linear infinite; width: 20px; height: 20px; }
.spinner .path { stroke: currentColor; stroke-linecap: round; animation: dash 1.5s ease-in-out infinite; }
@keyframes rotate { 100% { transform: rotate(360deg); } }
@keyframes dash { 0% { stroke-dasharray: 1, 150; stroke-dashoffset: 0; } 50% { stroke-dasharray: 90, 150; stroke-dashoffset: -35; } 100% { stroke-dasharray: 90, 150; stroke-dashoffset: -124; } }

/* Reveal animations */
.will-reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease-out, transform .6s ease-out; }
.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .will-reveal { transition: none; transform: none !important; opacity: 1 !important; }
}

/* Responsive */
:focus-visible { outline: 2px solid var(--brand-400); outline-offset: 2px; border-radius: 8px; }

@media (min-width: 640px) {
  .subscribe-form .form-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 980px) {
  .grid-hero { grid-template-columns: 1fr 1fr; gap: 48px; text-align: left; }
  .hero-copy .lead { margin-left: 0; text-align: left; }
  .hero-cta, .hero-badges { justify-content: flex-start; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .section-title, .lead { text-align: center; margin-left: auto; margin-right: auto; }
  .trust-inner, .pricing-head { justify-content: space-between; }
  .trust-logos, .trust-inner { flex-wrap: nowrap; }
}

/* --- Inicio: Nuevo Menú Dropdown Móvil --- */
@media (max-width: 720px) {
  .section-spaced { padding: 64px 0; }
  .hero { padding-top: 48px; }

  .site-header {
    position: sticky;
    top: 0;
    z-index: 100;
  }

  .nav-toggle {
    display: inline-block;
  }

  .nav-list {
    display: none; /* Oculto por defecto */
    position: absolute;
    top: 68px; /* Justo debajo del header */
    left: 0;
    right: 0;
    background: #1e293b; /* Color de fondo sólido */
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  }

  .nav-list.open {
    display: flex; /* Visible al hacer clic */
  }

  .nav-list a {
    padding: 12px;
    display: block;
    border-radius: 8px;
  }
  .nav-list a:hover {
    background: #334155;
  }

  .header-cta {
    display: none;
  }

  /* Mostrar enlaces extras en menú móvil */
  .nav-list .only-mobile { display: block; }
  .nav-list .only-mobile a { font-weight: 600; color: var(--text); }
  .nav-list .only-mobile a.btn { width: 100%; }
}
/* --- Fin: Nuevo Menú Dropdown Móvil --- */
