:root {
  --primary-color: #003366; /* Azul oscuro original del header */
  --secondary-color: #0056b3; /* Azul para hover de botones */
  --accent-color: #007bff; /* Azul original de los botones */
  --light-color: #f4f4f9; /* Color de fondo original */
  --dark-color: #333; /* Color de texto oscuro */
  --gray-color: #555; /* Color de texto gris */
  --card-bg: #fff; /* Fondo de las tarjetas */
  --app-section-bg: #d8eafe; /* Fondo original de la sección de apps */
  --footer-bg: #333; /* Fondo del footer original */
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Sombra original */
  --transition: all 0.3s ease;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Poppins', Arial, sans-serif;
  background-color: var(--light-color);
  color: var(--dark-color);
  line-height: 1.6;
}

.page-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header {
  width: 100%;
  background-color: var(--primary-color);
  color: white;
  padding: 30px 40px;
  box-sizing: border-box;
  text-align: center;
  box-shadow: var(--shadow);
}

header h1 {
  margin: 0;
  font-size: 2.5rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.description {
  max-width: 800px;
  margin: 40px auto;
  font-size: 1.1rem;
  color: var(--gray-color);
  padding: 0 20px;
  text-align: center;
}

.hero {
  padding: 60px 30px;
  text-align: center;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: white;
}

.description strong {
  color: var(--primary-color);
  font-weight: 500;
}

.app-section {
  width: 100%;
  background-color: var(--app-section-bg);
  padding: 60px 20px;
  box-sizing: border-box;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
  color: var(--primary-color);
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--accent-color);
  margin: 10px auto;
  border-radius: 2px;
}

.app-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.app-card {
  background-color: var(--card-bg);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.app-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.app-image-container {
  height: 180px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f8f9fa;
}

.app-icon {
  width: 100px;
  height: 100px;
  border-radius: 8px;
  object-fit: cover;
  transition: var(--transition);
}

.app-card:hover .app-icon {
  transform: scale(1.05);
}

.app-content {
  padding: 25px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.app-name {
  font-size: 1.3rem;
  font-weight: bold;
  margin: 0 0 10px 0;
  color: var(--dark-color);
}

.app-description {
  font-size: 0.95rem;
  color: var(--gray-color);
  margin-bottom: 20px;
  flex-grow: 1;
}

.button-container {
  margin-top: auto;
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  align-items: stretch; /* Cambiado de 'center' a 'stretch' */
  width: 100%; /* Aseguramos que ocupe todo el ancho */
}

.button {
  padding: 10px 15px;
  background-color: var(--accent-color);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  font-size: 14px;
  display: flex; /* Mantenemos flex para alinear icono y texto */
  justify-content: center; /* Centramos el contenido */
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  width: 100%; /* Ocupa todo el ancho del contenedor */
  box-sizing: border-box; /* Incluye padding en el ancho */
}

.button:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
}

.button .icon {
  width: 16px;
  height: 16px;
}

.privacy-link {
  display: inline-block; /* Solo ocupa el ancho necesario */
  margin: 12px auto 0; /* Centrado horizontalmente */
  padding: 2px 6px; /* Pequeño padding para mejor apariencia */
  font-size: 13px;
  color: var(--accent-color);
  text-decoration: none;
  text-align: center;
  line-height: 1.4;
  transition: var(--transition);
  white-space: nowrap; /* Evita que el texto se parta */
}

.privacy-link:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

footer {
  background-color: var(--footer-bg);
  color: #fff;
  padding: 40px 20px;
  text-align: center;
  font-size: 0.95rem;
  margin-top: auto;
}

footer a {
  color: #aaddff;
  text-decoration: none;
  transition: var(--transition);
}

footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  header h1 {
    font-size: 2rem;
  }
  
  .app-container {
    grid-template-columns: 1fr;
  }
  
  .app-card {
    max-width: 100%;
  }
}

/* ========================================= */
/* Estilos para la página de Política de Privacidad */
/* ========================================= */

.privacy-header {
  width: 100%;
  background: linear-gradient(135deg, var(--primary-color), #1a4d80);
  color: white;
  padding: 2rem 0;
  text-align: center;
  box-shadow: var(--shadow);
}

.privacy-header .header-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.privacy-header h2 {
  margin: 0.5rem 0 0;
  font-size: 1.8rem;
  font-weight: 400;
  opacity: 0.9;
}

.privacy-container {
  flex: 1;
  padding: 2rem 0;
  display: flex;
  justify-content: center;
}

.privacy-content {
  max-width: 800px;
  width: 100%;
  padding: 0 20px;
}

.privacy-intro {
  text-align: center;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e9ecef;
}

.privacy-intro h3 {
  color: var(--primary-color);
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.effective-date {
  color: var(--gray-color);
  font-size: 0.95rem;
}

.privacy-section {
  margin-bottom: 2rem;
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.privacy-section:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.privacy-section h4 {
  color: var(--primary-color);
  font-size: 1.3rem;
  margin-top: 0;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

.section-number {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  text-align: center;
  line-height: 1.8rem;
  font-size: 0.9rem;
  margin-right: 0.8rem;
}

.privacy-list {
  padding-left: 1.5rem;
}

.privacy-list li {
  margin-bottom: 0.5rem;
  position: relative;
}

.privacy-list li::before {
  content: "•";
  color: var(--accent-color);
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}

.privacy-footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e9ecef;
  text-align: center;
  font-size: 0.95rem;
}

/* Responsive para política de privacidad */
@media (max-width: 768px) {
  .privacy-header h1 {
    font-size: 2rem;
  }
  
  .privacy-header h2 {
    font-size: 1.4rem;
  }
  
  .privacy-section {
    padding: 1rem;
  }
  
  .privacy-section h4 {
    font-size: 1.1rem;
  }
}

/* 404 Page Styles */
.error-header {
  width: 100%;
  background: linear-gradient(135deg, var(--primary-color), #1a4d80);
  color: white;
  padding: 2rem 0;
  text-align: center;
  box-shadow: var(--shadow);
}

.error-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 0;
}

.error-content {
  max-width: 600px;
  width: 100%;
  padding: 0 20px;
  text-align: center;
}

.error-icon {
  margin-bottom: 1.5rem;
  animation: bounce 2s infinite;
}

.error-title {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-weight: 600;
}

.error-message {
  font-size: 1.2rem;
  color: var(--gray-color);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.error-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.error-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background-color: var(--accent-color);
  color: white;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.error-button:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.error-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  color: var(--accent-color);
  text-decoration: none;
  border: 1px solid var(--accent-color);
  border-radius: 6px;
  transition: var(--transition);
}

.error-link:hover {
  background-color: #f0f7ff;
  text-decoration: none;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-20px);
  }
  60% {
    transform: translateY(-10px);
  }
}

@media (max-width: 768px) {
  .error-title {
    font-size: 2rem;
  }
  
  .error-message {
    font-size: 1rem;
  }
  
  .error-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .error-button, .error-link {
    width: 100%;
    justify-content: center;
  }
}