/* ============================================= */
/* ========= ESTILOS PÁGINA UPGRADE ============ */
/* ============================================= */

/* --- Sección Layout Alternado --- */
.alternating-layout-section {
  padding: 80px 0;
  background-color: #fff;
}

.feature-row {
  display: flex;
  align-items: center;
  gap: 50px;
  max-width: 1000px;
  margin: 0 auto 60px;
}

.feature-row:last-child {
  margin-bottom: 0;
}

/* Alternar el orden de imagen y texto */
.feature-row:nth-child(even) {
  flex-direction: row-reverse;
}

.feature-row .text-content {
  flex: 1;
}

.feature-row .text-content h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: #1D1D1B;
}

.feature-row .text-content p {
  font-family: 'Source Code Pro', monospace;
  line-height: 1.7;
  color: #555;
}

.feature-row .image-content {
  flex: 1;
  max-width: 450px;
}

.feature-row .image-content img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* --- Sección Tabla de Compatibilidad --- */
.compatibility-section {
  padding: 60px 0 80px 0;
  background-color: #f9f9ff;
}
.compatibility-section .section-subtitle {
  text-align: center;      /* <-- Esto centrará el texto */
  margin-bottom: 40px;     /* <-- Esto crea espacio entre el párrafo y la tabla */
  margin-top: -20px;       /* <-- Ajuste opcional para acercarlo al título */
}

.table-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
  overflow-x: auto; /* Para que la tabla no se rompa en móvil */
}

table {
  width: 100%;
  border-collapse: collapse;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.07);
  overflow: hidden; /* Para que el border-radius afecte a la tabla */
}

th, td {
  padding: 18px 20px;
  text-align: left;
  border-bottom: 1px solid #e8e8e8;
}

thead {
  background-color: #1D1D1B;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.5px;
}

tbody tr:last-child td {
  border-bottom: none;
}

tbody td:first-child {
  font-weight: bold;
  color: #333;
}

/* --- Sección Llamada a la Acción (CTA) Final --- */
.cta-section {
  background-color: #f9f9ff; /* <-- CAMBIADO: De negro a gris claro */
  color: #1D1D1B;             /* <-- CAMBIADO: De blanco a negro */
  padding: 80px 20px;
  text-align: center;
  border-top: 1px solid #e0e0e0; /* <-- AÑADIDO: Línea sutil de separación */
}

.cta-section h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.cta-section p {
  font-family: 'Source Code Pro', monospace;
  max-width: 600px;
  margin: 0 auto 30px;
  color: #555; /* <-- CAMBIADO: De gris claro a gris oscuro */
}

.btn-cta {
  padding: 15px 35px;
  font-size: 1.1rem;
  font-weight: bold;
}

/* --- Ajuste para móviles --- */
@media (max-width: 768px) {
  .cta-section h2 {
    font-size: 2rem;
  }
}

/* ============================================= */
/* === ESTILOS PARA LA BARRA CTA STICKY (FINAL) === */
/* ============================================= */

#cta-placeholder {
  position: relative;
}

/* La sección original estática */
.cta-section {
  background-color: #f9f9ff;
  color: #1D1D1B;
  padding: 80px 20px;
  text-align: center;
  border-top: 1px solid #e0e0e0;
}

/* Transición para cuando la barra deja de ser sticky */
.cta-section {
  transition: opacity 0.5s ease-out;
}

/* Estilos de la barra cuando está "pegajosa" y oculta */
.cta-section.is-sticky {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  
  background: rgba(29, 29, 27, 0.9);
  backdrop-filter: blur(10px);
  
  padding: 15px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
  z-index: 998;
  
  opacity: 0;
  transform: translateY(100%);
  pointer-events: none;
  
  /* Animación de entrada */
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), 
              opacity 0.5s ease-out;
}

/* Estilos de la barra cuando es visible */
.cta-section.is-sticky.is-visible {
  opacity: 1;
  transform: translateY(0%);
  pointer-events: auto;
}

/* --- Contenido interno de la barra simplificada --- */
.cta-section.is-sticky .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cta-section.is-sticky p {
  display: none;
}

.cta-section.is-sticky h2 {
  font-size: 1.2rem;
  margin: 0;
  color: #fff;
}

.cta-section.is-sticky .btn-cta {
  padding: 10px 20px;
  font-size: 0.9rem;
}