/* ======================================================
   CONFIGURACIÓN GENERAL
====================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  color: #111;
  background-color: #fff;
  line-height: 1.5;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

h2 {
  font-size: 2rem;
  margin-bottom: 0.5em;
  color: #111;
}

.section-subtitle {
  color: #555;
  margin-bottom: 2em;
  font-weight: 300;
}

/* ======================================================
   NAVBAR
====================================================== */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  z-index: 100;
  padding: 0.8em 0;
  transition: background 0.3s ease;
  backdrop-filter: blur(10px); /* 🔹 efecto de difuminado elegante */
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

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

.nav-links {
  display: flex;
  gap: 2em;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

/* 🔹 Hover igual */
.nav-links a:hover {
  color: #e50019;
}

/* 🔹 Enlace activo ya no cambia de color */
.nav-links .active {
  color: #fff;
}


/* --- Hamburguesa --- */
.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}
.nav-toggle span {
  width: 26px;
  height: 2px;
  background: #fff;
  transition: all 0.3s ease;
}

/* --- Celular --- */
@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(0, 0, 0, 0.85); /* un poco más sólida para legibilidad en menú desplegable */
    flex-direction: column;
    width: 100%;
    display: none;
    text-align: center;
    padding: 1.5em 0;
  }
  .nav-links.active {
    display: flex;
  }
  .nav-toggle {
    display: flex;
  }
}

/* =========================================
   TELÉFONO EN NAVBAR
========================================= */
.nav-phone a {
  color: #fff;
  font-weight: 500;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s ease;
  padding-left: 230px;
}

.nav-phone a:hover {
  color: #e50019;
}

.nav-phone i {
  font-size: 1rem;
}

/* En escritorio: mostrar teléfono a la derecha */
.nav-phone.desktop {
  display: flex;
  align-items: center;
}

/* En móvil: ocultar versión escritorio y mostrar dentro del menú */
.nav-phone.mobile {
  display: none;
}

@media (max-width: 992px) {
  .nav-phone.desktop {
    display: none;
  }

  .nav-phone.mobile {
    display: block;
    margin-top: 15px;
    text-align: center;
    font-size: 1.1rem;
  }
}



/* ======================================================
   HERO PRINCIPAL
====================================================== */
.hero-nosotros {
  position: relative;
  background: url('img/fondo.jpg') center/cover no-repeat;
  height: 85vh;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 8%;
  overflow: hidden;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(0,0,0,0.75), rgba(0,0,0,0.4));
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
  animation: fadeInUp 1.2s ease both;
}
.hero-content h1 {
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 20px;
}
.hero-content p {
  font-size: 1.1rem;
  line-height: 1.6;
}

/* ======================================================
   HISTORIA
====================================================== */
.historia {
  background: #fff;
  padding: 80px 8%;
}
.historia-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
}
.historia .texto {
  flex: 1;
}
.historia .imagen {
  flex: 1;
}
.historia img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* ======================================================
   PROPÓSITO
====================================================== */
.banner-titulo{
    color: white;
}
.proposito {
  position: relative;
  background: url('img/proposito.jpg') center/cover no-repeat;
  color: #fff;
  padding: 100px 20px;
  text-align: center;
}
.proposito-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
}
.proposito-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

/* ======================================================
   GLOBAL
====================================================== */
.global {
  background: #f8f8f8;
  padding: 80px 8%;
}
.global-content {
  display: flex;
  flex-wrap: wrap-reverse;
  gap: 40px;
  align-items: center;
}
.global img {
  width: 100%;
  border-radius: 10px;
}

/* ======================================================
   SECTORES
====================================================== */
.sectores {
  background: #fff;
  padding: 80px 8%;
  text-align: center;
}
.sectores h2 {
  font-size: 2rem;
  margin-bottom: 15px;
}
.sectores p {
  color: #555;
  max-width: 800px;
  margin: 0 auto 40px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}
.card {
  background: #f8f8f8;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 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 20px rgba(0,0,0,0.1);
}
.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.card h3 {
  font-size: 1.2rem;
  margin: 15px 0 8px;
  color: #111;
}
.card p {
  color: #555;
  padding: 0 20px 25px;
  font-size: 0.95rem;
}

/* ======================================================
   PERSONAS E INCLUSIÓN
====================================================== */
.personas {
  position: relative;
  background: url('img/oportunidades.jpg') center/cover no-repeat;
  color: #fff;
  padding: 100px 20px;
  text-align: center;
}
.personas-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
}
.personas-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

/* ======================================================
   SEGURIDAD Y DESARROLLO
====================================================== */
.seguridad {
  background: #fff;
  padding: 80px 8%;
}
.seguridad-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
}
.seguridad img {
  width: 100%;
  border-radius: 10px;
}

/* ======================================================
   ANIMACIONES
====================================================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ======================================================
   RESPONSIVO
====================================================== */
@media (max-width: 992px) {
  .hero-content h1 { font-size: 2.2rem; }
  .historia, .global, .sectores, .seguridad {
    padding: 60px 20px;
  }
}

@media (max-width: 768px) {
  .hero-content h1 { font-size: 1.8rem; }
  .hero-content p { font-size: 1rem; }
  .historia-content, .global-content, .seguridad-content {
    flex-direction: column;
  }
}



/* ======================================================
   SECCIÓN DE CONTACTO / AGENDA TU LLAMADA (FINAL LIMPIO)
====================================================== */
.agenda {
  background: #fff;
  padding: 0;
  margin-bottom: 60px; /* 🔹 separa del footer */
}

.agenda-container {
  display: flex;
  flex-wrap: wrap;
  min-height: 480px;
}

/* --- Imagen izquierda --- */
.agenda-imagen {
  flex: 1;
  background: url('../media/fondo_formulario.jpg') center/cover no-repeat;
  min-height: 400px;
}

/* --- Texto + Formulario derecha --- */
.agenda-form {
  flex: 1;
  background: #f8f8f8;
  display: flex;
  flex-direction: column;
  align-items: center;      /* 🔹 centra horizontalmente */
  justify-content: center;  /* 🔹 centra verticalmente */
  padding: 60px 50px 80px;  /* 🔹 agregué espacio extra abajo */
  text-align: center;       /* 🔹 centra los textos */
}


.agenda-texto {
  margin-bottom: 25px;
}

.agenda-texto h2 {
  font-size: 1.9rem;
  color: #111;
  margin-bottom: 10px;
  font-weight: 600;
}

.agenda-texto p {
  color: #555;
  font-size: 1rem;
  line-height: 1.5;
}

.agenda-form form {
  width: 100%;
  max-width: 420px;
}

.form-group {
  margin-bottom: 18px;
}

input,
textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
}

textarea {
  height: 120px;
  resize: none;
}

.btn-enviar {
  background: #e50019;
  color: #fff;
  border: none;
  padding: 12px 30px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
  width: 100%;
}

.btn-enviar:hover {
  background: #b90014;
}

/* --- Responsivo --- */
@media (max-width: 992px) {
  .agenda-container {
    flex-direction: column;
  }

  .agenda-imagen {
    min-height: 260px;
  }

  .agenda-form {
    padding: 40px 25px;
    align-items: center;
    text-align: center;
  }

  .agenda-texto {
    margin-bottom: 20px;
  }

  .agenda-form form {
    max-width: 100%;
  }
}



/* ======================================================
   FOOTER
====================================================== */
.footer {
  background: #111;
  color: #fff;
  padding: 3em 0 1.5em;
  font-size: 0.95rem;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1200px;
  margin: auto;
  width: 90%;
  flex-wrap: wrap;
}

.footer-left img {
  height: 60px;
}

.footer-right {
  text-align: right;
}

.footer-right p {
  margin: 3px 0;
  color: #ddd;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 2em;
  padding-top: 1em;
  color: #aaa;
  font-size: 0.85rem;
}

/* --- Celular --- */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1em;
  }
  .footer-right {
    text-align: center;
  }
}

