/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #1a1a1a;
  background-color: #ffffff;
}

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

/* Header Styles */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: all 0.3s ease;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-brand .logo {
  height: 40px;
  width: auto;
  margin-right: 2rem;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-buttons {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-auth {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.auth-text {
  color: #4a5568;
  font-size: 0.8rem;
  text-align: center;
}

.login-button {
  text-decoration: none;
  color: #0B808A;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border: 1px solid #0B808A;
  border-radius: 25px;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.login-button:hover {
  background: #0B808A;
  color: white;
  transform: translateY(-1px);
}

.nav-link {
  text-decoration: none;
  color: #4a5568;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: #0B808A;
}

.nav-link.cta-button {
  background: linear-gradient(135deg, #000000 0%, #0B808A 100%);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.nav-link.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(11, 128, 138, 0.3);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: #4a5568;
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

/* Hero Section con Video - Layout de dos columnas */
.hero {
  padding: 8rem 2rem 4rem;
  background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-text {
  text-align: left;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: #1a202c;
}

.highlight {
  background: linear-gradient(135deg, #000000 0%, #0B808A 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.25rem;
  color: #4a5568;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
}

.btn-primary, .btn-secondary {
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, #000000 0%, #0B808A 100%);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(11, 128, 138, 0.4);
}

.btn-secondary {
  background: transparent;
  color: #0B808A;
  border: 2px solid #0B808A;
}

.btn-secondary:hover {
  background: #0B808A;
  color: white;
  transform: translateY(-3px);
}

.btn-primary.large, .btn-secondary.large {
  padding: 1.25rem 2.5rem;
  font-size: 1.1rem;
}

.hero-stats {
  display: flex;
  gap: 2rem;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: #f47121;
}

.stat-label {
  font-size: 0.9rem;
  color: #718096;
}

/* Video Container */
.hero-video {
  display: flex;
  justify-content: center;
  align-items: center;
}

.video-container {
  position: relative;
  width: 100%;
  max-width: 1000px; /* Aumentado de 500px a 600px */
  aspect-ratio: 16/9;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
  animation: float 6s ease-in-out infinite;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

/* Nueva Sección Demo */
.hero-demo {
  padding: 4rem 2rem;
  background: white;
  overflow: visible; /* Permitir que las sombras se vean */
}

.hero-demo-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  overflow: visible; /* Asegurar que no se corten las sombras */
}

.demo-chat {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible; /* Permitir sombras del chat */
}

.demo-image {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible; /* Permitir sombras de la imagen */
}

.irma-character {
  max-width: 400px;
  width: 100%;
  height: auto;
  display: block;
}

/* Chat Preview */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.chat-preview {
  background: white;
  border-radius: 20px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
  width: 100%;
  max-width: 400px;
  overflow: hidden;
  animation: float 6s ease-in-out infinite;
}

.chat-header {
  background: linear-gradient(135deg, #000000 0%, #0B808A 100%);
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.chat-avatar img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid white;
}

.chat-info {
  color: white;
}

.chat-name {
  display: block;
  font-weight: 600;
}

.chat-status {
  font-size: 0.8rem;
  opacity: 0.9;
}

.chat-messages {
  padding: 1.5rem;
  height: 300px;
  overflow-y: auto;
}

.message {
  margin-bottom: 1rem;
  animation: slideIn 0.5s ease-out;
}

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

.message p {
  padding: 0.75rem 1rem;
  border-radius: 18px;
  max-width: 80%;
  word-wrap: break-word;
}

.irma-message p {
  background: #f7fafc;
  color: #2d3748;
  margin-right: auto;
}

.user-message p {
  background: linear-gradient(135deg, #000000 0%, #0B808A 100%);
  color: white;
  margin-left: auto;
}

.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 0.75rem 1rem;
  background: #f7fafc;
  border-radius: 18px;
  width: fit-content;
  animation: pulse 1.5s infinite;
}

.typing-indicator span {
  width: 8px;
  height: 8px;
  background: #cbd5e0;
  border-radius: 50%;
  animation: bounce 1.4s infinite ease-in-out both;
}

.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
  0%, 80%, 100% {
    transform: scale(0);
  } 40% {
    transform: scale(1);
  }
}

/* Section Styles */
section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.2rem;
  color: #4a5568;
  max-width: 600px;
  margin: 0 auto;
}

/* Features Section */
.features {
  background: #f7fafc;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

/* --- MEJORA: Unificación de Feature Cards --- */
.feature-card-base {
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-card-base:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(11, 128, 138, 0.3);
}

.feature-card-base h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: white;
  margin-bottom: 1rem;
}

.feature-card-base p {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
}

.feature-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 1rem;
  display: block;
}

/* Clases específicas para el fondo */
.bg-theme-1 {
  background: linear-gradient(180deg, #000000 0%, #0b808a 100%);
}

.bg-theme-2 {
  background: linear-gradient(180deg, #0b808a 0%, #000000 100%);
}

/* Testimonials Section */
.testimonials {
  background: #f7fafc;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
}

.testimonial-content p {
  font-size: 1.1rem;
  color: #2d3748;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-info h4 {
  font-weight: 600;
  color: #1a202c;
}

.author-info span {
  color: #718096;
  font-size: 0.9rem;
}

/* Pricing Section */
/* Centrar horizontalmente toda la grilla de precios */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  width: 100%;
  align-items: stretch;
  justify-content: center;
  margin: 0 auto;
}

.pricing .container {
  display: flex;
  max-width: 1400px;
  flex-direction: column;
  align-items: center;
}

.pricing-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
  position: relative;
  transition: all 0.3s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: flex-start; /* Alineación por defecto */
}

/* Centrado específico para la tarjeta Corporate (última tarjeta) */
.pricing-card:last-child {
   justify-content: center; /* Cambiar para alinear el título arriba */
 /* Centra horizontalmente el contenido interno */
}

/* Asegurar que el contenido de Corporate esté organizado correctamente */
.pricing-card:last-child .pricing-header {
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* Título arriba */
  align-items: center;
  margin-bottom: 0; /* Quitar margen inferior del header */
}

.pricing-card:last-child .pricing-header h3 {
  margin-bottom: 1rem;
}

.pricing-card:last-child .pricing-header p {
  margin-bottom: 0; /* Quitar margen del párrafo */
  flex-grow: 0; /* Permitir que el párrafo ocupe el espacio disponible */
  display: flex;
  align-items: center; /* Centrar verticalmente solo el párrafo */
  text-align: center;
  margin-top: 2rem; /* Añadir espacio arriba del párrafo */
}

/* Mantener el botón en la parte inferior de Corporate */
.pricing-card:last-child .pricing-button {
  margin-top: auto;
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.pricing-card.featured {
  border: 2px solid #0B808A;
  transform: scale(1.05);
}

.pricing-card.featured:hover {
  transform: scale(1.05) translateY(-5px);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #000000 0%, #0B808A 100%);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.pricing-header {
  text-align: center;
  margin-bottom: 2rem;
}

.pricing-header h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1a202c;
  margin-bottom: 1rem;
}

/* --- SOLUCIÓN DEFINITIVA PARA EL PRECIO --- */
.price {
  display: flex;
  align-items: center; /* Centra verticalmente el precio con el texto lateral */
  justify-content: center;
  gap: 0.5rem; /* Espacio entre el número y el texto */
  margin-bottom: 1.5rem;
}

.amount {
  font-size: 2.75rem;
  font-weight: 700;
  color: #1a202c;
  line-height: 1;
}

.currency {
  font-size: 1.5rem;
  font-weight: 500;
  color: #4a5568;
  margin-right: 0.25rem; /* Espacio entre $ y el número */
}

.price-period {
  font-size: 0.9rem;
  color: #718096;
  line-height: 1.2;
  text-align: left; /* Alinea el texto a la izquierda dentro de su caja */
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
  text-align: left;
  flex-grow: 1; /* Hace que esta sección ocupe el espacio sobrante */
}

.pricing-features li {
  padding: 0.5rem 0;
  color: #4a5568;
}

.pricing-button {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, #000000 0%, #0B808A 100%);
  color: white;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  margin-top: auto; /* Empuja el botón al final de la tarjeta */
}

.pricing-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(11, 128, 138, 0.3);
}

/* Pricing Footer */
.pricing-footer {
  text-align: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e2e8f0;
}

.pricing-footer-text {
  font-size: 1.1rem;
  color: #4a5568;
  margin-bottom: 1.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.pricing-contact-button {
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #000000 0%, #0B808A 100%);
  color: white;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.pricing-contact-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(11, 128, 138, 0.3);
}

/* CTA Section */
.cta {
  background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
  color: white;
  text-align: center;
}

.cta-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.cta-note {
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Footer */
.footer {
  background: #1a202c;
  color: white;
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  height: 40px;
  margin-bottom: 1rem;
}

.footer-brand p {
  color: #a0aec0;
  line-height: 1.6;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.footer-column h4 {
  font-weight: 600;
  margin-bottom: 1rem;
  color: white;
}

.footer-column a {
  display: block;
  color: #a0aec0;
  text-decoration: none;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.footer-column a:hover {
  color: #f47121;
}

.footer-bottom {
  border-top: 1px solid #2d3748;
  padding-top: 2rem;
  text-align: center;
  color: #a0aec0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }
  
  .nav-links {
    display: none;
  }
  
  .nav-auth {
    gap: 0.2rem;
  }
  
  .nav-buttons {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  
  .hero {
    padding: 6rem 1rem 3rem;
    min-height: auto;
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .hero-text {
    text-align: center;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-stats {
    justify-content: center;
    gap: 1.5rem;
  }
  
  .video-container {
    max-width: 100%;
    margin: 0 auto;
  }
  
  .hero-demo {
    padding: 3rem 1rem;
  }
  
  .hero-demo-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .irma-character {
    max-width: 300px;
  }
  
  .features-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  
  .pricing-grid {
    grid-template-columns: 1fr;
    justify-items: center; /* Centra las tarjetas en mobile */
  }
  
  .pricing-card.featured {
    transform: none;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-links {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .container {
    padding: 0 1rem;
  }
  
  .nav {
    padding: 1rem;
  }
  
  section {
    padding: 3rem 0;
  }

  /* === SOLUCIÓN PARA MENÚ RESPONSIVE === */

/* Estilos para mostrar el menú desplegable cuando tiene la clase 'active' */
.nav-links.active {
  display: flex;
  flex-direction: column; /* Apila los enlaces verticalmente */
  position: absolute;
  top: 100%; /* Se posiciona justo debajo del header */
  left: 0;
  right: 0;
  background: white;
  padding: 1.5rem;
  border-top: 1px solid #e2e8f0;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  gap: 1.5rem; /* Espacio entre los enlaces */
}

/* Opcional: Animar el botón de 3 líneas para que se transforme en una 'X' */
.mobile-menu-toggle.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.mobile-menu-toggle.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}
}

/* =============================================== */
/* === PERSONALIZACIÓN DEL BANNER DE COOKIES === */
/* =============================================== */

/* Fondo del banner con gradiente y texto blanco */
.cc-window.cc-banner {
  background: linear-gradient(135deg, #000000 0%, #0B808A 100%) !important;
  color: #ffffff !important;
}

/* Fondo del botón con el color naranja y sin borde */
.cc-btn.cc-dismiss {
  background: #f47121 !important;
  color: #ffffff !important;
  border: none !important;
}

/* Efecto hover para el botón (opcional pero recomendado) */
.cc-btn.cc-dismiss:hover {
    background: #d85e18 !important;
}

/* Estilo específico para el enlace "Leer más" */
.cc-window.cc-banner .cc-link {
  color: #ffffff !important;
  text-decoration: underline !important;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.cc-window.cc-banner .cc-link:hover {
  opacity: 1;
}

/* =============================================== */
/* === SECCIÓN CONVERSACIONES EXTRA (CORREGIDO) === */
/* =============================================== */

.conversations-extra {
  position: relative;
  background-color: #f7fafc;
  padding: 5rem 0;
  overflow: visible; /* Cambiar para permitir que las sombras se vean */
  min-height: 400px; /* Asegurar altura mínima para la imagen */
}

.conversations-extra .container {
  max-width: 800px; /* Aumentar ancho para mejor lectura */
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
  padding: 0 2rem; /* Añadir padding lateral */
}

.conversations-extra h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 2rem; /* Aumentar espacio inferior */
  line-height: 1.3; /* Mejorar interlineado del título */
  max-width: 700px; /* Limitar ancho del título */
  margin-left: auto;
  margin-right: auto;
}

.conversations-extra p {
  font-size: 1.25rem;
  color: #4a5568;
  line-height: 1.8; /* Mejorar interlineado del párrafo */
  max-width: 650px; /* Limitar ancho del párrafo para mejor lectura */
  margin: 0 auto;
}

/* Posicionamiento de la imagen de Irma en la esquina */
.irma-corner-image {
  position: absolute;
  bottom: 0; /* Cambiar a 0 para que se vea completa */
  left: 20px;
  width: 300px; /* Aumentar tamaño */
  height: auto;
  z-index: 1;
  opacity: 0.9; /* Aumentar opacidad para que se vea mejor */
}

.irma-corner-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain; /* Mantener proporciones */
}

/* Ajustes para tablets */
@media (max-width: 1024px) {
  .irma-corner-image {
    width: 250px;
    left: 10px;
  }
  
  .conversations-extra .container {
    max-width: 700px;
  }
}

/* Ajustes para móviles */
@media (max-width: 768px) {
  .conversations-extra {
    padding: 4rem 0;
  }
  
  .conversations-extra .container {
    max-width: 95%;
    padding: 0 1rem;
  }
  
  .conversations-extra h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    line-height: 1.4;
  }
  
  .conversations-extra p {
    font-size: 1.1rem;
    line-height: 1.7;
  }
  
  /* En móviles, mostrar la imagen pero más pequeña */
  .irma-corner-image {
    width: 150px;
    left: 5px;
    bottom: 10px;
    opacity: 0.7;
  }
}

@media (max-width: 480px) {
  .irma-corner-image {
    display: none; /* Ocultar solo en pantallas muy pequeñas */
  }
}

/* =============================================== */
/* === ESTILOS PARA PÁGINAS LEGALES === */
/* =============================================== */

.legal-page {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  min-height: 100vh;
  padding-top: 100px;
}

.legal-hero {
  background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
  color: white;
  text-align: center;
  padding: 4rem 0;
  margin-bottom: 0;
}

.legal-hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: white;
}

.legal-hero p {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

.legal-content {
  max-width: 1400px; /* <--- Valor actualizado para mayor amplitud */
  margin: 0 auto;
  padding: 4rem 2rem;
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin-bottom: 3rem;
  position: relative;
  margin-top: -2rem;
}

.legal-document {
  margin-bottom: 4rem;
  padding-bottom: 3rem;
  border-bottom: 2px solid #e2e8f0;
}

.legal-document:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.document-header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem;
  background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
  border-radius: 12px;
  border-left: 4px solid #0B808A;
}

.document-header h2 {
  font-size: 2.2rem;
  font-weight: 600;
  color: #1a202c;
  margin-bottom: 0.5rem;
}

.document-meta {
  font-size: 0.95rem;
  color: #4a5568;
  margin-bottom: 1rem;
}

.document-intro {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #4a5568;
  text-align: left;
}

.legal-section {
  margin-bottom: 2.5rem;
}

.legal-section h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1a202c;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #0B808A;
  display: inline-block;
}

.legal-section h4 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #2d3748;
  margin: 1.5rem 0 0.75rem 0;
}

.legal-section p {
  font-size: 1rem;
  line-height: 1.7;
  color: #4a5568;
  margin-bottom: 1rem;
  text-align: justify;
}

.legal-section ul, .legal-section ol {
  margin: 1rem 0 1rem 2rem;
  color: #4a5568;
  line-height: 1.7;
}

.legal-section li {
  margin-bottom: 0.5rem;
}

/* Destacar texto importante */
.legal-section strong {
  color: #1a202c;
  font-weight: 600;
}

/* Definiciones estilo diccionario */
.definition-list {
  background: #f7fafc;
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid #f47121;
  margin: 1.5rem 0;
}

.definition-item {
  margin-bottom: 1rem;
}

.definition-item:last-child {
  margin-bottom: 0;
}

.definition-term {
  font-weight: 600;
  color: #1a202c;
  display: inline-block;
  margin-right: 0.5rem;
}

.definition-desc {
  color: #4a5568;
  display: inline;
}

/* Advertencias importantes */
.legal-warning {
  background: linear-gradient(135deg, #fed7d7 0%, #fbb6ce 100%);
  border: 1px solid #e53e3e;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem 0;
}

.legal-warning h4 {
  color: #c53030;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.legal-warning p {
  color: #742a2a;
  margin-bottom: 0;
}

/* Información destacada */
.legal-highlight {
  background: linear-gradient(135deg, #e6fffa 0%, #b2f5ea 100%);
  border: 1px solid #0B808A;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem 0;
}

.legal-highlight h4 {
  color: #0B808A;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.legal-highlight p {
  color: #234e52;
  margin-bottom: 0;
}

/* Contacto final */
.legal-contact {
  background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
  color: white;
  text-align: center;
  padding: 3rem 2rem;
  border-radius: 12px;
  margin-top: 3rem;
}

.legal-contact h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: white;
}

.legal-contact p {
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.legal-contact a {
  color: #f47121;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.legal-contact a:hover {
  color: #e85d0d;
}

/* Navegación interna */
.legal-nav {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.legal-nav h4 {
  margin-bottom: 1rem;
  color: #1a202c;
  font-size: 1.1rem;
}

.legal-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.legal-nav li {
  margin-bottom: 0.5rem;
}

.legal-nav a {
  color: #0B808A;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.legal-nav a:hover {
  color: #065f65;
}

/* Responsive para páginas legales */
@media (max-width: 768px) {
  .legal-hero {
    padding: 3rem 1rem;
  }
  
  .legal-hero h1 {
    font-size: 2.2rem;
  }
  
  .legal-content {
    padding: 2rem 1rem;
    margin-top: -1rem;
  }
  
  .document-header {
    padding: 1.5rem 1rem;
  }
  
  .document-header h2 {
    font-size: 1.8rem;
  }
  
  .legal-section h3 {
    font-size: 1.3rem;
  }
  
  .legal-section p {
    text-align: left;
  }
  
  .definition-list {
    padding: 1rem;
  }
  
  .legal-warning,
  .legal-highlight {
    padding: 1rem;
  }
  
  .legal-contact {
    padding: 2rem 1rem;
  }
}

/* =============================================== */
/* === ESTILOS PARA PROMO DE DOCUMENTACIÓN === */
/* =============================================== */

.docs-promo {
  background-color: #f7fafc; /* Un fondo sutil para diferenciarla */
  padding: 4rem 0;
}

.docs-promo-content {
  display: grid;
  grid-template-columns: auto 1fr auto; /* Icono | Texto | Botón */
  gap: 2rem;
  align-items: center;
  background-color: white;
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
}

.docs-promo-icon svg {
  width: 60px;
  height: 60px;
  color: #0B808A; /* Color principal de la marca */
}

.docs-promo-text h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 0.5rem;
}

.docs-promo-text p {
  font-size: 1.1rem;
  color: #4a5568;
  line-height: 1.7;
}

/* Ajustes responsivos para esta sección específica */
@media (max-width: 992px) {
  .docs-promo-content {
    grid-template-columns: 1fr; /* Apilamos los elementos */
    text-align: center;
    gap: 1.5rem;
    padding: 2rem;
  }

  .docs-promo-icon {
    margin: 0 auto; /* Centramos el ícono */
  }
}

/* =============================================== */
/* === ESTILOS PARA PÁGINA 404 === */
/* =============================================== */

.error-page-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh; /* Ocupa toda la altura de la pantalla */
  text-align: center;
  padding: 2rem;
  background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%); /* Fondo sutil como el del hero */
}

.error-content {
  max-width: 600px;
}

.error-irma-character {
  max-width: 150px; /* Un tamaño amigable, no demasiado grande */
  margin-bottom: 2rem;
  opacity: 0.8;
}

.error-code {
  font-size: 8rem; /* Número 404 bien grande */
  font-weight: 700;
  line-height: 1;
  color: #e2e8f0; /* Un color de fondo sutil que no compita */
}

.error-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a202c;
  margin-top: 0rem; /* Ajustado para moverlo más abajo */
  margin-bottom: 1rem;
  line-height: 1.2; /* Ajustado para achicar el interlineado */
}

.error-description {
  font-size: 1.2rem;
  color: #4a5568;
  margin-bottom: 2.5rem;
}

.error-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap; /* Para que los botones se apilen en pantallas pequeñas */
}

/* =============================================== */
/* === ESTILOS PARA SELLO DE VERIFICACIÓN META === */
/* =============================================== */

.verification-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem; /* Espacio para separarlo del párrafo */
  padding: 0.5rem 1rem;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #ffffff;
}

.verification-icon {
  width: 1.2em;
  height: 1.2em;
  color: #4ade80; /* Un verde vibrante que indica verificación */
}