/* ----------------------------------- PALETA DE COLORES PRINCIPAL ----------------------------------- */
:root {
  --bg-main: #101010;
  --bg-secondary: #141414;
  --bg-tertiary: #181818;
  --text-main: #EBEBEB;
  --text-secondary: #A8A8A8;
  --text-muted: #555555;
  --text-title-task: #E0E0E0;
  --border-main: #2A2A2A;
  --border-panel: #3B3B3B;
  --btn-func-bg: #2B2B2B;
  --btn-func-hover: #262626;
  --btn-func-click: #0F0F0F;
  --font-family: 'Poppins', sans-serif;
  --font-size-base: 16px;
  --font-weight-regular: 400;
  --font-weight-semibold: 600;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 10px;
  /* Variables adicionales (deberías añadirlas en el HTML si no existen en el archivo base) */
  --card-bg: var(--bg-tertiary); /* Usando bg-tertiary para el fondo de las cartas */
  --hover-bg: #1f1f1f; /* Un color ligeramente más claro que bg-tertiary, calculado con tu paleta */
  --primary-color: var(--text-main); /* Usando text-main para los iconos principales */
}

/* ----------------------------------- ESTILOS BASE | PRINCIPALES ----------------------------------- */
* {
  box-sizing: border-box;
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  font-size: var(--font-size-base);
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: var(--text-main);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

a:hover {
  color: var(--text-secondary);
}

h1, h2, h3 {
  font-weight: var(--font-weight-semibold);
  color: var(--text-title-task);
  margin-bottom: 0.7em;
  line-height: 1.2;
}

h1 { 
  font-size: 3.5em; 
}

h2 { 
  font-size: 2.2em; 
}

h3 { 
  font-size: 1.5em; 
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 0;
}

section {
  padding: 120px 0;
  border-bottom: 1px solid var(--border-main);
  position: relative;
  overflow: hidden;
}

section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
}

section > * {
  position: relative;
  z-index: 1;
}

/* ----------------------------------- FONDOS DINÁMICOS ----------------------------------- */
.hero::before {
  background: radial-gradient(ellipse at center, rgba(85, 85, 85, 0.12) 0%, transparent 60%);
}

.feature-section::before {
  background-image: radial-gradient(circle, rgba(85, 85, 85, 0.15) 1px, transparent 1px);
  background-size: 24px 24px;
}

.feature-section.alt-bg::before {
  background: radial-gradient(ellipse at center, rgba(85, 85, 85, 0.15) 0%, transparent 70%);
}

.final-cta::before {
  background: linear-gradient(135deg, rgba(85, 85, 85, 0.06) 0%, rgba(42, 42, 42, 0.12) 100%);
}

/* ----------------------------------- UTILIDADES ----------------------------------- */
.text-center { 
  text-align: center; 
}

.max-width-md { 
  max-width: 720px; 
  margin: 0 auto; 
}

.max-width-lg { 
  max-width: 1000px; 
  margin: 0 auto; 
}

/* Scrollbar Premium */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border-panel);
  border-radius: 4px;
  transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Material Icons Optimizados */
.material-icons-round {
  font-family: 'Material Icons Round';
  font-weight: normal;
  font-style: normal;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  line-height: 1;
  text-transform: none;
  letter-spacing: normal;
  white-space: nowrap;
  direction: ltr;
}

.icon-small { 
  font-size: 1.3em; 
  line-height: 1; 
}

.icon-large { 
  font-size: 2.2em; 
  line-height: 1; 
  margin-bottom: 0.3em; 
}

/* ----------------------------------- SISTEMA DE BOTONES PREMIUM ----------------------------------- */
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.95em;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--btn-func-bg) 0%, var(--btn-func-hover) 100%);
  color: var(--text-main);
  border-color: var(--border-panel);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  transition: left 0.6s ease;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--btn-func-hover) 0%, var(--btn-func-click) 100%);
  border-color: var(--text-muted);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  transform: translateY(-3px);
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:active {
  background-color: var(--btn-func-click);
  transform: translateY(-1px) scale(0.98);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-secondary);
  border-color: var(--border-panel);
}

.btn-secondary:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--text-muted);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* ----------------------------------- ANIMACIONES FLUIDAS ----------------------------------- */
@keyframes fadeInUp {
  from { 
    opacity: 0; 
    transform: translateY(30px); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

@keyframes fadeInScale {
  from { 
    opacity: 0; 
    transform: scale(0.95); 
  }
  to { 
    opacity: 1; 
    transform: scale(1); 
  }
}

@keyframes shimmer {
  0% { 
    transform: translateX(-100%); 
  }
  100% { 
    transform: translateX(100%); 
  }
}

.animate-up { 
  animation: fadeInUp 0.8s ease-out forwards; 
}

.animate-scale { 
  animation: fadeInScale 0.7s ease-out forwards; 
}

/* ----------------------------------- ESTILOS | HEADER / NAVBAR ----------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(16, 16, 16, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-main);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  max-width: 1300px;
  margin: 0 auto;
  width: 92%;
}

/* ---------------- LOGO ---------------- */
.logo a {
  font-size: 1.4em;
  font-weight: var(--font-weight-semibold);
  color: var(--text-title-task);
  transition: color 0.3s ease;
  letter-spacing: -0.02em;
}

.logo a:hover {
  color: var(--text-main);
}

/* ---------------- NAVEGACIÓN ---------------- */
.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 24px);
  flex-wrap: wrap;
  justify-content: center;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: var(--text-secondary);
  font-size: 0.93em;
  font-weight: var(--font-weight-regular);
  position: relative;
  padding: 6px 0;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--text-main);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-nav a:hover {
  color: var(--text-main);
}

.main-nav a:hover::after {
  width: 100%;
}

.main-nav a.active-nav {
  color: var(--text-main);
  font-weight: var(--font-weight-semibold);
}

.main-nav a.active-nav::after {
  width: 100%;
}


/* ---------------- BOTÓN (CTA) ---------------- */
.main-nav a.nav-cta {
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  background-color: var(--btn-func-bg);
  border: 2px solid var(--border-panel);
  color: var(--text-main);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-nav a.nav-cta::after {
  display: none;
}

.main-nav a.nav-cta:hover {
  background-color: var(--btn-func-hover);
  /* Uso de valor hardcodeado para hover, pero debería ser una variable si es posible */
  border-color: var(--text-muted); 
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* ----------------------------------- HERO SECTION IMPACTANTE ----------------------------------- */
.hero {
  padding-top: 160px;
  padding-bottom: 140px;
  position: relative;
  overflow: hidden;
}

/* Ajustes al HERO específico de FAQs */
#faqs-hero {
  padding-top: 120px;
  padding-bottom: 100px;
}

#faqs-hero .hero-content h1 {
  font-size: clamp(2.2em, 5vw, 3.2em);
  margin-bottom: 20px;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-content h1 {
  font-size: clamp(2.5em, 6vw, 4em);
  line-height: 1.1;
  margin-bottom: 32px;
  letter-spacing: -0.03em;
  /* Estilos de gradiente */
  background: linear-gradient(135deg, var(--text-title-task) 0%, var(--text-main) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1.1em, 2.5vw, 1.3em);
  color: var(--text-secondary);
  margin-bottom: 50px;
  line-height: 1.7;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* ----------------------------------- SECCIONES DE FEATURES (CONTENIDO) ----------------------------------- */
.feature-section {
  background-color: var(--bg-main);
}

.feature-section.alt-bg {
  background-color: var(--bg-secondary);
}

.section-header {
  text-align: center;
  margin-bottom: 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.section-header-title-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 0;
}

.section-header .material-icons-round {
  color: var(--text-main);
  font-size: 2.2em;
  line-height: 1;
}

.section-header-title-wrapper h2 {
  margin-bottom: 0; 
  text-align: left; /* Alineación del título dentro del wrapper */
}

.section-header h2 { 
  font-size: 2.2em; 
}

/* ----------------------------------- ESTILOS | FAQ ACCORDION ----------------------------------- */
.faq-section-group {
  max-width: 900px;
  margin: 0 auto 60px;
}

.faq-accordion {
  margin-top: 40px;
}

.accordion-item {
  border: 1px solid var(--border-panel);
  margin-bottom: 15px;
  border-radius: var(--radius-md);
  background-color: var(--card-bg); /* Usando bg-tertiary */
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  background-color: var(--card-bg);
  font-weight: var(--font-weight-semibold);
  font-size: 1.1em;
  color: var(--text-title-task);
  transition: background-color 0.2s, color 0.2s;
}

.accordion-header:hover {
  background-color: var(--bg-secondary); /* Usando bg-secondary para hover */
  color: var(--text-main);
}

.accordion-header h3 {
  margin: 0;
  font-size: 1em; /* Mantiene el tamaño dentro del header */
  color: inherit;
}

.accordion-icon {
  transition: transform 0.3s ease;
  color: var(--text-secondary); /* Color del icono por defecto */
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
  color: var(--text-main); /* El color cambia al estar activo */
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding: 0 25px;
  color: var(--text-secondary);
}

.accordion-item.active .accordion-content {
  max-height: 500px; /* Valor alto para transición */
  padding: 0px 25px 25px 25px;
}

.accordion-content p {
  margin-top: 0;
  margin-bottom: 0;
  line-height: 1.6;
  color: var(--text-secondary);
}

.accordion-content ul {
  padding-left: 20px;
  margin-top: 15px;
  color: var(--text-secondary);
}

.accordion-content li {
  margin-bottom: 8px;
}

/* Estilos para las divisiones entre grupos de FAQ */
#faqs-content hr {
  border: none;
  border-top: 1px solid var(--border-main);
  margin: 60px auto;
  max-width: 900px;
}

/* ----------------------------------- ESTILOS | CTA FINAL ----------------------------------- */
.final-cta {
  padding-top: 120px;
  padding-bottom: 120px;
  background-color: var(--bg-main);
}

.final-cta-inner {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(20, 20, 20, 0.8) 100%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-panel);
  padding: 70px 50px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
}

.final-cta-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.03), transparent 60%);
  pointer-events: none;
}

.final-cta-inner h2 {
  font-size: 2.5em;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.final-cta-inner p {
  margin-bottom: 36px;
  font-size: 1.1em;
  color: var(--text-secondary);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

.final-cta-inner .btn-primary {
  min-width: 250px;
  padding: 16px 40px;
  font-size: 1.05em;
  position: relative;
  z-index: 1;
}

.final-cta-inner .small-text {
  margin-top: 18px;
  font-size: 0.85em;
  color: var(--text-muted);
  position: relative;
  z-index: 1;
}

/* ----------------------------------- ESTILOS | FOOTER ----------------------------------- */
.site-footer {
  padding: 0px 0;
  border-top: 1px solid var(--border-main);
  color: var(--text-secondary);
  font-size: 0.9em;
  background-color: var(--bg-main);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  width: 90%;
}

.footer-inner nav {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
}

.site-footer a {
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.site-footer a:hover {
  color: var(--text-main);
}

/* ----------------------------------- RESPONSIVE DESIGN ----------------------------------- */
@media (max-width: 1100px) {
  .main-nav ul {
    gap: 20px;
  }

  .two-column-layout {
    grid-template-columns: 1fr;
    gap: 60px;
  }
}

@media (max-width: 900px) {
  .hero {
    padding-top: 120px;
    padding-bottom: 100px;
  }

  section {
    padding: 100px 0;
  }
  
  .faq-section-group {
    max-width: 100%;
  }
}

@media (max-width: 850px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 0;
    gap: 16px;
  }

  .main-nav ul {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 16px 24px;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 30px 0;
  }
  
  .final-cta {
    padding-top: 80px;
    padding-bottom: 80px;
  }
}

@media (max-width: 600px) {
  h1 {
    font-size: 2.2em;
  }

  h2 {
    font-size: 1.8em;
  }

  h3 {
    font-size: 1.3em;
  }

  section {
    padding: 80px 0;
  }

  .hero {
    padding-top: 90px;
    padding-bottom: 70px;
  }

  .final-cta-inner {
    padding: 48px 28px;
    margin: 0 20px;
  }

  .final-cta-inner h2 {
    font-size: 2.2em;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    text-align: center;
  }

  .footer-inner nav {
    order: 2;
    width: 100%;
    justify-content: center;
  }
}