/* ========================================
   🎨 BILLETAXO - SISTEMA DE DISEÑO PRINCIPAL
   Sistema de estilos para internacionalización
   ======================================== */

/* 🎯 Variables CSS - Sistema de Diseño */
:root {
  /* Colores principales - Fintech Moderna */
  --primary: #1E3A8A;           /* Azul principal */
  --secondary: #22D3EE;         /* Aqua */
  --accent: #FACC15;            /* Amarillo */
  --background: #F9FAFB;        /* Gris claro */
  --surface: #FFFFFF;           /* Blanco */
  --text-primary: #1F2937;      /* Gris oscuro */
  --text-secondary: #6B7280;    /* Gris medio */
  --error: #EF4444;             /* Rojo coral */
  --success: #10B981;           /* Verde */
  --warning: #F59E0B;           /* Naranja */

  /* Tipografías */
  --font-primary: 'Roboto', 'Segoe UI', system-ui, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;

  /* Espaciados */
  --space-xs: 0.25rem;    /* 4px */
  --space-sm: 0.5rem;     /* 8px */
  --space-md: 1rem;       /* 16px */
  --space-lg: 1.5rem;     /* 24px */
  --space-xl: 2rem;       /* 32px */
  --space-2xl: 3rem;      /* 48px */
  --space-3xl: 4rem;      /* 64px */

  /* Sombras */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

  /* Bordes */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;

  /* Transiciones */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 🔄 Reset y Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--background);
  min-height: 100vh;
  overflow-x: hidden;
}

.container {
  max-width: var(--wide, 1200px);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* 📱 Header Moderno */
.header-modern {
  background: linear-gradient(135deg, var(--primary) 0%, #3B82F6 50%, var(--secondary) 100%);
  padding: var(--space-md) 0;
  position: relative;
  z-index: 100;
}

.header-content {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.logo img {
  height: 40px;
  width: auto;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  text-decoration: none;
  transition: var(--transition);
}

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

.nav-main {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: var(--space-lg);
  margin: 0;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--accent);
}

.nav-cta .btn {
  background: var(--accent);
  color: var(--primary);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-lg);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.nav-cta .btn:hover {
  background: #FDE047;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* 🌟 Hero Section */
.home-hero {
  background: linear-gradient(135deg, var(--primary) 0%, #3B82F6 50%, var(--secondary) 100%);
  color: white;
  padding: var(--space-3xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.home-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 2;
}

.hero-subtitle {
  font-size: 1.75rem;
  font-weight: 300;
  margin-bottom: var(--space-lg);
  opacity: 0.95;
  position: relative;
  z-index: 2;
}

.hero-description {
  font-size: 1.25rem;
  margin-bottom: var(--space-xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.9;
  position: relative;
  z-index: 2;
}

.cta-buttons {
  display: flex;
  gap: var(--space-lg);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-xl);
  position: relative;
  z-index: 2;
}

.cta-primary, .cta-secondary {
  padding: var(--space-lg) var(--space-xl);
  border-radius: var(--radius-xl);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
}

.cta-primary {
  background: var(--accent);
  color: var(--primary);
}

.cta-primary:hover {
  background: #FDE047;
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

.cta-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.cta-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--accent);
  transform: translateY(-3px);
}

/* 🎯 Service Cards */
.service-card {
  background: var(--surface);
  padding: var(--space-xl);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.05);
  text-align: center;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--secondary);
}

.service-icon {
  font-size: 3rem;
  margin-bottom: var(--space-lg);
  display: block;
}

.service-card h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--primary);
  margin-bottom: var(--space-md);
}

.service-card p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}

/* 🎨 Buttons */
.btn {
  display: inline-block;
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-lg);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: #1E40AF;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

/* 🌈 Utilities */
.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
}

.fade-in {
  animation: fadeInUp 0.6s ease-out;
}

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

/* 📱 Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 var(--space-md);
  }

  .header-content {
    padding: 0 var(--space-md);
  }

  .nav-main {
    display: none;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.25rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-primary, .cta-secondary {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  .text-gradient {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-description {
    font-size: 1rem;
  }
}

/* 📋 ESTILOS PARA PÁGINAS LEGALES */

/* Hero section para páginas legales */
.legal-hero {
  background: linear-gradient(135deg, var(--primary) 0%, #3B82F6 50%, var(--secondary) 100%);
  color: white;
  padding: var(--space-3xl) 0 var(--space-2xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.legal-hero .hero-title {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.legal-hero .hero-subtitle {
  font-size: 1.5rem;
  font-weight: 300;
  margin-bottom: var(--space-lg);
  opacity: 0.95;
}

.hero-meta {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.meta-item {
  background: rgba(255, 255, 255, 0.1);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-lg);
  font-size: 0.9rem;
  backdrop-filter: blur(10px);
}

/* Contenido principal de páginas legales */
.legal-content {
  background: var(--background);
  padding: var(--space-3xl) 0;
}

.content-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: var(--space-3xl);
  line-height: 1.8;
}

.intro-text {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--secondary);
  margin-bottom: var(--space-2xl);
}

.intro-text p {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin: 0;
}

/* Títulos dentro del contenido */
.content-wrapper h3 {
  color: var(--primary);
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--secondary);
}

.content-wrapper h3:first-of-type {
  margin-top: 0;
}

/* Párrafos */
.content-wrapper p {
  margin-bottom: var(--space-lg);
  color: var(--text-primary);
  font-size: 1rem;
}

/* Listas */
.content-wrapper ul {
  margin: var(--space-lg) 0;
  padding-left: 0;
  list-style: none;
}

.content-wrapper ul li {
  margin-bottom: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--accent);
  position: relative;
  transition: var(--transition);
}

.content-wrapper ul li::before {
  content: '✅';
  position: absolute;
  left: -8px;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  padding: 0.25rem;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
}

.content-wrapper ul li:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-md);
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

/* Enlaces */
.content-wrapper a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
}

.content-wrapper a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: var(--transition);
}

.content-wrapper a:hover {
  color: var(--secondary);
  background: rgba(34, 211, 238, 0.1);
}

.content-wrapper a:hover::after {
  width: 100%;
}

/* Footer mejorado */
.footer-main {
  background: linear-gradient(135deg, var(--primary) 0%, #3B82F6 100%);
  color: white;
  padding: var(--space-3xl) 0 var(--space-lg);
  margin-top: var(--space-3xl);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-2xl);
}

.footer-section h4 {
  color: var(--accent);
  margin-bottom: var(--space-lg);
  font-size: 1.2rem;
  font-weight: 600;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin-bottom: var(--space-sm);
}

.footer-section ul li a {
  color: white;
  text-decoration: none;
  opacity: 0.9;
  transition: var(--transition);
  display: block;
  padding: var(--space-xs) 0;
}

.footer-section ul li a:hover {
  opacity: 1;
  color: var(--accent);
  transform: translateX(5px);
}

.footer-section p {
  color: white;
  opacity: 0.9;
  margin-bottom: var(--space-sm);
}

.footer-bottom {
  text-align: center;
  margin-top: var(--space-2xl);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-bottom p {
  color: white;
  opacity: 0.8;
  font-size: 0.9rem;
  margin: 0;
}

/* Responsive para páginas legales */
@media (max-width: 768px) {
  .legal-hero .hero-title {
    font-size: 2.5rem;
  }

  .legal-hero .hero-subtitle {
    font-size: 1.25rem;
  }

  .content-wrapper {
    padding: var(--space-xl);
    margin: 0 var(--space-md);
  }

  .hero-meta {
    flex-direction: column;
    align-items: center;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    padding: 0 var(--space-md);
  }
}

@media (max-width: 480px) {
  .legal-hero .hero-title {
    font-size: 2rem;
  }

  .legal-hero .hero-subtitle {
    font-size: 1.1rem;
  }

  .content-wrapper {
    padding: var(--space-lg);
    margin: 0 var(--space-sm);
  }

  .content-wrapper h3 {
    font-size: 1.3rem;
  }
}