/* Portolio Solutions - Estilos Globales */

/* Fuentes */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Montserrat:wght@400;600&display=swap');

/* Variables CSS para colores y medidas comunes */
:root {
  --primary-color: #00154F;
  --accent-color: #D29E0E;
  --white-color: #ffffff;
  --gray-light: #f8f9fa;
  --gray-medium: #6c757d;
  --shadow-light: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 0 20px rgba(0, 0, 0, 0.1);
  --border-radius: 5px;
  --border-radius-lg: 10px;
  --transition-duration: 0.3s;
  --font-family-primary: 'Montserrat', sans-serif;
  --font-family-headers: 'Bebas Neue', sans-serif;
}

/* Reset y estilos base */
* {
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--font-family-primary);
  color: var(--primary-color);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  background-color: var(--gray-light);
}

/* Tipografía */
h1, h2, h3 {
  font-family: var(--font-family-headers);
}

h1 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 2rem;
  border-bottom: 3px solid var(--accent-color);
  padding-bottom: 1rem;
  color: var(--primary-color);
}

h2 {
  font-size: 1.8rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  border-left: 4px solid var(--accent-color);
  padding-left: 1rem;
  color: var(--primary-color);
}

h3 {
  color: var(--primary-color);
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
  text-align: justify;
}

ul, ol {
  margin-bottom: 1rem;
  padding-left: 2rem;
}

li {
  margin-bottom: 0.5rem;
}

/* Clases de utilidad para colores */
.bg-primary {
  background-color: var(--primary-color);
}

.text-primary {
  color: var(--primary-color);
}

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

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

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

.text-white {
  color: var(--white-color);
}

/* Contenedores comunes */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
  background-color: var(--white-color);
  box-shadow: var(--shadow-medium);
}

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

/* Cajas destacadas */
.highlight-box {
  background-color: #fff3cd;
  border: 1px solid var(--accent-color);
  border-radius: var(--border-radius);
  padding: 1rem;
  margin: 1rem 0;
}

.privacy-box {
  background-color: #e8f4fd;
  border: 1px solid #0066cc;
  border-radius: var(--border-radius);
  padding: 1rem;
  margin: 1rem 0;
}

.warning-box {
  background-color: #f8d7da;
  border: 1px solid #dc3545;
  border-radius: var(--border-radius);
  padding: 1rem;
  margin: 1rem 0;
}

.info-box {
  background-color: var(--gray-light);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  margin-top: 2rem;
  text-align: center;
}

/* Enlaces de navegación */
.back-link {
  display: inline-block;
  margin-bottom: 2rem;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  border: 2px solid var(--accent-color);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  transition: all var(--transition-duration) ease;
}

.back-link:hover {
  background-color: var(--accent-color);
  color: var(--white-color);
}

/* Botones comunes */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 600;
  transition: all var(--transition-duration) ease;
  border: none;
  cursor: pointer;
}

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

.btn-primary:hover {
  background-color: #001a5c;
  transform: translateY(-2px);
}

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

.btn-accent:hover {
  background-color: #b8890c;
  transform: translateY(-2px);
}

/* Tablas */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  background-color: var(--white-color);
}

.data-table th,
.data-table td {
  border: 1px solid #ddd;
  padding: 12px;
  text-align: left;
}

.data-table th {
  background-color: var(--primary-color);
  color: var(--white-color);
  font-weight: 600;
}

.data-table tr:nth-child(even) {
  background-color: #f2f2f2;
}

/* Header styles */
header.transparent {
  background-color: transparent;
  box-shadow: none;
}

header.white {
  background-color: var(--white-color);
  box-shadow: var(--shadow-light);
}

header.transparent a {
  color: var(--white-color);
}

header.white a {
  color: var(--primary-color);
}

/* Fix para botón hamburguesa */
header.transparent button {
  color: var(--white-color) !important;
}

header.white button {
  color: var(--primary-color) !important;
}

header a:hover {
  color: var(--accent-color);
}

header a.active {
  color: var(--accent-color);
  font-weight: 600;
}

/* Mobile menu styles */
@media (max-width: 768px) {
  header.transparent .mobile-menu {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
  }
  
  header.white .mobile-menu {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
  }
  
  header .mobile-menu a {
    color: white !important;
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
  }
  
  header.white .mobile-menu a {
    color: var(--primary-color) !important;
  }
  
  header .mobile-menu a:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
  }
  
  header .mobile-menu a.active {
    background-color: rgba(210, 158, 14, 0.2);
    color: var(--accent-color);
  }
}

/* Cards y aplicaciones */
.app-info {
  display: flex;
  gap: 2rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.app-card {
  flex: 1;
  min-width: 250px;
  background-color: var(--gray-light);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  text-align: center;
  border: 2px solid var(--accent-color);
}

.app-card h4 {
  color: var(--primary-color);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

/* Fecha efectiva */
.effective-date {
  text-align: center;
  font-style: italic;
  color: var(--gray-medium);
  margin-bottom: 2rem;
}

/* Footer común */
.footer-content {
  text-align: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #eee;
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    padding: 15px;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .app-info {
    flex-direction: column;
    gap: 1rem;
  }
  
  .app-card {
    min-width: 100%;
  }
}

/* Utilidades de espaciado */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

/* Utilidades de texto */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-justify { text-align: justify; }

.font-bold { font-weight: 600; }
.font-normal { font-weight: 400; }

.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
