/* ==========================================================================
   ESTILOS BASE COMPARTIDOS - base.css
   ========================================================================== */
:root {
  --color-primario: #210F37;
  --color-secundario: #9ACBD0;
  --color-texto: #333;
  --color-texto-claro: #f1f1f1;
  --color-fondo: white;
  --color-header: rgba(51, 51, 51, 0.3);
  --color-footer: #000000;
  --sombra-box: 0 4px 8px rgba(0, 0, 0, 0.2);
  --radio-borde: 5px;
  --espaciado: 20px;
  --color-success: #28a745;
  --color-warning: #ffc107;
  --color-danger: #dc3545;
  --color-info: #1a73e8;
  --color-muted: #6c757d;
  --bg-card: white;
  --text-color: #333;
  --border-color: #dee2e6;
  --shadow-card: var(--sombra-box);

  /* Nuevas variables para el footer moderno */
  --footer-bg: #0a0a0a;
  --footer-text: #b0b0b0;
  --footer-text-light: #e0e0e0;
  --footer-border: #1a1a1a;
  --footer-accent: #d4af37;
  --footer-link-hover: #ffffff;
}

/* Modo oscuro */
[data-theme="dark"] {
  --color-primario: #8ab4f8;
  --color-secundario: #6371c7;
  --color-texto: #e0e0e0;
  --color-texto-claro: #f8f9fa;
  --color-fondo: #121212;
  --color-header: #1a1a1a;
  --color-footer: #000000;
  --bg-card: #1e1e1e;
  --text-color: #e0e0e0;
  --border-color: #333333;
  --shadow-card: 0 6px 16px rgba(0, 0, 0, 0.5);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  transition: background-color 0.3s ease, color 0.3s ease;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--color-fondo);
  color: var(--color-texto);
  line-height: 1.6;
}

/* ==========================================================================
   HEADER Y NAVEGACIÓN
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--color-header);
  z-index: 100;
  padding: 0 var(--espaciado);
}

.nav {
  display: flex;
  align-items: center;
  gap: 25px;
}

.nav__link {
  color: var(--color-texto-claro);
  text-decoration: none;
  font-weight: bold;
  padding: 8px 12px;
  border-radius: var(--radio-borde);
  transition: all 0.3s ease;
}

.nav__link:hover {
  background-color: #594a40;
  color: #f3ebeb;
}

.nav__link--active {
  background-color: #b8b09b;
}

.nav__icon {
  width: 22px;
  height: 22px;
  vertical-align: middle;
  margin-right: 5px;
}

.logo img {
  width: 80px;
  height: auto;
  margin-right: 10px;
  margin-top: 5px;
  margin-left: 50px;
}

/* ==========================================================================
   CONTENIDO PRINCIPAL
   ========================================================================== */
.main-content {
  margin-top: 90px;
  padding: 20px;
}

/* Botón de tema (sol/luna) */
.theme-toggle {
  position: absolute;
  top: 18px;
  right: 80px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--color-texto-claro);
  cursor: pointer;
  user-select: none;
}

.theme-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.theme-toggle-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 50px;
  height: 26px;
  background: #ccc;
  border-radius: 13px;
  padding: 2px;
  cursor: pointer;
  position: relative;
  transition: background 0.3s ease;
}

[data-theme="dark"] .theme-toggle-label {
  background: #4a9eff;
}

.theme-toggle-circle {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 22px;
  height: 22px;
  background: white;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

[data-theme="dark"] .theme-toggle-circle {
  transform: translateX(24px);
}

.theme-toggle i {
  font-size: 18px;
  transition: opacity 0.3s ease;
}

.theme-toggle i.sun {
  opacity: 1;
}

.theme-toggle i.moon {
  opacity: 0;
}

[data-theme="dark"] .theme-toggle i.sun {
  opacity: 0;
}

[data-theme="dark"] .theme-toggle i.moon {
  opacity: 1;
}

/* ==========================================================================
   FOOTER - Diseño idéntico a imagen de referencia
   ========================================================================== */
/* Estilos del footer */
footer {
  background-color: #000;
  color: #fff;
  padding: 40px 20px;
  text-align: center;
  font-family: 'Arial', sans-serif;
  margin-top: 30px;
}

.footer-logo {
  width: 60px;
  height: 60px;
  margin: 0 auto 10px;
  background-color: #ff0000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  font-weight: bold;
  letter-spacing: 2px;
}

.footer-title {
  font-size: 2rem;
  font-weight: bold;
  color: #fff;
  margin: 10px 0;
}

.footer-description {
  color: #ccc;
  max-width: 700px;
  margin: 0 auto 20px;
  line-height: 1.6;
  font-size: 1rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.footer-links a {
  color: #ccc;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #fff;
}

.divider {
  border-top: 1px solid #333;
  margin: 20px 0;
  width: 100%;
}

.made-by {
  background-color: #6d0000;
  color: #fff;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 0.9rem;
  margin: 10px 0;
  display: inline-block;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.copyright {
  color: #aaa;
  font-size: 0.9rem;
  margin-top: 10px;
}

/* ==========================================================================
   BOTÓN "MADE BY V DEV" - base.css
   ========================================================================== */
.btn-dev-info {
  background-color: #6d0000;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  cursor: pointer;
  margin: 10px 0;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  text-align: center;
  font-weight: bold;
  letter-spacing: 0.5px;
}

.btn-dev-info:hover {
  background-color: #8a0000;
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   MODAL DEL DESARROLLADOR - base.css CORREGIDO
   ========================================================================== */
.modal-overlay {
  display: none; /* Oculto por defecto */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease-in-out;
}

/* Mostrar modal cuando tenga la clase show o display flex/block */
.modal-overlay[style*="flex"],
.modal-overlay[style*="block"] {
  display: flex !important;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.modal-content {
  background-color: #121212;
  color: #e0e0e0;
  padding: 25px;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  text-align: left;
  font-family: 'Segoe UI', sans-serif;
  position: relative;
  transition: transform 0.3s ease;
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    transform: scale(0.8) translateY(-50px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.modal-content:hover {
  transform: scale(1.01);
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 24px;
  color: #ccc;
  cursor: pointer;
  background: none;
  border: none;
  font-weight: bold;
  transition: color 0.3s;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-btn:hover {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.1);
}

.modal-title {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: #fff;
  text-align: center;
  border-bottom: 2px solid #e74c3c;
  padding-bottom: 10px;
}

.modal-text {
  margin-bottom: 15px;
  line-height: 1.6;
  font-size: 1rem;
}

.modal-text strong {
  color: #e74c3c;
}

.modal-list {
  margin: 10px 0;
  padding-left: 20px;
  list-style: disc;
  color: #ccc;
}

.modal-list li {
  margin-bottom: 8px;
  transition: color 0.2s ease;
}

.modal-list li:hover {
  color: #fff;
}

.btn-contact {
  background-color: #e74c3c;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 25px;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 20px;
  transition: all 0.3s ease;
  font-weight: bold;
  width: 100%;
  text-align: center;
  text-decoration: none;
  display: inline-block;
}

.btn-contact:hover {
  background-color: #c0392b;
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(231, 76, 60, 0.3);
}

/* Responsive para modal */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    padding: 20px;
    margin: 10px;
  }
  
  .modal-title {
    font-size: 1.5rem;
  }
  
  .modal-text {
    font-size: 0.9rem;
  }
}

/* ==========================================================================
   RESPONSIVE BASE
   ========================================================================== */
@media (max-width: 768px) {
  .header {
    padding: 0 10px;
  }

  .logo img {
    width: 60px;
    margin-left: 10px;
  }

  .nav {
    gap: 15px;
  }

  .main-content {
    padding: 10px;
  }

  /* Footer responsive */
  .footer__container {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 0 20px;
    text-align: center;
  }

  .footer__left {
    max-width: none;
    text-align: center;
  }

  .footer__logo {
    justify-content: center;
  }

  .footer__center {
    align-items: center;
  }

  .footer__nav-row {
    flex-direction: column;
    gap: 20px;
  }

  .footer__right {
    align-items: center;
    text-align: center;
  }

  .footer__section {
    text-align: center;
  }

  .footer__title::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer__bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
}