/* --- GLOBAL --- */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  color: #003366;
  background-color: white;
}

html {
  scroll-behavior: smooth;
}

main, section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

/* --- ENCABEZADO --- */
.logo-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;  /* 👈 Alinea a la izquierda */
  padding: 40px 40px;       /* 👈 Margen generoso */
  background-color: #f6fbff;
}

.logo-container img {
  max-width: 260px;
  width: 100%;
  height: auto;
  margin-bottom: 10px;
}

.logo-container p {
  font-size: 18px;
  color: #003366;
  margin: 0;
  text-align: left;
}
/* --- INTRODUCCIÓN --- */
.intro h2 {
  color: #205080;
  font-size: 28px;
  margin-bottom: 20px;
}

.intro p {
  font-size: 18px;
  color: #003366;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 15px;
  text-align: center;
}
/* --- ESTRUCTURA INTRODUCCIÓN --- */
.intro-texto {
  flex: 1 1 300px;
  max-width: 600px;
}

.intro-imagen img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

/* --- TRES COLUMNAS --- */
.tres-columnas {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  background-color: #f0f8ff;
  padding: 40px 20px;
}

.columna {
  flex: 1 1 300px;
  max-width: 350px;
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 5px rgba(0,0,0,0.05);
}

.columna h3 {
  color: #205080;
  font-size: 20px;
  margin-bottom: 10px;
}

/* --- ¿QUÉ OFRECEMOS? --- */
.ofrecemos h2 {
  color: #205080;
  text-align: center;
  margin-bottom: 20px;
}

.ofrecemos ul {
  list-style-type: none;
  padding: 0;
  max-width: 700px;
  margin: 0 auto;
}

.ofrecemos li {
  background-color: #f0f8ff;
  margin: 10px 0;
  padding: 12px 20px;
  border-radius: 6px;
  font-size: 18px;
}

/* --- AFILIADO --- */
.afiliado {
  background-color: #f0f8ff;
  padding: 40px 20px;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(0,0,0,0.03);
  text-align: center;
}

.afiliado h2 {
  color: #205080;
}

.afiliado p {
  font-size: 18px;
  margin-bottom: 20px;
}

.afiliado ul {
  list-style-type: none;
  padding: 0;
  max-width: 600px;
  margin: 0 auto 30px;
}

.afiliado li {
  background-color: white;
  margin: 10px;
  padding: 12px;
  border-radius: 6px;
  box-shadow: 0 0 3px rgba(0,0,0,0.05);
}

.cta-afiliado {
  display: inline-block;
  padding: 12px 24px;
  background-color: #205080;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  position: relative;
  overflow: hidden;
}

.cta-afiliado:hover {
  background-color: #183c66;
  transform: scale(1.03);
}

/* Animación de clic */
.cta-afiliado.clicked::after {
  content: "Estamos trabajando para el éxito de este programa de empleo";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: #ffd700;
  color: #003366;
  padding: 10px;
  font-size: 0.9em;
  animation: slideUp 0.6s forwards;
}

@keyframes slideUp {
  from { top: 100%; opacity: 0; }
  to { top: 0%; opacity: 1; }
}

/* --- LÍNEA DEL TIEMPO --- */
.timeline-piempo h2 {
  text-align: center;
  color: #205080;
  margin-bottom: 40px;
}

.timeline {
  border-left: 4px solid #205080;
  padding-left: 30px;
  max-width: 800px;
  margin: 0 auto;
}

.timeline-step {
  position: relative;
  margin-bottom: 40px;
}

.timeline-step .circle {
  position: absolute;
  left: -38px;
  top: 0;
  background-color: #205080;
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  text-align: center;
  line-height: 28px;
  font-weight: bold;
}

.timeline-step h3 {
  margin: 0;
  font-size: 20px;
  color: #003366;
}

.timeline-step p {
  margin-top: 5px;
  font-size: 16px;
  color: #333;
}

/* --- OCUPACIONES --- */
.ocupacion {
  line-height: 1.6;
  padding: 40px 20px;
}

.ocupacion h2 {
  color: #205080;
  margin-bottom: 20px;
  text-align: center;
}

.ocupacion h3, .ocupacion h4 {
  color: #003366;
  margin-top: 25px;
}

.ocupacion ul {
  margin: 10px 0;
  padding-left: 20px;
}

.ocupacion li {
  margin-bottom: 10px;
}

.ocupacion img {
  max-width: 100%;
  margin: 20px auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

/* --- FONDOS ALTERNOS --- */
.light-blue {
  background-color: #f0f8ff;
}

.white {
  background-color: #ffffff;
}

/* --- FOOTER (si lo necesitas) --- */
footer {
  background-color: #205080;
  color: white;
  text-align: center;
  padding: 20px;
}
.intro-contenido {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: center;
}

.intro-texto {
  flex: 1 1 55%;
  min-width: 300px;
}

.intro-imagen {
  flex: 1 1 40%;
  min-width: 250px;
}

.intro-imagen img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

/* --- NAVBAR SUPERIOR --- */

#menu-toggle {
  display: none;
}

.hamburger-icon {
  display: none;
  font-size: 26px;
  cursor: pointer;
  color: white;
}

/* Oculta checkbox */
#menu-toggle {
  display: none;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #87CEEB; /* azul cielo */
  padding: 15px 20px;
  position: relative;
  top: 0;
  z-index: 1000;
}

.logo img {
  height: 40px;
  max-width: 120px; /* o 100px si lo quieres más pequeño */
  object-fit: contain;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.nav-links li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
}
/* ==== RESPONSIVE: MÓVILES ==== */
@media screen and (max-width: 600px) {
  /* === NAVBAR === */
  .navbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 15px;
  }

  .logo img {
    max-width: 100px;
    height: auto;
    margin-bottom: 10px;
  }

  .hamburger-icon {
    display: block;
    font-size: 2em;
    cursor: pointer;
    user-select: none;
    color: white;
    position: absolute;
    top: 15px;
    right: 20px;
    z-index: 1001;
  }

  #menu-toggle {
    display: none;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #fff;
    padding: 15px 0;
    margin: 0;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
  }

  #menu-toggle:checked + .hamburger-icon + .nav-links {
    display: flex;
  }

  .nav-links li {
    text-align: center;
    padding: 10px 0;
  }

  .nav-links li a {
    color: #205080;
    font-size: 1.1em;
    text-decoration: none;
  }

  /* === INTRODUCCIÓN === */
  .intro-contenido {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px;
  }

  .intro h2 {
    font-size: 24px;
    text-align: center;
  }

  .intro-texto {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
  }

  .intro-imagen {
    text-align: center;
    margin-top: 20px;
  }

  .intro-imagen img {
    max-width: 90%;
    height: auto;
    margin: 0 auto;
    display: block;
    border-radius: 20px;
  }

  /* === SELECTOR DE PAÍS === */
  .selector-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: auto;
    margin-top: 20px;
  }

  select#selectorPais {
    padding: 18px 28px;
    font-size: 1.6em;
    border: 2px solid #205080;
    border-radius: 10px;
    background-color: #fff;
    color: #205080;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 320px;
    text-align: center;
    appearance: none;
    margin-bottom: 20px;
  }

  /* === pais.html HEADER === */
  header.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
  }

  header.logo-container img {
    max-width: 150px;
    height: auto;
    margin-bottom: 15px;
  }

  header.logo-container h2 {
    font-size: 1.8em;
    margin-bottom: 10px;
    color: #205080;
  }

  .motivadora {
    font-size: 1.2em;
    font-style: italic;
    color: #333;
    margin-top: 10px;
    margin-bottom: 25px;
  }

  /* === TRES COLUMNAS → FILAS EN MÓVIL === */
  .tres-columnas {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 30px 15px;
  }

  .columna {
    text-align: center;
    padding: 10px;
  }
}

@media screen and (min-width: 768px) {
  .hamburger-icon {
    display: none;
  }

  .nav-links {
    display: flex;
    position: static;
    background-color: transparent;
    box-shadow: none;
  }

  .logo img {
    max-width: 120px;
    height: auto;
  }

  .intro-contenido {
  padding-left: 20px;
  padding-right: 20px;
}

.intro-texto {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

  .intro-imagen {
    margin-top: 0;
  }

  .timeline {
    display: block;
  }

}
