/* --- ESTILO GENERAL --- */
body {
    margin: 0;
    font-family: "Arial", sans-serif;
    color: #1a1a1a;
    scroll-behavior: smooth;
  }
  
  /* --- HEADER --- */
  header {
    background: #111;
    color: #f2c94c;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
  }
  
  .navbar-container {
    max-width: 1200px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
  }
  
  .logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .logo-area img {
    height: 50px;
    width: auto;
  }
  
  .logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: #f2c94c;
  }
  
  nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
  }
  
  nav ul li a {
    text-decoration: none;
    color: #f2c94c;
    font-weight: 500;
    transition: color 0.3s;
  }
  
  nav ul li a:hover {
    color: #ffffff;
  }
  
  /* --- MENÚ MÓVIL --- */
  .menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
  }
  
  .menu-toggle span {
    background: #f2c94c;
    height: 3px;
    width: 25px;
    margin: 4px 0;
    border-radius: 2px;
    transition: 0.3s;
  }
  
  @media (max-width: 768px) {
    nav ul {
      position: absolute;
      top: 70px;
      right: 0;
      background: #111;
      flex-direction: column;
      width: 100%;
      display: none;
      padding: 15px 0;
      border-top: 1px solid #333;
    }
  
    nav ul.show {
      display: flex;
    }
  
    .menu-toggle {
      display: flex;
    }
  }
  
  /* --- HERO --- */
.hero {
    position: relative;
    background: url("img/hero-mineria.jpeg") center/cover no-repeat;
    color: white;
    text-align: center;
    padding: 150px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    min-height: 80vh;
    overflow: hidden;
  }
  
  .hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55); /* filtro oscuro para contraste */
    z-index: 1;
  }
  
  .hero-content {
    position: relative;
    z-index: 2;
    max-width: 750px;
    text-align: center;
    animation: fadeInUp 1.5s ease;
  }
  
  .hero h1 {
    font-size: 2.8rem;
    color: #f2c94c;
    margin-bottom: 15px;
  }
  
  .hero p {
    font-size: 1.2rem;
    color: #f1f1f1;
    margin-bottom: 25px;
    line-height: 1.6;
  }
  
  .hero .btn {
    background: #f2c94c;
    color: #111;
    padding: 14px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
  }
  
  .hero .btn:hover {
    background: #dcb932;
    transform: scale(1.05);
  }
  
  /* Animación hero */
  @keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
  }
  
  
  /* --- SECCIONES --- */
  .section {
    padding: 60px 20px;
    text-align: center;
  }
  
  .bg-light {
    background: #f8f8f8;
  }
  
  h2 {
    color: #1a1a1a;
    margin-bottom: 15px;
  }
  
  p {
    color: #555;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
  }
  
  .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 40px;
  }
  
  .card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.8s ease;
  }
  
  .card.show {
    transform: translateY(0);
    opacity: 1;
  }
  
  .card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
  }
  
  .card-body {
    padding: 20px;
  }
  
  .btn {
    display: inline-block;
    background: #2e7d32;
    color: white;
    padding: 12px 25px;
    border-radius: 6px;
    text-decoration: none;
    margin-top: 20px;
    transition: background 0.3s;
  }
  
  .btn:hover {
    background: #256a27;
  }
  
  #nosotros {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px;
  }
  
  #nosotros h2 {
    text-align: center;
    color: #1a1a1a;
    margin-bottom: 25px;
    font-size: 2rem;
  }
  
  .nosotros-contenido {
    text-align: justify;
    color: #333;
    line-height: 1.8;
    font-size: 1.05rem;
  }
  
  .nosotros-contenido ul {
    margin-top: 15px;
    list-style-type: disc;
    padding-left: 20px;
  }
  
  .nosotros-contenido li {
    margin-bottom: 20px;
  }
  .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
  }
/* --- CAPACITACIONES (con texto visible) --- */
#capacitaciones {
    background-image: url("img/fondo-capacitaciones.jpeg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #fff;
    position: relative;
    padding: 80px 20px;
    text-align: center;
    overflow: hidden;
  }
  
  #capacitaciones::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.75) 0%,
      rgba(0, 0, 0, 0.45) 40%,
      rgba(0, 0, 0, 0.6) 100%
    );
    z-index: 0;
  }
  
  #capacitaciones h2 {
    position: relative;
    z-index: 2;
    color: #fff !important;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.7);
    margin-bottom: 15px;
  }
  
  #capacitaciones p {
    position: relative;
    z-index: 2;
    color: #f2f2f2 !important;
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
  }
  
  #capacitaciones .card {
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    position: relative;
    z-index: 2;
    backdrop-filter: blur(5px);
    transition: transform 0.3s ease, background 0.3s ease;
  }
  
  #capacitaciones .card:hover {
    transform: translateY(-5px);
    background: rgba(0, 0, 0, 0.65);
  }
  
  #capacitaciones .card h3 {
    color: #ffc107;
    margin-bottom: 10px;
  }
  
  
  /* Grilla 3x2 */
  #capacitaciones .grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.8rem;
    margin-top: 40px;
  }
  
  @media (max-width: 992px) {
    #capacitaciones .grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  @media (max-width: 600px) {
    #capacitaciones .grid {
      grid-template-columns: 1fr;
    }
  }
  .partner-logos {
    display: flex;
    align-items: center;
    justify-content: center; /* Centra horizontalmente */
    gap: 20px; /* Espacio entre los logos */
    margin-top: 10px;
  }
  
  .partner-logos img {
    height: 60px; /* Ajusta el tamaño lógico del logo */
    width: auto; /* Mantiene proporción */
    object-fit: contain;
  }
  
  .subtexto {
    text-align: center;
    font-size: 14px;
    color: #555;
    margin-top: 8px;
  }
  
  /* Tarjetas transparentes */
  .service-card {
    background: rgba(0, 0, 0, 0.55);
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
  }
  
  .service-card:hover {
    transform: translateY(-5px);
    background: rgba(0, 0, 0, 0.7);
  }
  
  .service-card h3 {
    color: #f2c94c;
    margin-bottom: 10px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
  }
  
  .service-card p {
    color: #f8f8f8;
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: justify;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
  }
  
  
  /* Ajuste para pantallas medianas y chicas */
  @media (max-width: 992px) {
    #capacitaciones .grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  @media (max-width: 600px) {
    #capacitaciones .grid {
      grid-template-columns: 1fr;
    }
  }
  
  /* Tarjetas transparentes */
  .service-card {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(6px);
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
  }
  
  .service-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.22);
  }
  
  .service-card h3 {
    color: #f2c94c;
    margin-bottom: 10px;
  }
  
  .service-card p {
    color: #eaeaea;
    font-size: 0.95rem;
    line-height: 1.5;
  }
  
  
  /* Ajuste para pantallas medianas */
  @media (max-width: 992px) {
    #capacitaciones .grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  /* Ajuste para celulares */
  @media (max-width: 600px) {
    #capacitaciones .grid {
      grid-template-columns: 1fr;
    }
  }
  
  .service-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
  }
  
  
  /* --- FORMULARIO --- */
  .contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 500px;
    margin: 20px auto;
  }
  
  .contact-form input,
  .contact-form textarea {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
  }
  
  .hidden {
    display: none;
  }
  
  /* --- FOOTER --- */
  footer {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 40px 20px;
    text-align: center;
    font-family: Arial, sans-serif;
  }
  
  footer h3 {
    color: #f2c94c;
    margin-bottom: 10px;
  }
  
  footer p {
    margin-bottom: 25px;
    font-size: 14px;
    color: #ccc;
  }
  
  footer hr {
    border: 0;
    border-top: 1px solid #444;
    margin: 20px 0;
  }
  
  .footer-info a {
    color: #f2c94c;
    text-decoration: none;
  }
  
  .footer-info a:hover {
    text-decoration: underline;
  }
  
  .copy {
    font-size: 12px;
    color: #bbb;
  }
  
  /* --- ANIMACIONES --- */
  .animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
  }
  
  .animate.show {
    opacity: 1;
    transform: translateY(0);
  }
  .eslogan {
    font-size: 1.2rem;
    color: #2e7d32;
    margin: 15px 0;
    font-weight: 500;
  }
  