:root {
  --primary-color: #02192E;
  --secondary-color: #1E88E5;
  --accent-color: #FF9800;
  --text-color: #333;
  --light-gray: #f0f4f8;
  --white: #ffffff;
  --header-bg: #02192E;
  --transition-speed: 0.3s;
  --box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  --box-shadow-hover: 0 6px 12px rgba(0,0,0,0.15);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--white);
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

img {
  max-width: 100%;
  height: auto;
}

/* Navigation */
nav {
  background-color: var(--header-bg);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  padding: 0.5rem 0;
  border-radius: 0 0 25px 25px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: all var(--transition-speed) ease;
  will-change: padding, transform;
}

.nav-compact {
  padding: 0.25rem 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.logo-image {
  width: 102px;
  height: 102px;
  margin-bottom: 0.0625rem;
  color: var(--white);
  transition: all var(--transition-speed) ease;
  will-change: width, height;
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 0.0625rem;
  align-items: center;
}

.company-name {
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--white);
  letter-spacing: 2px;
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  transition: all var(--transition-speed) ease;
  will-change: font-size;
}

.company-owner {
  font-size: 1rem;
  color: var(--white);
  font-weight: 200;
  letter-spacing: 4px;
  text-transform: uppercase;
  transition: all var(--transition-speed) ease;
  will-change: font-size;
}

.nav-links {
  display: flex;
  gap: 3rem;
  margin-top: 0.5rem;
  align-items: center;
  justify-content: center; /* Centrar los enlaces horizontalmente */
  width: 100%; /* Asegurar que ocupe todo el ancho disponible */
  transition: all var(--transition-speed) ease;
}

nav a {
  text-decoration: none;
  color: var(--white);
  font-weight: 300;
  font-size: 1.1rem;
  transition: color var(--transition-speed) ease;
  padding: 0.5rem 1rem;
  position: relative;
  text-align: center; /* Centrar el texto del enlace */
  flex: 1; /* Distribuir el espacio disponible equitativamente */
  max-width: 200px; /* Limitar el ancho máximo */
}

nav a:hover {
  color: var(--secondary-color);
}

nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: var(--secondary-color);
  transition: all var(--transition-speed) ease;
  transform: translateX(-50%);
}

nav a:hover::after {
  width: 70%;
}

nav a[aria-current="page"]::after {
  width: 70%;
}

/* Info Page Styles */
.info-page {
  padding-top: 12rem;
  padding-bottom: 5rem;
  background-color: var(--light-gray);
  min-height: 100vh;
}

.info-page h1 {
  text-align: center;
  color: var(--primary-color);
  font-size: 2.5rem;
  margin-bottom: 3rem;
  font-weight: 300;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.info-card {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: var(--box-shadow);
  transition: all var(--transition-speed) ease;
  text-decoration: none;
  color: var(--text-color);
  transform: translateY(0);
  will-change: transform, box-shadow;
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-hover);
}

.info-card i {
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.info-card h3 {
  margin-bottom: 1rem;
  color: var(--primary-color);
  font-weight: 300;
  font-size: 1.3rem;
}

.info-card p {
  line-height: 1.6;
  font-weight: 300;
  color: var(--text-color);
  font-size: 1rem;
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(2, 25, 46, 0.85), rgba(2, 25, 46, 0.95)),
              url('https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
  background-size: cover;
  background-position: center;
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  padding: 0 1rem;
  margin-top: 12rem;
}

.hero-content {
  max-width: 900px;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.hero p:first-of-type {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  line-height: 1.8;
  font-weight: 500;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  line-height: 1.8;
  font-weight: 300;
}

.cta-button {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: var(--secondary-color);
  color: var(--white);
  text-decoration: none;
  border-radius: 5px;
  transition: background-color var(--transition-speed) ease;
  font-weight: 300;
}

.cta-button:hover {
  background-color: #1565C0;
}

/* About Us Section */
.about-us {
  padding: 5rem 1rem;
  background-color: var(--white);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.about-us p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.8;
  font-weight: 300;
}

/* Services Section */
.services {
  padding: 5rem 1rem;
  background-color: var(--light-gray);
}

.services h2 {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.5rem;
  color: var(--primary-color);
  font-weight: 300;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: var(--box-shadow);
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
  position: relative;
  overflow: hidden;
  transform: translateY(0);
  will-change: transform;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--box-shadow-hover);
}

.service-card i {
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.service-card h3 {
  margin-bottom: 1rem;
  color: var(--primary-color);
  font-weight: 300;
  position: relative;
  z-index: 1;
}

.service-card p {
  line-height: 1.6;
  font-weight: 300;
  position: relative;
  z-index: 1;
}

.service-card[data-service="public-sector"] {
  background-image: linear-gradient(rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.95)),
                    url('https://images.unsplash.com/photo-1589578527966-fdac0f44566c?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
  background-size: cover;
  background-position: center;
}

/* Why Us Section */
.why-us {
  padding: 5rem 1rem;
  background-color: var(--white);
}

.why-us h2 {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.5rem;
  color: var(--primary-color);
  font-weight: 300;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.feature {
  text-align: center;
  padding: 2rem;
  transition: transform var(--transition-speed) ease;
}

.feature:hover {
  transform: translateY(-5px);
}

.feature i {
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.stars-container {
  margin-bottom: 1rem;
}

.stars-container i {
  font-size: 1.8rem;
  color: var(--accent-color);
  margin: 0 0.2rem;
}

.feature h3 {
  margin-bottom: 1rem;
  color: var(--primary-color);
  font-weight: 300;
}

/* Footer */
footer {
  background-color: var(--header-bg);
  color: var(--white);
  padding: 3rem 1rem 1rem;
  margin-top: auto;
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4rem;
  justify-content: center;
  text-align: center;
}

.footer-section h4 {
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-section p {
  margin-bottom: 0.75rem;
  font-weight: 300;
}

.footer-section i {
  margin-right: 0.5rem;
  width: 20px;
  text-align: center;
}

.footer-section a {
  color: var(--white);
  text-decoration: none;
  transition: color var(--transition-speed) ease;
  display: inline-block;
}

.footer-section a:hover {
  color: var(--secondary-color);
}

.footer-bottom {
  text-align: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-weight: 300;
}

.credits {
  font-size: 0.8rem;
  opacity: 0.8;
  margin-top: 1rem;
}

/* Client Area Styles */
.client-area {
  padding-top: 12rem;
  padding-bottom: 5rem;
  background-color: var(--light-gray);
  min-height: 100vh;
}

.client-area h1 {
  text-align: center;
  color: var(--primary-color);
  font-size: 2.5rem;
  margin-bottom: 3rem;
  font-weight: 300;
}

.login-section {
  max-width: 400px;
  margin: 0 auto 4rem;
}

.login-card {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
}

.login-card h2 {
  text-align: center;
  color: var(--primary-color);
  font-size: 1.8rem;
  margin-bottom: 2rem;
  font-weight: 300;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  color: var(--text-color);
  font-size: 0.9rem;
  font-weight: 400;
}

.form-group input {
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  transition: border-color var(--transition-speed) ease;
}

.form-group input:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.2);
}

.login-button {
  background-color: var(--secondary-color);
  color: var(--white);
  padding: 1rem;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color var(--transition-speed) ease;
}

.login-button:hover {
  background-color: #1565C0;
}

.login-footer {
  margin-top: 1.5rem;
  text-align: center;
}

.forgot-password {
  color: var(--secondary-color);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition-speed) ease;
}

.forgot-password:hover {
  color: #1565C0;
}

.features-section {
  margin-top: 4rem;
}

.features-section h2 {
  text-align: center;
  color: var(--primary-color);
  font-size: 2rem;
  margin-bottom: 3rem;
  font-weight: 300;
}

.feature-card {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: var(--box-shadow);
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
  transform: translateY(0);
  will-change: transform;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-hover);
}

.feature-card i {
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.feature-card h3 {
  margin-bottom: 1rem;
  color: var(--primary-color);
  font-weight: 300;
  font-size: 1.3rem;
}

.feature-card p {
  color: var(--text-color);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.6;
}

/* Financial Indicators Section */
.indicators-section {
  margin-bottom: 4rem;
  padding: 0 1rem;
}

.indicators-section h2 {
  text-align: center;
  color: var(--primary-color);
  font-size: 2rem;
  margin-bottom: 2rem;
  font-weight: 300;
}

.indicators-grid {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto 2rem;
  flex-wrap: wrap;
}

.indicator-card {
  background-color: var(--white);
  padding: 1.5rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: var(--box-shadow);
  transition: all var(--transition-speed) ease;
  flex: 1;
  min-width: 200px;
  max-width: 250px;
  transform: translateY(0);
  will-change: transform, box-shadow;
}

.indicator-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-hover);
}

.indicator-card i {
  font-size: 2rem;
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
}

.indicator-card h3 {
  margin-bottom: 0.5rem;
  color: var(--primary-color);
  font-weight: 300;
  font-size: 1.2rem;
}

.indicator-card p {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-color);
  margin-bottom: 0.5rem;
}

.indicator-card .update-date {
  font-size: 0.8rem;
  color: #666;
  display: block;
}

/* Animation classes */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design */
@media (min-width: 769px) {
  .nav-container {
    flex-direction: row;
    justify-content: space-between;
  }
  
  .nav-links {
    margin-top: 0;
    justify-content: flex-end; /* Alinear a la derecha en pantallas grandes */
    width: auto; /* Ancho automático en pantallas grandes */
  }
  
  nav a {
    flex: 0 1 auto; /* No expandir en pantallas grandes */
    max-width: none; /* Sin límite de ancho máximo */
  }
}

@media (max-width: 768px) {
  .nav-container {
    padding: 0.5rem;
  }

  .company-name {
    font-size: 1.2rem;
  }

  .company-owner {
    font-size: 0.8rem;
  }

  .nav-links {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
    transition: all var(--transition-speed) ease;
    justify-content: center; /* Mantener centrado en pantallas pequeñas */
  }
  
  nav a {
    max-width: 100%; /* Ocupar todo el ancho disponible en móvil */
  }

  .hero {
    margin-top: 14rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

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

  .services-grid {
    grid-template-columns: 1fr;
  }

  .info-grid {
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }

  .info-page {
    padding-top: 14rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 100%;
  }

  .indicators-grid {
    flex-direction: column;
    align-items: center;
  }
  
  .indicator-card {
    width: 100%;
    max-width: 100%;
  }
}

/* Print styles */
@media print {
  nav, footer, .login-section, .cta-button {
    display: none !important;
  }
  
  body, html {
    background-color: white !important;
    color: black !important;
  }
  
  .hero {
    height: auto;
    margin-top: 1rem;
    background: none;
    color: black;
  }
  
  .info-card, .service-card, .feature-card, .indicator-card {
    box-shadow: none;
    border: 1px solid #ddd;
  }
  
  .info-page, .client-area {
    padding-top: 1rem;
  }
}

/* Focus styles for accessibility */
a:focus, button:focus, input:focus {
  outline: 3px solid rgba(30, 136, 229, 0.5);
  outline-offset: 2px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}