/* ===== Variables de color y tipografía ===== */
:root {
  --color-principal: #0d6efd;
  --color-secundario: #6610f2;
  --color-acento: #20c997;
  --color-texto: #212529;
  --color-fondo: #f8f9fa;
  --color-fondo-seccion: #ffffff;
  --color-borde: #dee2e6;
  --color-footer: #e9ecef;
  --radio-borde: 10px;
  --fuente-base: 'Inter', 'Segoe UI', sans-serif;
}

/* ===== Reset general ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--fuente-base);
  background-color: var(--color-fondo);
  color: var(--color-texto);
  line-height: 1.6;
}

/* ===== Navegación ===== */
.main-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: var(--color-fondo-seccion);
  border-bottom: 1px solid var(--color-borde);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-logo img {
  height: 40px;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--color-texto);
  font-weight: 600;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--color-principal);
}

/* ===== Header ===== */
header.hero {
  background: linear-gradient(135deg, var(--color-principal), var(--color-secundario));
  color: white;
  text-align: center;
  padding: 4rem 2rem;
}

header.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

header.hero p {
  font-size: 1.2rem;
  opacity: 0.95;
}

.btn-primary {
  display: inline-block;
  background: var(--color-acento);
  color: white;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  margin-top: 1.5rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: #17a589;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}
/* ===== Selector de idioma personalizado ===== */
.lang-dropdown {
  position: relative;
  display: inline-block;
  margin-left: 1rem;
}

#lang-toggle {
  background-color: var(--color-fondo-seccion);
  border: 1px solid var(--color-borde);
  border-radius: var(--radio-borde);
  padding: 0.5rem 1rem;
  font-size: 1rem;
  font-family: var(--fuente-base);
  color: var(--color-texto);
  cursor: pointer;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#lang-toggle:hover {
  border-color: var(--color-acento);
  box-shadow: 0 0 0 3px rgba(32, 201, 151, 0.2);
}

.lang-options {
  position: absolute;
  top: 110%;
  right: 0;
  background-color: var(--color-fondo-seccion);
  border: 1px solid var(--color-borde);
  border-radius: var(--radio-borde);
  list-style: none;
  padding: 0.5rem 0;
  margin: 0;
  display: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  min-width: 160px;
}

.lang-options li {
  padding: 0.5rem 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: background-color 0.2s ease;
}

.lang-options li:hover {
  background-color: var(--color-footer);
}

.lang-options img {
  width: 20px;
  height: 14px;
  object-fit: cover;
  border-radius: 2px;
}



/* ===== Secciones ===== */
main {
  max-width: 1100px;
  margin: auto;
  padding: 2rem 1rem;
}

section {
  margin-bottom: 3rem;
}

.card {
  background: var(--color-fondo-seccion);
  padding: 2rem;
  border-radius: var(--radio-borde);
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--color-principal);
}

p, ul li {
  font-size: 1.05rem;
  margin-bottom: 0.8rem;
}

ul {
  list-style: none;
  padding-left: 0;
}

ul li::before {
  content: "✔";
  color: var(--color-acento);
  font-weight: bold;
  margin-right: 0.5rem;
}

/* ===== Footer ===== */
footer {
  background: var(--color-footer);
  text-align: center;
  padding: 1.5rem;
  font-size: 0.95rem;
  color: #495057;
  border-top: 1px solid var(--color-borde);
}

/* ===== Responsividad ===== */
@media (max-width: 768px) {
  .main-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1rem;
  }

  .nav-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 0.5rem;
  }

  .nav-links {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  .nav-links a {
    font-size: 1rem;
    padding: 0.5rem 0;
  }

  .lang-dropdown {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  #lang-toggle {
    width: auto;
    padding: 0.5rem 1rem;
    font-size: 1rem;
  }

  .lang-options {
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
  }

  header.hero {
    padding: 2.5rem 1rem;
    text-align: center;
  }

  header.hero h1 {
    font-size: 1.6rem;
    line-height: 1.3;
    margin-bottom: 1rem;
  }

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

  .btn-primary {
    width: 100%;
    font-size: 1rem;
    padding: 0.8rem;
    border-radius: 8px;
  }

  main {
    padding: 1.5rem 1rem;
  }

  .card {
    padding: 1.5rem;
    margin-bottom: 2rem;
  }

  h2 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
  }

  p, ul li {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  footer {
    font-size: 0.9rem;
    padding: 1rem;
  }
}
