/* =========================================================
   PROXIME FINANCE — Main Stylesheet
   ========================================================= */

/* --- Variables --- */
:root {
  --red:        #CC1414;
  --red-dark:   #a50f0f;
  --red-light:  #e8191900;
  --cyan:       #3AB5E5;
  --cyan-dark:  #1f8ab8;
  --black:      #111111;
  --dark:       #1a1a1a;
  --dark-2:     #222222;
  --gray-dark:  #444444;
  --gray:       #777777;
  --gray-light: #b0b0b0;
  --bg-light:   #F4F6F9;
  --bg-white:   #FFFFFF;
  --border:     #e0e0e0;

  --font-head:  'Montserrat', sans-serif;
  --font-body:  'Inter', sans-serif;

  --radius:     8px;
  --radius-lg:  16px;
  --shadow:     0 4px 24px rgba(0,0,0,0.10);
  --shadow-lg:  0 8px 48px rgba(0,0,0,0.16);

  --transition: 0.25s ease;
  --container:  1160px;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--bg-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--red); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--red-dark); }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* --- Typography --- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.15;
  color: var(--black);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.7rem); }
h4 { font-size: 1.1rem; font-weight: 700; }

p { color: var(--gray-dark); }

.text-red   { color: var(--red) !important; }
.text-cyan  { color: var(--cyan) !important; }
.text-white { color: #fff !important; }
.text-gray  { color: var(--gray) !important; }

/* --- Layout --- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

.section-sm {
  padding: 64px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 16px;
}

.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: var(--gray);
  max-width: 620px;
  margin: 0 auto 56px;
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 32px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  transition: all var(--transition);
  text-align: center;
  white-space: nowrap;
  letter-spacing: 0.3px;
}

.btn-primary {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}
.btn-primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(204,20,20,0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--gray-dark);
  border-color: var(--border-dark);
}
.btn-secondary:hover {
  background: rgba(0,0,0,0.05);
  border-color: var(--gray-dark);
  color: var(--black);
  transform: translateY(-2px);
}

/* Botón secundario sobre fondo oscuro (parallax oscuro, CTA, etc.) */
.btn-secondary-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.6);
}
.btn-secondary-light:hover {
  background: rgba(255,255,255,0.12);
  border-color: #fff;
  color: #fff;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--red);
  border-color: var(--red);
}
.btn-outline:hover {
  background: var(--red);
  color: #fff;
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--black);
  color: #fff;
  border-color: var(--black);
}
.btn-dark:hover {
  background: var(--dark-2);
  color: #fff;
  transform: translateY(-2px);
}

.btn-lg { padding: 18px 40px; font-size: 1.05rem; }
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  backdrop-filter: blur(0px);
  padding: 22px 0;
  transition: all 0.4s ease;
}

/* Logo: colores en fondo claro, blanco en fondo oscuro */
.logo-dark  { display: none; }
.logo-light { display: block; }
.navbar.scrolled .logo-light { display: none; }
.navbar.scrolled .logo-dark  { display: block; }

.navbar.scrolled {
  background: rgba(17,17,17,0.97);
  backdrop-filter: blur(12px);
  padding: 14px 0;
  box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.navbar-logo img {
  height: 42px;
  width: auto;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.navbar-nav a {
  color: var(--gray-dark);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.3px;
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: all var(--transition);
  text-transform: uppercase;
}

.navbar-nav a:hover,
.navbar-nav a.active {
  color: var(--black);
  background: rgba(0,0,0,0.05);
}

/* Cuando la navbar está scrolled (fondo oscuro), los links vuelven a blanco */
.navbar.scrolled .navbar-nav a {
  color: rgba(255,255,255,0.8);
}
.navbar.scrolled .navbar-nav a:hover,
.navbar.scrolled .navbar-nav a.active {
  color: #fff;
  background: rgba(255,255,255,0.1);
}

/* Páginas con page-hero oscuro: logo y links blancos desde el inicio */
.navbar.on-dark:not(.scrolled) .logo-light { display: none; }
.navbar.on-dark:not(.scrolled) .logo-dark  { display: block; }
.navbar.on-dark:not(.scrolled) .navbar-nav a { color: rgba(255,255,255,0.85); }
.navbar.on-dark:not(.scrolled) .navbar-nav a:hover,
.navbar.on-dark:not(.scrolled) .navbar-nav a.active { color: #fff; background: rgba(255,255,255,0.1); }
.navbar.on-dark:not(.scrolled) .navbar-burger span { background: #fff; }

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar-cta {
  background: var(--red);
  color: #fff !important;
  padding: 10px 22px !important;
  border-radius: var(--radius) !important;
  font-weight: 700 !important;
}
.navbar-cta:hover {
  background: var(--red-dark) !important;
}

/* Dropdown servicios */
.nav-dropdown {
  position: relative;
}

.nav-dropdown > a::after {
  content: ' ▾';
  font-size: 0.7em;
  opacity: 0.7;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 16px 12px 12px;
  min-width: 280px;
  z-index: 100;
  border: 1px solid var(--border);
  /* Puente invisible que evita que el menú desaparezca al mover el ratón */
  margin-top: 0;
}

/* Puente invisible entre trigger y menú */
.nav-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 16px;
  background: transparent;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu a {
  color: var(--dark) !important;
  display: block;
  padding: 9px 14px !important;
  border-radius: var(--radius) !important;
  font-size: 0.86rem !important;
  background: transparent !important;
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.nav-dropdown-menu a:hover {
  background: var(--bg-light) !important;
  color: var(--red) !important;
  padding-left: 18px !important;
}

/* Mobile menu — oculto por defecto en desktop */
.mobile-menu {
  display: none;
}

/* Burger mobile */
.navbar-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}
.navbar-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: all var(--transition);
}
.navbar.scrolled .navbar-burger span {
  background: #fff;
}

/* --- Hero — fondo blanco minimalista --- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--bg-white);
  padding: 100px 0 80px;
}

/* El container del hero no se centra — el texto arranca cerca del borde izquierdo */
.hero > .container {
  max-width: 100%;
  padding-left: max(32px, 5vw);
  padding-right: 0;
}

/* Foto de fondo ocupando la mitad derecha */
.hero-bg {
  position: absolute;
  top: 0; right: 0;
  width: 55%;
  height: 100%;
  background-image: url('../img/hero-bg.jpg');
  background-size: cover;
  background-position: center 30%;
  background-attachment: scroll;
  opacity: 0.55;
}

/* Gradiente blanco cubriendo el lado izquierdo para legibilidad del texto */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(255,255,255,1) 0%,
    rgba(255,255,255,1) 42%,
    rgba(255,255,255,0.15) 75%,
    rgba(255,255,255,0) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  padding-top: 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(204,20,20,0.07);
  border: 1px solid rgba(204,20,20,0.2);
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 700;
  font-family: var(--font-head);
  padding: 6px 14px;
  border-radius: 100px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero h1 {
  color: var(--black);
  margin-bottom: 20px;
}

.hero h1 span {
  color: var(--red);
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--gray-dark);
  margin-bottom: 12px;
  line-height: 1.7;
}

.hero-free {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gray);
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 36px;
}

.hero-free::before {
  content: '✓';
  background: var(--red);
  color: #fff;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  flex-shrink: 0;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--gray-light);
  font-size: 0.75rem;
  font-family: var(--font-head);
  letter-spacing: 1px;
  text-transform: uppercase;
  animation: fadeUpDown 2s infinite;
}

.hero-scroll-arrow {
  width: 30px;
  height: 30px;
  border: 2px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes fadeUpDown {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.4; }
  50%       { transform: translateX(-50%) translateY(6px); opacity: 0.8; }
}

/* --- Stats bar --- */
.stats-bar {
  background: var(--bg-white);
  padding: 28px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  text-align: center;
}

.stat-item {
  padding: 16px 24px;
  border-right: 1px solid var(--border);
}

.stat-item:last-child { border-right: none; }

.stat-number {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  color: var(--red);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--gray);
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* --- Process section --- */
.section-process {
  background: var(--bg-white);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
  margin-top: 56px;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 38px;
  left: calc(16.66% + 20px);
  right: calc(16.66% + 20px);
  height: 2px;
  background: linear-gradient(90deg, var(--red), var(--cyan));
  z-index: 0;
}

.process-step {
  text-align: center;
  padding: 0 32px;
  position: relative;
  z-index: 1;
}

.process-num {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--black);
  color: #fff;
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  position: relative;
  border: 3px solid transparent;
  background-clip: padding-box;
  box-shadow: 0 0 0 3px var(--red);
}

.process-step:nth-child(2) .process-num { box-shadow: 0 0 0 3px var(--cyan); }
.process-step:nth-child(3) .process-num { box-shadow: 0 0 0 3px var(--black); }

.process-step h4 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.process-step p {
  font-size: 0.92rem;
  color: var(--gray);
  line-height: 1.6;
}

/* --- Parallax photo section --- */
/* Sticky-stack parallax: la foto se queda fija y la sección siguiente sube por encima */
.parallax-section {
  position: sticky;
  top: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  z-index: 1;
}

/* Variante clara: overlay blanco, texto oscuro */
.parallax-section.parallax-light {
  color: var(--black);
}

.parallax-section .parallax-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  z-index: 0;
  transform: scale(1.04);
  transition: transform 0.6s ease;
}

.parallax-section .parallax-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.parallax-section .container {
  position: relative;
  z-index: 2;
  padding-top: 80px;
  padding-bottom: 80px;
}

/* Content sections must sit above stuck parallax panels */
.section {
  position: relative;
  z-index: 10;
  background: var(--bg-white);
}

.section.bg-light,
.section[style*="bg-light"],
.section[style*="background: var(--bg-light)"],
.section[style*="background:var(--bg-light)"] {
  background: var(--bg-light);
}

/* CTA section also needs to stack above */
.cta-section {
  position: relative;
  z-index: 10;
}

/* Stats bar above parallax */
.stats-bar {
  position: relative;
  z-index: 10;
}

/* --- Services grid --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--cyan));
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: left;
}

.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: transparent;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.service-card h4 {
  margin-bottom: 10px;
  color: var(--black);
}

.service-card p {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 18px;
}

.service-link {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.service-link::after { content: '→'; }
.service-link:hover { color: var(--red-dark); gap: 10px; }

/* --- Why us (diferenciadores) --- */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.why-features {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.why-feature {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.why-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  background: rgba(204,20,20,0.08);
  color: var(--red);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.why-feature h4 { margin-bottom: 4px; }
.why-feature p { font-size: 0.92rem; color: var(--gray); }

.why-image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bg-light);
}

.why-image-wrap img { width: 100%; height: 100%; object-fit: cover; }

.why-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: #fff;
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 12px;
}

.why-badge-num {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--red);
  line-height: 1;
}

.why-badge-text {
  font-size: 0.8rem;
  color: var(--gray);
  line-height: 1.3;
}

/* --- Banks logos --- */
.banks-section {
  background: var(--bg-light);
  padding: 56px 0;
  overflow: hidden;
}

.banks-track {
  display: flex;
  gap: 40px;
  align-items: center;
  animation: scrollBanks 30s linear infinite;
  width: max-content;
}

.banks-track:hover { animation-play-state: paused; }

.bank-logo {
  height: 38px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.55);
  transition: all var(--transition);
  flex-shrink: 0;
}

.bank-logo:hover {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.05);
}

@keyframes scrollBanks {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- Testimonials --- */
.testimonials-section {
  background: var(--bg-white);
}

.testimonials-section .section-title { color: var(--black); }
.testimonials-section .section-subtitle { color: var(--gray); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition);
}

.testimonial-card:hover {
  background: var(--bg-white);
  border-color: rgba(204,20,20,0.25);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.testimonial-stars {
  color: #f5c518;
  font-size: 0.9rem;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.testimonial-text {
  color: var(--gray-dark);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
}

.testimonial-name {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--black);
  font-size: 0.92rem;
  margin-bottom: 2px;
}

.testimonial-type {
  font-size: 0.78rem;
  color: var(--gray);
}

/* --- CTA Section --- */
.cta-section {
  background: linear-gradient(135deg, var(--red) 0%, #8b0000 100%);
  padding: 96px 0;
  text-align: center;
}

.cta-section h2 { color: #fff; margin-bottom: 16px; }
.cta-section p { color: rgba(255,255,255,0.8); font-size: 1.1rem; margin-bottom: 36px; }

/* --- Form container (inline) --- */
.form-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--dark);
  margin-bottom: 6px;
  letter-spacing: 0.2px;
}

.form-control {
  width: 100%;
  padding: 13px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--dark);
  background: var(--bg-white);
  transition: border-color var(--transition);
  outline: none;
}

.form-control:focus { border-color: var(--red); }

select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23777' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 44px; }

.form-check { display: flex; align-items: flex-start; gap: 10px; }
.form-check input[type=checkbox] { margin-top: 3px; accent-color: var(--red); width: 16px; height: 16px; flex-shrink: 0; }
.form-check label { font-size: 0.85rem; color: var(--gray); line-height: 1.5; }
.form-check a { color: var(--red); font-weight: 600; }

/* Error messages */
.form-error { color: var(--red); font-size: 0.8rem; margin-top: 4px; display: none; }

/* --- Immersive Multi-step Form Overlay --- */
.form-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}

.form-overlay.active { display: flex; }

.form-overlay-bg {
  position: absolute;
  inset: 0;
  background: rgba(10,10,10,0.96);
  backdrop-filter: blur(8px);
}

.form-overlay-close {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 2;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.3rem;
  transition: all var(--transition);
}

.form-overlay-close:hover {
  background: rgba(255,255,255,0.2);
  transform: rotate(90deg);
}

.form-wizard {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 640px;
  padding: 24px;
  max-height: 100vh;
  overflow-y: auto;
}

.form-wizard-inner {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.form-wizard-header {
  background: var(--black);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.form-wizard-logo img { height: 32px; }

.form-wizard-progress {
  display: flex;
  align-items: center;
  gap: 8px;
}

.progress-step {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  transition: all var(--transition);
}

.progress-step.done    { background: var(--cyan); }
.progress-step.current { background: var(--red); width: 24px; border-radius: 4px; }

.form-wizard-body {
  padding: 36px 40px 32px;
}

.wizard-step {
  display: none;
}

.wizard-step.active {
  display: block;
  animation: stepFadeIn 0.3s ease;
}

@keyframes stepFadeIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

.wizard-step-num {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}

.wizard-step h3 {
  font-size: 1.4rem;
  margin-bottom: 28px;
  color: var(--black);
  line-height: 1.3;
}

.wizard-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 8px;
}

.wizard-options.cols-1 { grid-template-columns: 1fr; }
.wizard-options.cols-3 { grid-template-columns: repeat(3, 1fr); }

.wizard-option {
  position: relative;
  cursor: pointer;
}

.wizard-option input[type=radio] {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
}

.wizard-option-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  transition: all var(--transition);
  background: var(--bg-white);
}

.wizard-option input:checked + .wizard-option-label {
  border-color: var(--red);
  background: rgba(204,20,20,0.04);
  box-shadow: 0 0 0 3px rgba(204,20,20,0.1);
}

.wizard-option-label:hover {
  border-color: var(--red);
  background: rgba(204,20,20,0.02);
}

.wizard-option-icon { font-size: 1.8rem; }

.wizard-option-text {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--dark);
}

.wizard-option-sub {
  font-size: 0.78rem;
  color: var(--gray);
  line-height: 1.4;
}

.wizard-field {
  margin-bottom: 16px;
}

.wizard-field label {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--dark);
  margin-bottom: 8px;
}

.wizard-field input,
.wizard-field select {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--dark);
  outline: none;
  transition: border-color var(--transition);
}

.wizard-field input:focus,
.wizard-field select:focus {
  border-color: var(--red);
}

.wizard-field input.error,
.wizard-field select.error {
  border-color: var(--red);
}

.wizard-field .field-error {
  color: var(--red);
  font-size: 0.8rem;
  margin-top: 4px;
  display: none;
}

.wizard-field .field-error.show { display: block; }

.wizard-privacy {
  font-size: 0.8rem;
  color: var(--gray);
  margin-top: 16px;
  line-height: 1.5;
}

.wizard-privacy a { color: var(--red); font-weight: 600; }

.wizard-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.wizard-back {
  background: none;
  border: none;
  color: var(--gray);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color var(--transition);
  padding: 0;
}

.wizard-back:hover { color: var(--dark); }

.wizard-next {
  background: var(--red);
  color: #fff;
  border: none;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.wizard-next:hover {
  background: var(--red-dark);
  transform: translateX(2px);
  box-shadow: 0 6px 20px rgba(204,20,20,0.35);
}

.wizard-next:disabled {
  background: var(--gray-light);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Success step */
.wizard-success {
  text-align: center;
  padding: 20px 0;
}

.wizard-success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 2rem;
}

.wizard-success h3 { margin-bottom: 12px; }
.wizard-success p { color: var(--gray); margin-bottom: 28px; }

/* Range slider */
.range-wrap {
  padding: 8px 0;
}

.range-wrap input[type=range] {
  width: 100%;
  accent-color: var(--red);
  height: 6px;
  cursor: pointer;
}

.range-value {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
}

.range-value .current-val {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--red);
}

.range-value .range-labels {
  font-size: 0.8rem;
  color: var(--gray);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

/* --- Page hero (inner pages) --- */
.page-hero {
  background: var(--black);
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(58,181,229,0.1) 0%, transparent 70%);
}

.page-hero-content { position: relative; z-index: 1; max-width: 700px; }
.page-hero h1 { color: #fff; margin-bottom: 16px; }
.page-hero p  { color: rgba(255,255,255,0.65); font-size: 1.1rem; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: 20px;
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 0.3px;
}

.breadcrumb a { color: rgba(255,255,255,0.5); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { color: var(--red); }

/* --- Info cards for subpages --- */
.info-card {
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--border);
}

.info-card h4 { margin-bottom: 8px; }
.info-card p  { font-size: 0.92rem; color: var(--gray); }

/* --- FAQ accordion --- */
.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 20px 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  color: var(--dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: color var(--transition);
}

.faq-question:hover { color: var(--red); }

.faq-question-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--red);
  transition: all var(--transition);
}

.faq-item.open .faq-question-icon { transform: rotate(45deg); background: var(--red); color: #fff; }

.faq-answer {
  display: none;
  padding: 0 0 20px;
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-item.open .faq-answer { display: block; }

/* --- Footer --- */
.footer {
  background: var(--black);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-logo { margin-bottom: 20px; }
.footer-logo img { height: 36px; }

.footer-about {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
  transition: all var(--transition);
}

.footer-social a:hover {
  background: var(--red);
  color: #fff;
  transform: translateY(-2px);
}

.footer-col h5 {
  color: #fff;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: rgba(255,255,255,0.45);
  font-size: 0.88rem;
  transition: all var(--transition);
}

.footer-links a:hover {
  color: rgba(255,255,255,0.85);
  padding-left: 4px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.25);
}

.footer-bottom a { color: rgba(255,255,255,0.35); }
.footer-bottom a:hover { color: rgba(255,255,255,0.6); }

.footer-legal-links {
  display: flex;
  gap: 20px;
}

/* --- Cookie banner --- */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: rgba(17,17,17,0.97);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  z-index: 8000;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.cookie-banner.show { transform: translateY(0); }

.cookie-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  justify-content: space-between;
}

.cookie-text {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
  flex: 1;
}

.cookie-text a { color: var(--cyan); }

.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }

.cookie-btn {
  padding: 10px 20px;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
}

.cookie-btn-accept { background: var(--red); color: #fff; }
.cookie-btn-accept:hover { background: var(--red-dark); }
.cookie-btn-reject { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.6); }
.cookie-btn-reject:hover { background: rgba(255,255,255,0.15); color: #fff; }

/* --- Admin styles --- */
.admin-body {
  background: #f0f2f5;
  font-family: var(--font-body);
  min-height: 100vh;
}

.admin-sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 240px;
  background: var(--black);
  padding: 0;
  z-index: 100;
  overflow-y: auto;
}

.admin-sidebar-logo {
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.admin-sidebar-logo img { height: 30px; }

.admin-nav { padding: 16px 12px; }

.admin-nav-section {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.25);
  padding: 8px 8px 6px;
  margin-top: 12px;
}

.admin-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius);
  color: rgba(255,255,255,0.55);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition);
  margin-bottom: 2px;
}

.admin-nav a:hover, .admin-nav a.active {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

.admin-nav a.active { color: #fff; }

.admin-nav .nav-icon { font-size: 1rem; width: 20px; text-align: center; }

.admin-main {
  margin-left: 240px;
  padding: 32px;
  min-height: 100vh;
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.admin-topbar h1 {
  font-size: 1.5rem;
  color: var(--black);
}

.admin-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border: 1px solid var(--border);
}

.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

.admin-stat {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border: 1px solid var(--border);
  border-left: 4px solid var(--red);
}

.admin-stat:nth-child(2) { border-left-color: var(--cyan); }
.admin-stat:nth-child(3) { border-left-color: #22c55e; }
.admin-stat:nth-child(4) { border-left-color: #f59e0b; }

.admin-stat-num {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  color: var(--black);
  line-height: 1;
  margin-bottom: 4px;
}

.admin-stat-label {
  font-size: 0.82rem;
  color: var(--gray);
  font-weight: 500;
}

/* Leads table */
.leads-table {
  width: 100%;
  border-collapse: collapse;
}

.leads-table th {
  text-align: left;
  padding: 12px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--gray);
  border-bottom: 2px solid var(--border);
  background: var(--bg-light);
}

.leads-table td {
  padding: 14px;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--dark);
  vertical-align: middle;
}

.leads-table tr:hover td { background: #fafafa; }

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-head);
  letter-spacing: 0.3px;
}

.badge-nuevo            { background: #eff6ff; color: #2563eb; }
.badge-gestion          { background: #fff7ed; color: #c2410c; }
.badge-oferta           { background: #f0fdf4; color: #15803d; }
.badge-firmado          { background: #f0fdf4; color: #065f46; border: 1px solid #bbf7d0; }
.badge-descartado       { background: #fef2f2; color: #991b1b; }

.btn-admin {
  padding: 8px 16px;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
}

.btn-admin-primary { background: var(--red); color: #fff; }
.btn-admin-primary:hover { background: var(--red-dark); }
.btn-admin-secondary { background: var(--bg-light); color: var(--dark); border: 1px solid var(--border); }
.btn-admin-secondary:hover { background: var(--border); }

/* Filter bar */
.filter-bar {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.filter-bar select,
.filter-bar input {
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.88rem;
  color: var(--dark);
  background: #fff;
  outline: none;
}

.filter-bar select:focus,
.filter-bar input:focus {
  border-color: var(--red);
}

/* Lead detail */
.detail-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}

.detail-field {
  margin-bottom: 16px;
}

.detail-field label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--gray);
  display: block;
  margin-bottom: 4px;
}

.detail-field p {
  font-size: 0.95rem;
  color: var(--dark);
}

/* Timeline notas */
.nota-timeline { display: flex; flex-direction: column; gap: 16px; }

.nota-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.nota-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
  margin-top: 6px;
  flex-shrink: 0;
}

.nota-content {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 12px 14px;
  flex: 1;
}

.nota-text { font-size: 0.9rem; color: var(--dark); margin-bottom: 4px; }
.nota-date { font-size: 0.75rem; color: var(--gray); }

/* --- Utilities --- */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }

.flex          { display: flex; }
.flex-center   { display: flex; align-items: center; justify-content: center; }
.flex-between  { display: flex; align-items: center; justify-content: space-between; }
.gap-8  { gap: 8px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }

.hidden { display: none !important; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .admin-stat-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .section-sm { padding: 40px 0; }

  .navbar-nav  { display: none; }
  .navbar-burger { display: flex; }

  .mobile-menu {
    position: fixed;
    inset: 0;
    background: var(--black);
    z-index: 9998;
    padding: 80px 24px 40px;
    display: none;
    flex-direction: column;
    gap: 4px;
  }

  .mobile-menu.open { display: flex; }

  .mobile-menu a {
    color: rgba(255,255,255,0.75);
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1.1rem;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    display: block;
  }

  .mobile-menu a:hover { color: #fff; }

  .mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
  }

  .hero { min-height: 100svh; }
  .hero-bg { background-attachment: scroll; }
  .parallax-section .parallax-bg { background-attachment: scroll; }

  /* Disable sticky stacking on mobile — too many layout edge cases */
  .parallax-section {
    position: relative;
    min-height: 70vh;
  }

  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-right: 1px solid var(--border); }

  .process-steps { grid-template-columns: 1fr; gap: 40px; }
  .process-steps::before { display: none; }

  .services-grid { grid-template-columns: 1fr; gap: 16px; }

  .why-grid { grid-template-columns: 1fr; }
  .why-image-wrap { display: none; }

  .testimonials-grid { grid-template-columns: 1fr; }

  .grid-2, .grid-3 { grid-template-columns: 1fr; }

  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  .wizard-options { grid-template-columns: 1fr; }
  .wizard-options.cols-3 { grid-template-columns: 1fr; }
  .form-wizard-body { padding: 24px 20px 20px; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .footer-legal-links { flex-wrap: wrap; justify-content: center; }

  .admin-sidebar { transform: translateX(-100%); }
  .admin-main { margin-left: 0; padding: 16px; }
  .admin-stat-grid { grid-template-columns: 1fr 1fr; }

  .cookie-inner { flex-direction: column; gap: 16px; }
  .cookie-actions { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  .stats-inner { grid-template-columns: 1fr; }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .admin-stat-grid { grid-template-columns: 1fr; }
}
