/* Global Styles */
body, html {
    margin: 0;
    padding: 0;
    font-family: Tahoma, sans-serif; /* Fuente por defecto */
    scroll-behavior: smooth;
    color: #333;
  }
  
  .container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  /* Cabecera fija */
  .site-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    /*background: rgba(56, 69, 150, 0.7); */
    background: #d37c39; 
  }
  
  .header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
  }
  
  /* Logo */
  .logo-container img.logo {
    height: 50px;
  }
  
  /* Navegación principal */
  .main-nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
  }
  
  .main-nav ul li {
    margin: 0 15px;
  }
  
  .main-nav ul li a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    padding: 8px 12px;
    transition: background 0.3s;
  }
  
  .main-nav ul li a:hover,
  .main-nav ul li a.active {
    background: #3867ad;
    border-radius: 4px;
  }
  
  /* Font Switcher (menú pequeño en la esquina superior derecha) */
  .font-switcher {
    position: absolute;
    top: 10px;
    right: 60px; /* Espacio para el ícono del menú móvil */
    z-index: 1100;
  }
  
  .font-switcher select {
    padding: 4px;
    font-size: 0.9em;
    border: none;
    border-radius: 4px;
  }
  
  /* Mobile Menu Icon */
  .mobile-menu-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1100;
    display: none; /* Se muestra solo en móviles */
    font-size: 24px;
    color: #fff;
    cursor: pointer;
  }
  
  /* Secciones Parallax */
  .parallax-section {
    position: relative;
    height: 500px;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* Añadimos padding superior para que no se superponga la cabecera */
    padding-top: 80px;
  }
  
  .parallax-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
  }
  
  .parallax-section .section-content {
    position: relative;
    color: #fff;
    z-index: 1;
    padding: 0 20px;
  }
  
  /* Secciones generales */
  .section {
    padding: 80px 0;
  }
  
  .section .section-content {
    text-align: center;
  }
  
  .section h2 {
    color: #004080;
    margin-bottom: 20px;
  }
  
  .section p {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 20px;
  }
  
  /* Servicios */
  .services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
  }
  
  .service {
    width: 300px;
    background: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s;
  }
  
  .service:hover {
    transform: translateY(-5px);
  }
  
  .service img {
    width: 100%;
    height: auto;
  }
  
  .service h3 {
    margin: 15px 0 10px;
    color: #004080;
  }
  
  .service p {
    padding: 0 15px 15px;
    color: #666;
  }
  
  /* Contacto */
  .contact-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
  }
  
  .contact-form, .contact-info {
    flex: 1 1 300px;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  }
  
  .contact-form form {
    display: flex;
    flex-direction: column;
  }
  
  .contact-form label {
    margin-top: 10px;
    text-align: left;
  }
  
  .contact-form input,
  .contact-form textarea {
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
  }
  
  .contact-form button {
    margin-top: 15px;
    padding: 10px;
    background: #004080;
    color: #fff;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.3s;
  }
  
  .contact-form button:hover {
    background: #003060;
  }
  
  /* Footer */
  footer {
    background: #f4f4f4;
    padding: 20px 0;
    text-align: center;
  }
  
  footer p {
    margin: 5px 0;
  }

  /* .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: fade 16s infinite;
  }
  
  .slide1 {
    background-image: url('/images/fondoycuadro.png');
    animation-delay: 0s;
  }
  
  .slide2 {
    background-image: url('/images/computadorinformes.png');
    animation-delay: 4s;
  }
  
  .slide3 {
    background-image: url('images/fondotrabajando.jpg');
    animation-delay: 8s;
  }
  
  .slide4 {
    background-image: url('images/trabajoesquema.png');
    animation-delay: 12s;
  } */
  

  
  /* Responsive */
  @media (max-width: 768px) {
    .header-content {
      flex-direction: column;
      align-items: flex-start;
    }
  
    .main-nav {
      display: none;
      width: 100%;
      /*background: rgba(56, 69, 150, 0.7);*/
      background: #d37c39;
    }
    
    .main-nav.active {
      display: block;
    }
    
    .main-nav ul {
      flex-direction: column;
      align-items: flex-start;
    }
    
    .main-nav ul li {
      margin: 10px 20px;
    }
    
    .mobile-menu-icon {
      display: block;
    }
  
    /* Aseguramos que la sección "Quienes Somos" no quede oculta detrás del menú fijo */
    .parallax-section {
      padding-top: 100px;
    }
    /* .slide-text.slide-text1 h1,
    .slide-text.slide-text1 p {
      text-align: left !important;} */
      .parallax-section {
        padding-top: 100px;
        position: relative;
        height: 600px;
        background-attachment: fixed;
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        /* Añadimos padding superior para que no se superponga la cabecera */
        padding-top: 80px;
      }
   
    
    /* #texto_herramientas H2{
      text-align: left !important;

    } */
  }
  /* Slider en "Quienes Somos" */
/* .slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
} */


/* Slider en "Quienes Somos" */
/* --- Slider e imágenes (ya existentes) --- */
.slider {
  position: absolute;
  top: 70px; /* Ajusta según la altura del header */
  left: 0;
  width: 100%;
  height: calc(100% - 70px);
  z-index: 0;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: fade 16s infinite;
}

.slide1 {
  background-image: url('images/fondocallcenter.jpg');
  animation-delay: 0s;
}

.slide2 {
  background-image: url('images/malosnegocios.png');
  animation-delay: 4s;
}

.slide3 {
  background-image: url('images/fondotrabajando.jpg');
  animation-delay: 8s;
}

.slide4 {
  background-image: url('images/trabajoesquema.png');
  animation-delay: 12s;
}

@keyframes fade {
  0% { opacity: 0; }
  10% { opacity: 0.7; }
  25% { opacity: 0.7; }
  35% { opacity: 0; }
  100% { opacity: 0; }
}

/* --- Overlay --- */
.parallax-section .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

/* --- Contenedores de texto para el slider --- */
.slide-text {
  position: absolute;
  top: 50%; 
  left: 50%;
  width: 100%;
  max-width: 1200px;
  transform: translate(-50%, -50%);
  z-index: 3;
  text-align: center;
  color: #fff;
  padding: 20px;
  box-sizing: border-box;
  opacity: 0;
  animation-duration: 16s;
  animation-iteration-count: infinite;
}

/* Para el primer texto (slide 1) */
.slide-text1 {
  animation-name: textFade1;
}

/* Para el segundo texto (slide 2) */
.slide-text2 {
  animation-name: textFade2;
}
/* Para el primer texto (slide 3) */
.slide-text3 {
  animation-name: textFade3;
}

/* Para el segundo texto (slide 4) */
.slide-text4 {
  animation-name: textFade4;
}
/* Keyframes para el primer texto: visible de 0s a 4s (aprox 0%-25% del ciclo) */
@keyframes textFade1 {
  0%   { opacity: 0; }
  10%  { opacity: 1; }
  25%  { opacity: 1; }
  35%  { opacity: 0; }
  100% { opacity: 0; }
}

/* Keyframes para el segundo texto: visible de 4s a 8s (aprox 25%-50% del ciclo) */
@keyframes textFade2 {
  0%   { opacity: 0; }
  25%  { opacity: 0; }
  35%  { opacity: 1; }
  50%  { opacity: 1; }
  60%  { opacity: 0; }
  100% { opacity: 0; }
}
@keyframes textFade3 {
  0%   { opacity: 0; }
  50%  { opacity: 0; }
  60%  { opacity: 1; }
  75%  { opacity: 1; }
  85%  { opacity: 0; }
  100% { opacity: 0; }
}

@keyframes textFade4 {
  0%   { opacity: 0; }
  75%  { opacity: 0; }
  85%  { opacity: 1; }
  95%  { opacity: 1; }
  100% { opacity: 0; }
}

