/* PALETA OFICIAL & SISTEMA DE DISEÑO B2B SAAS FACTURADOR.COM */
:root {
  --primary: #0088CC;
  --primary-dark: #006699;
  --accent: #FF6600;
  --accent-hover: #E55B00;
  --dark-blue: #0B2338;
  --dark-blue-light: #163652;
  --text-main: #2C3E50;
  --text-muted: #64748B;
  --bg-light: #F4F8FA;
  --bg-white: #FFFFFF;
  --border-color: #E2E8F0;
  --radius-lg: 16px;
  --radius-md: 8px;
  --shadow-soft: 0 10px 30px -5px rgba(0, 136, 204, 0.08);
  --shadow-hover: 0 20px 35px -5px rgba(0, 136, 204, 0.18);
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-white);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-center { text-align: center; }
.max-w-800 { max-width: 800px; margin-left: auto; margin-right: auto; }
.section-padding { padding: 80px 0; }
.bg-gradient-light { background: linear-gradient(180deg, #F4F8FA 0%, #FFFFFF 100%); }

/* ÍCONOS SVG VECTORIALES */
.icon-svg {
  width: 24px;
  height: 24px;
  stroke: var(--primary);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.icon-check { stroke: var(--primary); width: 20px; height: 20px; }

/* NAVBAR & MENU HAMBURGUESA */
.navbar {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
  padding: 14px 0;
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--primary);
}

.hamburger-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger-btn span {
  width: 25px;
  height: 3px;
  background-color: var(--dark-blue);
  border-radius: 2px;
  transition: var(--transition);
}

/* BOTONES */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  text-align: center;
}

.btn-accent { background: var(--accent); color: white; }
.btn-accent:hover { background: var(--accent-hover); transform: translateY(-2px); }
.btn-full { width: 100%; }

/* HERO SECTION CON DEGRADADO SUAVE */
.hero-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #EBF5FA 0%, #FFFFFF 60%, #FFF5EF 100%);
}

.hero-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.badge-tag {
  display: inline-block;
  padding: 6px 16px;
  background: #D8ECF8;
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 20px;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 2.75rem;
  color: var(--dark-blue);
  line-height: 1.25;
  margin-bottom: 20px;
  font-weight: 800;
}

.highlight-text { color: var(--accent); }

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 30px;
}

.hero-benefits {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

/* FORMULARIO HERO */
.hero-form-card {
  background: white;
  padding: 36px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-color);
}

.form-title { font-size: 1.35rem; color: var(--dark-blue); margin-bottom: 6px; font-weight: 700; }
.form-subtitle { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 24px; }

.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.875rem; font-weight: 600; margin-bottom: 6px; }
.form-group input, .form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-group input:focus, .form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 136, 204, 0.15);
}

.form-disclaimer { display: block; font-size: 0.75rem; color: var(--text-muted); margin-top: 12px; text-align: center; }

/* BARRA DE CONFIANZA */
.trust-bar {
  background: var(--dark-blue);
  color: white;
  padding: 24px 0;
}

.trust-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 24px;
}

.trust-item { display: flex; align-items: center; gap: 14px; }
.trust-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}
.trust-icon-box .icon-svg { stroke: #33B5FF; }

.trust-text strong { display: block; font-size: 0.95rem; color: white; }
.trust-text span { font-size: 0.8rem; color: #94A3B8; }

/* REJILLA DOS COLUMNAS CON IMAGEN ASIMÉTRICA */
.grid-two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.align-center { align-items: center; }

.image-wrapper img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  display: block;
}

.shadow-card {
  box-shadow: var(--shadow-hover);
}

/* CARDS CON ÍCONOS Y CARDS CON FOTO */
.section-subtitle { text-transform: uppercase; letter-spacing: 1px; color: var(--primary); font-weight: 700; font-size: 0.85rem; }
.section-title { font-size: 2.25rem; color: var(--dark-blue); margin-top: 8px; margin-bottom: 16px; font-weight: 800; }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.card {
  background: white;
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.card-icon-wrapper {
  width: 50px;
  height: 50px;
  background: #EBF5FA;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.hover-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: #99D6FF;
}

.card-title { font-size: 1.2rem; color: var(--dark-blue); margin-bottom: 10px; font-weight: 700; }

.card-with-img {
  padding: 0;
  overflow: hidden;
}

.card-img-container {
  height: 180px;
  overflow: hidden;
}

.card-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card-with-img:hover .card-img-container img {
  transform: scale(1.05);
}

.card-body {
  padding: 24px;
}

/* BLOQUE DESTACADO CON GRADIENTE */
.highlight-block {
  background: linear-gradient(135deg, var(--dark-blue) 0%, var(--dark-blue-light) 100%);
  color: white;
  padding: 70px 0;
}

.highlight-title { font-size: 2.25rem; margin-bottom: 16px; font-weight: 800; }
.highlight-text-content { max-width: 700px; margin: 0 auto 30px auto; color: #E2E8F0; }

/* TIMELINE LEGISLATIVO */
.timeline-wrapper {
  position: relative;
  max-width: 800px;
  margin: 40px auto 0 auto;
}

.timeline-line {
  position: absolute;
  left: 20px;
  top: 0;
  width: 4px;
  height: 100%;
  background: var(--border-color);
}

.timeline-step {
  display: flex;
  gap: 24px;
  margin-bottom: 32px;
  position: relative;
}

.timeline-dot {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.timeline-content {
  background: white;
  padding: 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  flex: 1;
}

/* TABLA COMPARATIVA */
.table-responsive { overflow-x: auto; margin-top: 30px; }
.comparative-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.comparative-table th, .comparative-table td {
  padding: 18px 24px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.comparative-table th { background: #EBF5FA; color: var(--dark-blue); font-weight: 700; }
.highlight-col { background: #F4F8FA; }

/* FAQ ACCORDION */
.accordion { margin-top: 30px; }
.accordion-item { border-bottom: 1px solid var(--border-color); }
.accordion-header {
  width: 100%;
  text-align: left;
  padding: 20px 0;
  background: none;
  border: none;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark-blue);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.accordion-icon { transition: transform 0.3s ease; }
.accordion-item.active .accordion-icon { transform: rotate(45deg); stroke: var(--accent); }

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  color: var(--text-muted);
}

.accordion-item.active .accordion-content { padding-bottom: 20px; }

/* CTA FINAL */
.cta-card {
  background: var(--dark-blue);
  color: white;
  padding: 48px;
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.cta-content h2 { font-size: 2rem; margin-bottom: 12px; font-weight: 800; }

.footer { padding: 40px 0; background: #061524; color: #94A3B8; font-size: 0.85rem; }
.footer-container { display: flex; flex-direction: column; align-items: center; gap: 16px; }

/* ANIMACIONES SCROLL REVEAL */
.fade-in-element, .scroll-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-element.visible, .scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE MOBILE & TABLET */
@media (max-width: 992px) {
  .hero-container, .cta-card, .grid-two-columns { grid-template-columns: 1fr; }
  .hamburger-btn { display: flex; }
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 24px;
    display: none;
    border-bottom: 1px solid var(--border-color);
  }
  .nav-menu.active { display: flex; }
}