/* GLOBAL TOKENS */
:root {
  --font-base: "Inter", Roboto, Helvetica, Arial, sans-serif;
  --color-text: #e8f0ff;
  --max-width: 1100px;

  --glass-card:         linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.03));
  --glass-surface:      rgba(255,255,255,0.05);
  --glass-surface-hover:rgba(255,255,255,0.09);
  --glass-border:       rgba(255,255,255,0.2);
  --glass-input:        rgba(255,255,255,0.08);
  --glass-placeholder:  rgba(255,255,255,0.45);
  --glass-btn:          rgba(255,255,255,0.12);
  --glass-btn-hover:    rgba(255,255,255,0.22);
  --glass-line:         rgba(255,255,255,0.15);
  --glass-spinner:      rgba(255,255,255,0.4);
}

/* BRAND TOKENS — para agregar una landing nueva, copiar un bloque y actualizar los cuatro valores */

body.froneus {
  --brand-bg-image:  url("../img/froneus/bg.png");
  --brand-gradient:  linear-gradient(135deg, #1e3d89 0%, #17346f 60%, #122a59 100%);
  --brand-accent:    linear-gradient(135deg, #3a6ff7, #2c5adf);
  --brand-icon-color:#5c9acb;
}

body.telecentro {
  --brand-bg-image:  url("../img/telecentro/bg.png");
  --brand-gradient:  linear-gradient(135deg, #0679b2 0%, #0487bb 60%, #0289c1 100%);
  --brand-accent:    linear-gradient(90deg, #4772fd, #4772fd);
  --brand-icon-color:#565656;
}

body.movilgate {
  --brand-bg-image:  url("../img/movilgate/bg.png");
  --brand-gradient:  linear-gradient(180deg, #080b15 0%, #ff8811 100%);
  --brand-accent:    linear-gradient(90deg, #e58f39, #ff8811);
  --brand-icon-color:white;
}

body.bbva {
  --brand-bg-image:  url("../img/bbva/bg.png");
  --brand-gradient:  linear-gradient(135deg, #072146 0%, #004481 60%, #1464a5 100%);
  --brand-accent:    linear-gradient(90deg, #1567a8, #0d5ca0);
  --brand-icon-color:#049fdb;
}

/* BASE */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-base);
  min-height: 100vh;
  color: var(--color-text);
  line-height: 1.4;
  background: var(--brand-bg-image) top center / contain no-repeat, var(--brand-gradient);
}

body.movilgate {
  background: url("../img/movilgate/bg.png") top center / contain no-repeat, #080b15;
}

/* TOPBAR */

.topbar {
  width: 100%;
  padding: 18px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar .logo img {
  height: 55px;
  padding: 10px;
}

.back-home {
  text-decoration: none;
  color: white;
  font-size: 15px;
  background: var(--glass-btn);
  padding: 10px;
  border-radius: 8px;
  backdrop-filter: blur(6px);
  transition: background 0.2s;
}

.back-home:hover {
  background: var(--glass-btn-hover);
}

/* HEADER / HERO */

.header {
  padding: 20px;
  display: flex;
  max-width: var(--max-width);
  margin: auto;
}

.hero {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero h1 {
  font-size: 46px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 30px;
}

.hero-sub {
  font-size: 22px;
  opacity: 0.9;
  margin-bottom: 30px;
}

.hero-desc {
  font-size: 18px;
  opacity: 0.75;
  max-width: 640px;
}

/* FORM / CARD */

.container {
  width: 100%;
  max-width: 480px;
  flex-shrink: 0;
  padding: 280px 20px 20px;
  display: flex;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.bot {
  position: absolute;
  top: 4px;
  right: 20px;
  width: 318px;
}

.bot img {
  max-width: 100%;
  height: auto;
}

.card {
  width: 100%;
  max-width: 420px;
  background: var(--glass-card);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.35);
  backdrop-filter: blur(8px);
  animation: formAppear 0.6s ease forwards;
}

h2 {
  font-size: 26px;
  margin-bottom: 16px;
  line-height: 1;
}

.subtitle {
  font-size: 15px;
  opacity: 0.8;
  margin-bottom: 16px;
  padding-right: 30px;
}

.field {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}

label {
  font-size: 14px;
  margin-bottom: 6px;
  opacity: 0.85;
}

input {
  padding: 13px;
  border-radius: 8px;
  border: 1px solid var(--glass-border);
  background: var(--glass-input);
  color: white;
  font-size: 16px;
}

input::placeholder {
  color: var(--glass-placeholder);
}

/* BUTTON */

.primary-btn {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 10px;
  background: var(--brand-accent);
  color: white;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: 0.2s ease;
}

.primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.primary-btn:disabled {
  opacity: 0.6;
}

.btn-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* SPINNER */

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--glass-spinner);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
}

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

/* STATUS */

.status {
  margin-top: 15px;
  padding: 10px;
  border-radius: 6px;
  display: none;
  font-size: 14px;
}

.status.success {
  display: block;
  background: rgba(80,200,255,0.15);
}

.status.error {
  display: block;
  background: rgba(255,100,120,0.15);
}

/* RECAPTCHA */

.g-recaptcha {
  transform: scale(0.9);
  transform-origin: left top;
}

/* HOW / TIMELINE */

.how {
  padding: 40px 20px 20px;
}

.how-container {
  max-width: var(--max-width);
  margin: auto;
}

.how h2 {
  margin-bottom: 60px;
  font-size: 32px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 26px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--glass-line);
}

.timeline-step {
  position: relative;
}

.timeline-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--brand-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
}

.timeline-card {
  background: var(--glass-surface);
  padding: 22px;
  border-radius: 12px;
  transition: 0.2s ease;
}

.timeline-card:hover {
  background: var(--glass-surface-hover);
  transform: translateY(-4px);
}

.timeline-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.timeline-card p {
  font-size: 17px;
  opacity: 0.85;
}

/* USE CASES */

.use-cases {
  padding: 80px 20px;
}

.use-cases h2 {
  max-width: var(--max-width);
  margin: auto;
  margin-bottom: 60px;
  font-size: 32px;
}

.cases-grid {
  max-width: var(--max-width);
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.case {
  background: var(--glass-surface);
  padding: 35px;
  border-radius: 14px;
  transition: 0.25s ease;
}

.case i {
  font-size: 42px;
  display: block;
  margin-bottom: 16px;
  color: var(--brand-icon-color);
}

.case:hover {
  transform: translateY(-6px);
  background: var(--glass-surface-hover);
}

.case h3 {
  margin-bottom: 10px;
  margin-top: 16px;
  font-size: 20px;
}

.case p {
  font-size: 16px;
  opacity: 0.8;
}

/* UTIL */

.hidden {
  display: none;
}

/* ANIMATIONS */

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

/* RESPONSIVE */

@media (max-width: 1000px) {
  .cases-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline   { grid-template-columns: repeat(2, 1fr); }
  .timeline::before { display: none; }
}

@media (max-width: 800px) {
  body { background: var(--brand-bg-image) top center / auto 100vh no-repeat, var(--brand-gradient); }
  body.movilgate { background: url("../img/movilgate/bg.png") top center / contain no-repeat, #080b15; }
  .header { flex-direction: column; }
  .container { max-width: none; }
}

@media (max-width: 600px) {
  .bot         { right: 0; width: 224px; }
  .container   { padding-top: 198px; }
  .hero h1     { font-size: 34px; }
  .hero-sub    { font-size: 20px; }
  .hero-desc   { font-size: 17px; }
  .cases-grid  { grid-template-columns: 1fr; }
  .timeline    { grid-template-columns: 1fr; }
  .g-recaptcha { transform: scale(0.78); transform-origin: left top; }
}

@media (max-width: 400px) {
  .g-recaptcha { transform: scale(0.72); }
}
