/* ═══════════════════════════════════════════════════════════════
   PORTAL VIAS3D — components.css
   Botones · Cards · Modal registro · Home sections · FAB
   v1.0 · Junio 2026
═══════════════════════════════════════════════════════════════ */

/* ── Botones generales ────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 20px;
  border-radius: var(--r-m);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all var(--t);
  white-space: nowrap;
}
.btn .mi { font-size: 16px; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none !important; }

.btn-primary {
  background: var(--orange);
  color: #fff;
}
.btn-primary:hover { background: var(--orange-h); transform: translateY(-1px); }

.btn-secondary {
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.85);
  border: 1px solid rgba(255,255,255,.15);
}
.btn-secondary:hover { background: rgba(255,255,255,.14); color: #fff; }

.btn-outline {
  background: transparent;
  color: var(--tx-dark);
  border: 1.5px solid var(--border-mid);
}
.btn-outline:hover { border-color: var(--orange); color: var(--orange); }

.btn-full { width: 100%; justify-content: center; }
.btn-lg { padding: 13px 28px; font-size: 14px; }
.btn-sm { padding: 6px 13px; font-size: 11px; }

/* ── Cards base ───────────────────────────────────────────────── */
#home-content .card, .modal .card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--r-l);
  padding: 18px;
  transition: all var(--t);
  box-shadow: var(--shadow-s);
}
#home-content .card, .modal .card-hover:hover {
  border-color: rgba(237,128,32,.25);
  box-shadow: 0 4px 16px rgba(237,128,32,.08);
  transform: translateY(-1px);
}

/* Card de acción (need-card) */
.need-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--r-m);
  padding: 13px 15px;
  cursor: pointer;
  transition: all var(--t);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.need-card:hover {
  border-color: rgba(237,128,32,.3);
  box-shadow: 0 2px 10px rgba(237,128,32,.08);
}
.need-card:last-child { margin-bottom: 0; }

.need-icon {
  width: 36px; height: 36px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}
.need-icon-orange  { background: rgba(237,128,32,.1);  color: var(--orange); }
.need-icon-blue    { background: rgba(59,112,216,.1);  color: #3b70d8; }
.need-icon-teal    { background: rgba(16,185,129,.1);  color: #10b981; }
.need-icon-purple  { background: rgba(102,7,196,.1);   color: var(--purple); }
.need-icon-green   { background: rgba(22,101,52,.1);   color: #16a34a; }
.need-icon-gray    { background: var(--surface3);      color: var(--tx-muted); }

.need-text h4 { font-size: 12px; font-weight: 700; color: var(--tx-dark); margin-bottom: 2px; }
.need-text p  { font-size: 11px; color: var(--tx-muted); line-height: 1.4; }

.need-arrow { margin-left: auto; color: var(--border-mid); font-size: 16px; transition: all var(--t); }
.need-card:hover .need-arrow { color: var(--orange); transform: translateX(3px); }

/* ── HOME — Hero section ──────────────────────────────────────── */
#home-content .hero {
  position: relative;
  background: var(--bg-dark2);
  overflow: hidden;
  padding: 48px 40px 52px;
  color: #fff;
}
#home-content .hero-bg {
  position: absolute; inset: 0; z-index: 0;
}
#home-content .hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover; opacity: .18;
}
#home-content .hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(13,14,16,.96) 0%, rgba(13,14,16,.75) 55%, rgba(102,7,196,.08));
}
#home-content .hero-inner {
  position: relative; z-index: 2;
  max-width: 620px;
}
#home-content .hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.09);
  padding: 4px 12px; border-radius: 20px;
  font-size: 9px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.45);
  margin-bottom: 18px;
}
#home-content .hero-eyebrow .bar { width: 3px; height: 11px; background: var(--gradient); border-radius: 2px; }

#home-content .hero h1 {
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.025em;
  color: #fff;
  margin-bottom: 12px;
}
#home-content .hero h1 em { font-style: normal; color: var(--orange); }

#home-content .hero-sub {
  font-size: 14px;
  color: var(--tx-dim);
  line-height: 1.7;
  max-width: 50ch;
  margin-bottom: 28px;
}

/* Search box hero */
#home-content .hero-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border-radius: 28px;
  padding: 0 20px;
  height: 50px;
  max-width: 520px;
  box-shadow: 0 6px 24px rgba(0,0,0,.2);
}
#home-content .hero-search .mi { color: var(--tx-muted); font-size: 20px; flex-shrink: 0; }
#home-content .hero-search input {
  flex: 1; border: none; outline: none;
  font-family: var(--font); font-size: 14px; font-weight: 500;
  color: var(--tx-dark); background: transparent;
}
#home-content .hero-search input::placeholder { color: var(--tx-muted); font-weight: 400; }

/* Hero variante con CTAs (para usuarios identificados) */
#home-content .hero-ctas { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
#home-content .hero-badge-24 {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(237,128,32,.15);
  border: 1px solid rgba(237,128,32,.25);
  padding: 4px 11px; border-radius: 20px;
  font-size: 10px; font-weight: 800;
  color: #ffc07a; letter-spacing: .05em;
  margin-bottom: 14px;
}
#home-content .hero-badge-24::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); animation: pulse 1.5s infinite; }

/* ── HOME — Sección ¿Qué necesitas? ──────────────────────────── */
.needs-section {
  background: var(--surface);
  padding: 40px;
}
.needs-section .section-title {
  font-size: 22px; font-weight: 800;
  color: var(--tx-dark); letter-spacing: -.02em;
  margin-bottom: 4px;
}
.needs-section .section-sub {
  font-size: 13px; color: var(--tx-muted);
  margin-bottom: 28px;
}

.needs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: start;
}

.needs-col-label {
  font-size: 10px; font-weight: 700;
  color: var(--tx-muted); text-transform: uppercase;
  letter-spacing: .08em; margin-bottom: 10px;
  display: flex; align-items: center; gap: 6px;
}
.needs-col-label .mi { font-size: 13px; text-transform: none; font-family: 'Material Icons Outlined'; }

/* Journey column — primer columna con fondo sutil */
.needs-col-journey .needs-col-intro {
  background: var(--surface2);
  border: 1px solid var(--border-light);
  border-radius: var(--r-m);
  padding: 11px 13px;
  font-size: 12px; color: var(--tx-muted);
  line-height: 1.6; margin-bottom: 8px;
}

/* ── HOME — Sección ¿Aún no eres cliente? ────────────────────── */
.prospect-section {
  background: var(--surface2);
  padding: 40px;
  border-top: 1px solid var(--border-light);
}
.prospect-section .section-title {
  font-size: 20px; font-weight: 800;
  color: var(--tx-dark); letter-spacing: -.02em;
  margin-bottom: 20px;
}

.prospect-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: var(--r-l);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-m);
}
.prospect-left {
  background: linear-gradient(135deg, #0f1523 0%, #1c2744 100%);
  padding: 28px 32px; color: #fff;
}
.prospect-left h3 { font-size: 17px; font-weight: 800; margin-bottom: 8px; line-height: 1.3; }
.prospect-left p  { font-size: 12px; color: var(--tx-dim); line-height: 1.7; margin-bottom: 20px; }
.prospect-left .btn-row { display: flex; gap: 8px; flex-wrap: wrap; }

.prospect-right {
  background: var(--surface);
  padding: 28px 32px;
  display: flex; flex-direction: column; gap: 11px; justify-content: center;
}
.prospect-benefit {
  font-size: 13px; color: var(--tx-dark); line-height: 1.5;
}
.prospect-benefit b { font-weight: 700; }
.prospect-benefit span { color: var(--tx-muted); }

/* ── HOME — Novedades y eventos ───────────────────────────────── */
.news-section {
  background: var(--surface);
  padding: 40px;
  border-top: 1px solid var(--border-light);
}
.news-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}
.news-header .section-title {
  font-size: 20px; font-weight: 800;
  color: var(--tx-dark); letter-spacing: -.02em;
}
.news-header .btn-ver-todo {
  background: var(--surface2);
  border: 1px solid var(--border-mid);
  padding: 6px 14px; border-radius: var(--r-s);
  font-size: 11px; font-weight: 700; color: var(--tx-mid);
  cursor: pointer; transition: all var(--t);
}
.news-header .btn-ver-todo:hover { border-color: var(--orange); color: var(--orange); }

.news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.news-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--r-m);
  padding: 16px;
  transition: all var(--t);
  cursor: pointer;
}
.news-card:hover { border-color: rgba(237,128,32,.2); box-shadow: var(--shadow-m); }
.news-tag {
  display: inline-block;
  padding: 2px 8px; border-radius: 4px;
  font-size: 9px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .06em;
  margin-bottom: 8px;
}
.news-tag-webinar   { background: #ede9fe; color: #6d28d9; }
.news-tag-taller    { background: #dcfce7; color: #15803d; }
.news-tag-lanzamiento { background: #fef9c3; color: #a16207; }
.news-tag-dassault  { background: #dbeafe; color: #1d4ed8; }

.news-card h4 { font-size: 13px; font-weight: 700; color: var(--tx-dark); margin-bottom: 4px; line-height: 1.4; }
.news-card p  { font-size: 11px; color: var(--tx-muted); line-height: 1.5; margin-bottom: 8px; }
.news-date    { font-size: 10px; color: var(--tx-muted); font-weight: 600; }

/* ── Footer home ──────────────────────────────────────────────── */
.home-footer {
  background: var(--bg-dark2);
  padding: 28px 40px;
  text-align: center;
}
.home-footer .footer-brand {
  font-size: 18px; font-weight: 800; color: #fff;
  letter-spacing: -.02em; margin-bottom: 12px;
}
.home-footer .footer-brand span { color: var(--orange); }
.footer-links {
  display: flex; gap: 20px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 10px;
}
.footer-links a {
  font-size: 12px; color: var(--tx-dimmer);
  font-weight: 500; transition: color var(--t);
}
.footer-links a:hover { color: #fff; }
.footer-copy { font-size: 11px; color: rgba(255,255,255,.2); line-height: 1.7; }

/* ── Modal registro exprés ────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: fadeIn .2s ease;
}
.modal-overlay.hidden { display: none; }

.modal-card {
  background: #16181b;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  width: 100%; max-width: 420px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,.6);
  animation: slideUp .25s cubic-bezier(.4,0,.2,1);
}
.modal-accent { height: 3px; background: var(--gradient); }
.modal-body { padding: 26px 26px 22px; }

.modal-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.modal-logo img { height: 20px; object-fit: contain; }
.modal-logo-fallback { font-size: 15px; font-weight: 800; color: #fff; letter-spacing: -.02em; }
.modal-logo-fallback span { color: var(--orange); }

.modal-title { font-size: 20px; font-weight: 800; color: #fff; letter-spacing: -.02em; margin-bottom: 5px; }
.modal-sub   { font-size: 12px; color: var(--tx-dimmer); line-height: 1.6; margin-bottom: 20px; }

/* País */
.country-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.country-btn {
  padding: 9px; border-radius: 8px;
  border: 1.5px solid rgba(255,255,255,.1);
  background: transparent; color: rgba(255,255,255,.5);
  font-family: var(--font); font-size: 12px; font-weight: 700;
  cursor: pointer; transition: all var(--t);
  display: flex; align-items: center; justify-content: center; gap: 7px;
}
.country-btn:hover { border-color: var(--orange-border); color: rgba(255,255,255,.8); }
.country-btn.on { border-color: var(--orange); background: var(--orange-soft); color: var(--orange); }

/* Campos */
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fg { margin-bottom: 11px; }
.fg label {
  display: block; font-size: 10px; font-weight: 700;
  color: rgba(255,255,255,.4); text-transform: uppercase;
  letter-spacing: .08em; margin-bottom: 4px;
}
.fg label .req { color: var(--orange); }
.fg input, .fg select {
  width: 100%; padding: 9px 11px;
  background: rgba(255,255,255,.05);
  border: 1.5px solid rgba(255,255,255,.1);
  border-radius: 8px; color: #fff;
  font-family: var(--font); font-size: 13px;
  transition: border-color var(--t), background var(--t);
  outline: none;
}
.fg input::placeholder { color: rgba(255,255,255,.22); }
.fg input:focus, .fg select:focus {
  border-color: var(--orange);
  background: var(--orange-soft);
}
.fg input.err { border-color: #f87171 !important; }
.fg .field-hint { font-size: 10px; color: rgba(255,255,255,.22); margin-top: 3px; }

.movil-row { display: flex; gap: 7px; }
.movil-row select { width: 96px; flex-shrink: 0; }
.movil-row input  { flex: 1; }

.btn-ingresar {
  width: 100%; padding: 13px; margin-top: 4px;
  background: var(--orange); color: #fff;
  border: none; border-radius: 10px;
  font-family: var(--font); font-size: 14px; font-weight: 800;
  cursor: pointer; transition: all var(--t);
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-ingresar:hover { background: var(--orange-h); transform: translateY(-1px); }
.btn-ingresar:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.btn-ingresar .mi { font-size: 18px; }
.btn-ingresar.loading .btn-text { display: none; }
.btn-ingresar.loading .spinner { display: block; }

.modal-disclaimer { font-size: 10px; color: rgba(255,255,255,.18); text-align: center; margin-top: 10px; line-height: 1.5; }
.modal-skip { text-align: center; margin-top: 7px; }
.modal-skip button {
  background: none; border: none; color: rgba(255,255,255,.22);
  font-family: var(--font); font-size: 10px; cursor: pointer;
  text-decoration: underline; transition: color var(--t);
}
.modal-skip button:hover { color: rgba(255,255,255,.5); }

/* Contenido bloqueado (gate) */
.content-gate {
  position: relative;
}
.content-gate-blur {
  filter: blur(4px);
  pointer-events: none;
  user-select: none;
  max-height: 200px;
  overflow: hidden;
}
.content-gate-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to bottom, transparent, var(--surface) 70%);
  padding: 40px 20px 20px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  text-align: center;
}
.content-gate-msg {
  font-size: 13px; font-weight: 700; color: var(--tx-dark);
}
.content-gate-sub { font-size: 12px; color: var(--tx-muted); }

/* ── SupportIA FAB ────────────────────────────────────────────── */
.fab-wrap {
  position: fixed;
  bottom: 22px; right: 22px;
  z-index: 100;
  display: flex; flex-direction: column; align-items: flex-end; gap: 8px;
}
.fab {
  width: 50px; height: 50px; border-radius: 14px;
  background: var(--gradient); border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(102,7,196,.35), 0 2px 8px rgba(237,128,32,.2);
  transition: transform .2s, box-shadow .2s;
}
.fab:hover { transform: translateY(-2px) scale(1.05); box-shadow: 0 6px 28px rgba(102,7,196,.45); }
.fab .mi { font-size: 22px; color: #fff; }
.fab-label {
  background: rgba(20,22,26,.95);
  border: 1px solid var(--border-dark);
  border-radius: 8px;
  padding: 5px 10px; font-size: 11px; font-weight: 600;
  color: rgba(255,255,255,.65); white-space: nowrap;
  pointer-events: none; opacity: 0; transform: translateX(4px);
  transition: opacity .18s, transform .18s;
  position: absolute; right: 58px; bottom: 12px;
}
.fab-wrap:hover .fab-label { opacity: 1; transform: translateX(0); }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero { padding: 32px 20px 36px; }
  .needs-section, .prospect-section, .news-section, .home-footer { padding: 28px 20px; }
  .needs-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .prospect-card { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .news-grid { grid-template-columns: 1fr; }
}