/* Agrega scroll-padding para que al navegar se tenga en cuenta el header fijo */
html {
  scroll-padding-top: 80px;
}

/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Paleta de colores inspirada en la bandera de Francia */
:root {
  --blue-france: #0055A4;
  --white-france: #FFFFFF;
  --red-france: #EC1920;
  --red-dark: #B32018;
  --bg-light: #f9f9f9;
  --transition-speed: 0.3s;
  --light-red: #ffe6e6;
}

/* Fuentes y cuerpo */
body {
  font-family: 'Lato', sans-serif;
  color: #333;
  line-height: 1.6;
}

/* Contenedor general */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* HEADER */
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}
header {
  background: var(--white-france);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100;
}
/* HEADER - Logo más grande */
header .logo img {
  height: 60px; /* Aumentado de 50px a 70px */
  width: auto; /* Mantiene proporciones */
  transition: all 0.3s ease; /* Suaviza cambios de tamaño */
}

@media (max-width: 768px) {
  header .logo img {
    height: 60px; /* Un poco más pequeño en móviles */
  }
}
header nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
header nav ul li a {
  text-decoration: none;
  color: #333;
  font-weight: 700;
  transition: color var(--transition-speed);
  position: relative;
  padding-bottom: 5px;
}
header nav ul li a:hover,
header nav ul li a.active {
  color: var(--red-france);
}
header nav ul li a.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 100%;
  background: var(--red-france);
}

/* HERO SIN OVERLAY */
.hero {
  background: url('hero-bg.jpg') no-repeat center center/cover;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding-top: 80px; /* Compensa header fijo */
}
.hero-content {
  position: relative;
  z-index: 1;
  color: var(--white-france);
  max-width: 800px;
}
.hero-content h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 3rem;
  margin-bottom: 1rem;
}
.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}
.hero .btn {
  background: var(--red-france);
  color: var(--white-france);
  padding: 0.8rem 2rem;
  text-decoration: none;
  border-radius: 5px;
  transition: background var(--transition-speed);
}
.hero .btn:hover {
  background: var(--red-dark);
}

/* SECCIONES GENERALES */
.section {
  padding: 80px 0;
  text-align: center;
}
.section h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--blue-france);
}
.section p {
  max-width: 800px;
  margin: 0 auto 2rem auto;
  font-size: 1.1rem;
}

/* SOBRE NOSOTROS */
.about {
  background: var(--white-france);
}

/* VENTAJAS */
.advantages {
  background: var(--bg-light);
}
.advantages-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 2rem;
}
.advantage-item {
  background: var(--white-france);
  padding: 2rem;
  border-radius: 8px;
  width: 270px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.advantage-item h3 {
  color: var(--red-france);
  margin-bottom: 1rem;
}
.advantage-item p {
  font-size: 1rem;
}

/* PROCESO DE RECLUTAMIENTO */
.process {
  background: var(--white-france);
}
.process-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 2rem;
}
.step {
  background: var(--light-red);
  padding: 2rem;
  border-radius: 8px;
  width: 270px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: relative;
}
.step-circle {
  background: var(--red-france);
  color: var(--white-france);
  width: 40px;
  height: 40px;
  line-height: 40px;
  border-radius: 50%;
  font-weight: bold;
  position: absolute;
  top: -20px;
  left: calc(50% - 20px);
}
.step h3 {
  margin-top: 30px;
  color: var(--blue-france);
  margin-bottom: 0.5rem;
}
.step p {
  font-size: 1rem;
}

/* FAQ */
.faq {
  background: var(--bg-light);
}
.faq .faq-item {
  text-align: left;
  margin-bottom: 1.5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  padding: 1rem;
  background: var(--white-france);
  border-left: 5px solid var(--red-france);
  border-radius: 4px;
}
.faq .faq-item h3 {
  color: var(--blue-france);
  margin-bottom: 0.5rem;
}

/* OFERTAS/SERVICIOS */
.services {
  background: var(--white-france);
}
.services-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  margin-top: 2rem;
}
.service-item {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: 8px;
  width: 270px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.service-item h3 {
  margin-bottom: 1rem;
  color: var(--red-france);
}
.service-item p {
  font-size: 1rem;
}

/* CONTACTO */
.contact {
  background: var(--bg-light);
}
.contact form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}
.contact input,
.contact textarea {
  padding: 0.8rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
  width: 100%;
}
.contact button {
  background: var(--red-france);
  color: var(--white-france);
  border: none;
  padding: 0.8rem;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: background var(--transition-speed);
}
.contact button:hover {
  background: var(--red-dark);
}

/* Estilo para el mensaje de respuesta */
#formResponse {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 5px;
  display: none;
}

#formResponse p {
  margin: 0;
  font-weight: bold;
}

/* FOOTER simplificado */
footer {
  background: var(--blue-france);
  color: var(--white-france);
  text-align: center;
  padding: 2rem 0;
}
.footer-container {
  display: flex;
  justify-content: center;
  align-items: center;
}
.footer-contact h3 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
}
.footer-contact p {
  font-size: 0.9rem;
  margin: 0.3rem 0;
}
.footer-contact a {
  color: var(--white-france);
  text-decoration: none;
  font-weight: bold;
}
.footer-contact a:hover {
  text-decoration: underline;
}
.footer-bottom {
  text-align: center;
  padding: 1rem 0;
  font-size: 0.8rem;
  background: var(--blue-france);
}

/* RESPONSIVIDAD */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    align-items: flex-start;
  }
  header nav ul {
    flex-direction: column;
    gap: 10px;
    margin-top: 1rem;
  }
  .hero {
    height: auto;
    padding: 120px 0 40px 0;
  }
  .hero-content h1 {
    font-size: 2rem;
  }
  .advantages-grid,
  .process-steps,
  .services-grid {
    flex-direction: column;
    align-items: center;
  }
  .advantage-item,
  .step,
  .service-item {
    width: 100%;
    max-width: 350px;
  }
  .footer-container {
    flex-direction: column;
    align-items: center;
  }
}

/* Menú Hamburguesa Mejorado */
.menu-toggle {
  display: none;
  font-size: 1.8rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--blue-france);
  position: absolute;
  right: 20px;
  top: 25px;
  z-index: 101;
  padding: 5px 10px;
  transition: all 0.3s ease;
}

.menu-toggle:hover {
  color: var(--red-france);
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .header-container {
    padding: 15px 0;
    position: relative;
  }

  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 280px;
    height: 100vh;
    background: var(--white-france);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease-in-out;
    padding-top: 80px;
    z-index: 100;
  }

  nav.active {
    right: 0;
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
  }

  .nav-links li {
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    margin: 0;
  }

  .nav-links li a {
    display: block;
    padding: 12px 20px;
    font-size: 1rem;
    color: var(--blue-france);
    transition: all 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav-links li a:hover,
  .nav-links li a.active {
    background: var(--light-red);
    color: var(--red-france);
    padding-left: 22px;
  }

  .nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
  }

  .nav-overlay.active {
    opacity: 1;
    visibility: visible;
  }
}