/* Reset básico */ 
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Estilo del cuerpo de la pagina */ 
html, body {
  min-height: 100vh;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: url("Fondo\ blanco\ degradado.jpg") no-repeat center center fixed;
  color: #333;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

body > *:not(footer) {
  flex: 1 0 auto;
}

/* Fondo para logo y título de página */
header {
  background-image: url('Fondo\ degradado\ blanco2.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #070707;
  padding: 30px 0;
  min-height: 120px;
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

/* Contenedor */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;         
  justify-content: space-between;  
  align-items: center;
  flex-wrap: wrap;             
}

/* Logo y marca */
.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
  min-width: 200px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;            
  align-items: flex-start;
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-info li {
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1;
}

.contact-info li img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  vertical-align: middle;
}

.brand h1 {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  text-decoration: underline;
  font-weight: 700;
  font-size: 1.5rem;
  margin: 0;
}

.logo {
  height: 90px;
  object-fit: contain;
}

/* Contact info */
.contact-info {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0;
  margin-left: 400px; /* espacio a la izquierda para separar del título */
  min-width: 180px;
}

.contact-info li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.contact-info img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

/* Navegación */
.nav-container {
  width: 100%;
  background: url('Fondo\ negro\ degradado1.jpg') no-repeat center center;
  background-size: cover;
  padding: 25px 0;
}

.nav-container nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 15px;
  max-width: 1200px;
  margin: 0 auto;
}

nav a {
  color: #fff;
  text-decoration: none;
  padding: 12px 20px;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease;
  border-radius: 6px;
  display: inline-block;
  font-family: inherit;
}

nav a:hover,
nav a.active {
  background-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  text-decoration: none;
}

/* Estilos para apartados de pagina de inicio */
.hero {
  background: url('Fondo\ blanco\ degradado.jpg') no-repeat center center/cover;
  height: 450px;
  display: flex;
  align-items: center;
  justify-content: center; 
  text-align: center;
  color: white;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
  margin-bottom: 60px;
  position: relative;
  padding: 0 20px;
}

.descripcion-hero {
  color: rgb(6, 6, 6);
  text-align: center;
}

.hero-content {
  max-width: 700px;
  animation: fadeInUp 1s ease forwards;
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero h2 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 25px;
}

.descripcion-hero {
  color: rgb(6, 6, 6); 
  text-align: center;  
  width: 100%;         
  margin: 0 auto;      
}

/* Botones */
.btn {
  display: inline-block;
  padding: 14px 40px;
  font-weight: 700;
  border-radius: 50px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-primary {
  background-image: url("Fondo\ azul\ difuminado.png");
  background-color: rgba(0, 0, 0, 0.3); 
  background-blend-mode: darken;
  background-size: cover;
  background-position: center;
  color: white;
  border: none;
  text-align: center;
  transition: 0.3s ease;
}

.btn-contacto {
  padding: 0.8rem 3rem !important; /* ancho > alto */
  font-size: 1.1rem !important;
  border-radius: 12px !important;
  display: inline-block !important;
}

.hero .btn {
  display: block;
  width: fit-content;
  margin: 0 auto;
}

.btn-primary:hover {
  background-color: rgba(0, 0, 0, 0.6); 
}

/* Secciones */
.section {
  max-width: 1200px;
  margin: 0 auto 60px auto;
  padding: 0 20px;
}

.section-title {
  text-align: center;
  font-size: 2.4rem;
  margin-bottom: 40px;
  font-weight: 700;
  color: #222;
}

/* Cards */
.services .cards,
.projects .cards {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

/* ..............................Estilo para pagina de inicio.............................. */
.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.85); /* Transparencia añadida */
  padding: 30px 25px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  border-radius: 10px;
  flex: 1 1 300px;
  max-width: 320px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.card h3 {
  margin-bottom: 15px;
  color: #0083ca;
  font-weight: 700;
  font-size: 1.4rem;
  width: 100%;
}

.card p {
  color: #555;
  font-size: 1rem;
  line-height: 1.4;
}

/* Footer */
footer {
  background: url('Fondo\ degradado\ blanco3.jpg') no-repeat center center;
  background-size: cover;
  color: #080808;
  padding: 20px 0 0;
  margin-top: auto;
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* Footer Grid */
.footer-grid {
  max-width: 1000px; /* Cambia este valor a tu gusto */
  margin: 0 auto;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  text-align: left;
}

.footer-section {
  flex: 1 1 200px;
  min-width: 200px;
}

.footer-section h3 {
  color: #100f0f;
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin-bottom: 8px;
}

.footer-section ul li a {
  color: #0e0d0d;
  text-decoration: none;
}

.footer-section ul li a:hover {
  color: #0e0e0e;
  text-decoration: underline;
}

.footer-section h3,
.footer-section ul li,
.footer-section ul li a {
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

/* Ajuste de la imagen de pie de pagina*/
.logo-footer img {
  max-width: 200px;
  width: 100%;
  height: auto;
  display: block;
  margin: 40px auto 0 auto;
}

/* Footer Bottom */
.footer-bottom {
  background: url('Fondo\ negro\ degradado1.jpg') no-repeat center center;
  background-size: cover;
  padding: 15px 20px;
  text-align: center;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  position: relative;
  overflow: hidden;
}

.footer-bottom::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 0;
}

.footer-bottom p {
  position: relative;
  z-index: 1;
  margin: 0;
}

/* Animaciones */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  animation: fadeInUp 1s forwards;
}

.fade-in.delay-1 {
  animation-delay: 0.5s;
}

.fade-in.delay-2 {
  animation-delay: 1s;
}

.fade-in.delay-3 {
  animation-delay: 1.5s;
}

.fade-in.delay-4 {
  animation-delay: 2s;
}

/* Formulario contacto */
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 8px;
  margin-top: 4px;
  margin-bottom: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: Arial, sans-serif;
  font-size: 1rem;
}

.contact-form button {
  background-color: #1a1a1a;
  color: #fff;
  border: none;
  padding: 12px 24px;
  cursor: pointer;
  font-size: 1rem;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: #333;
}


/* ---------------------------- Estilos aplicados para sección principal de pagina ---------------------------- */
/* Estilos para nuestros servicios */
.seccion-servicios {
  width: 100%;
  clear: both;           /* Limpia flotados previos */
  box-sizing: border-box;
  padding-bottom: 40px;  /* Espacio inferior para separar de lo siguiente */
  font-size: 1.1rem;
}

.contenedor-recuadro {
  padding: 40px 20px;
  display: flex;
  justify-content: center;
}

.fondo-recuadro {
  background-image: url('Fondo\ azul\ difuminado.png');
  background-size: cover;
  background-position: center;
  border-radius: 15px;
  width: 100%;
  max-width: 1200px;
  padding: 40px 20px;
  position: relative;
  overflow: hidden;
  min-height: 350px;
  display: flex;
  align-items: center;
}

.fondo-recuadro::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 15px;
  z-index: 0;
}

.recuadro-interno {
  display: flex;
  justify-content: space-between;
  align-items: center;         
  gap: 30px;
  flex-wrap: wrap;
  height: 100%;
}

.texto-izquierda {
  flex: 1 1 50%;
  max-width: 600px;
  color: white;
  height: 100%;
  display: flex;
  align-items: center;      
  justify-content: center;  
}

.recuadro-titulo {
  font-size: 2em;
  margin: 0 0 10px 0;
  padding: 0;
  background-color: transparent;
  border-radius: 0;
  box-shadow: none;
  color: #005691;
  display: block;
}

.recuadro-texto-blanco {
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 10px;
  padding: 1rem 2rem;
  max-width: 100%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  color: #005691;
  display: inline-block;
  text-align: left;
  margin-bottom: 1rem;
  margin: 0;                
  height: fit-content;
}

/* Desplazamiento de galeria de imagenes de servicios */
.slider-derecha {
  flex: 1 1 40%;
  max-width: 600px;
  height: 380px;
  overflow: hidden;
  position: relative;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
  min-height: 300px; /* Igual altura que texto */
}

.slider-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease-in-out;
}

.slider-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
  transition: opacity 0.5s ease-in-out;
}

.slider-img.active {
  opacity: 1;
  z-index: 1;
}

/* Animación para boton oculto en carrusel de imagenes */
.overlay-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 86, 145, 0.4); /* azul semitransparente */
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
  border-radius: 10px;
}

.overlay-link .flecha {
  font-size: 3rem;
  color: white;
  transition: transform 0.3s ease;
}

.slider-derecha:hover .overlay-link {
  opacity: 1;
}

.slider-derecha:hover .overlay-link .flecha {
  transform: scale(1.2);
}

/* Estilos para nuestros proyectos */
.seccion-proyectos {
  width: 100%;
  clear: both;
  box-sizing: border-box;
  padding-bottom: 40px;
  font-size: 1.1rem;
}

.contenedor-proyectos {
  padding: 40px 20px;
  display: flex;
  justify-content: center;
}

.fondo-proyectos {
  background-image: url('Fondo\ azul\ difuminado.png');
  background-size: cover;
  background-position: center;
  border-radius: 15px;
  width: 100%;
  max-width: 1200px;
  padding: 40px 20px;
  position: relative;
  overflow: hidden;
  min-height: 350px;
  display: flex;
  align-items: center;
}

.fondo-proyectos::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 15px;
  z-index: 0;
}

.proyectos-interno {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  flex-wrap: nowrap;
  height: 100%;
  min-height: 350px;
}

.texto-derecha {
  flex: 0 0 55%;
  max-width: 55%;
  color: white;
  height: 100%;
  display: flex;
  align-items: center;
  padding-left: 15px; 
  padding-right: 15px;
}

.slider-izquierda {
  flex: 0 0 45%; 
  max-width: 45%;
  height: 350px;
  overflow: hidden;
  position: relative;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  min-height: 300px;
}

.slider-izquierda .slider-track {
  display: flex;
  width: 100%;
  height: 100%;
  position: relative;
}

.slider-izquierda .slider-track {
  display: flex;
  width: 100%; 
  height: 100%;
  position: relative;
  transition: transform 0.5s ease-in-out; 
}

.slider-izquierda .slider-img {
  width: 100%;  
  height: 100%;
  object-fit: cover;
  flex-shrink: 0; 
}

/* --- Flecha para carrusel de PROYECTOS (slider-izquierda) --- */
.slider-izquierda .overlay-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 86, 145, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
  border-radius: 10px;
}

.slider-izquierda .overlay-link .flecha {
  font-size: 3rem;
  color: white;
  transition: transform 0.3s ease;
}

.slider-izquierda:hover .overlay-link {
  opacity: 1;
}

.slider-izquierda:hover .overlay-link .flecha {
  transform: scale(1.2);
}

/* Estilos para nuestra trayectoria */
.seccion-nosotros {
  width: 100%;
  clear: both;
  box-sizing: border-box;
  padding-bottom: 40px;
  font-size: 1.1rem;
}

.imagen-derecha {
  flex: 1 1 40%;
  max-width: 600px;
  height: 350px;
  overflow: hidden;
  position: relative;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  min-height: 300px;
}

.imagen-fija {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

/* Flecha para sección 'nosotros' */
.imagen-derecha:hover .flecha-nosotros {
  opacity: 1;
}

.imagen-derecha:hover .flecha-nosotros .flecha {
  transform: scale(1.2);
}


/* ---------------------------- Ajustes responsivos combinados ---------------------------- */
@media (max-width: 768px) {
  html, body {
    background-attachment: scroll !important; /* evita problemas en móviles */
    background-position: center top !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    min-height: 150vh !important; 
  }

  /* Header */
  .brand {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    min-width: auto;
    justify-content: center;
  }

  .brand h1 {
    font-size: 1.3rem;
  }

  .logo {
    height: 70px;
    max-width: 100%;
  }

  .contact-info {
    margin-left: 0 !important;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    min-width: auto;
    padding: 0;
  }

  .contact-info li {
    font-size: 0.85rem;
  }

  .nav-container nav {
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 10px;
  }

  nav a {
    font-size: 1rem;
    padding: 10px 15px;
  }

  /* Hero */
  .hero {
    height: auto;
    padding: 40px 10px;
    text-align: center;
    flex-direction: column;
  }

  .hero h2 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  /* Contenedor principal */
  .container {
    width: 95%;
  }

  /* Cards */
  .cards {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  .card {
    max-width: 100% !important;
    padding: 20px !important;
  }

  /* Footer */
  .footer-grid {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-section {
    max-width: 100%;
    width: 100%;
  }

  .logo-footer img {
    max-width: 150px;
    margin: 20px auto 0 auto;
  }

  /* Sección Servicios */
  .contenedor-recuadro,
  .fondo-recuadro,
  .recuadro-interno {
    display: block !important;
    height: auto !important;
    overflow: visible !important;
    position: relative !important;
    padding: 20px 10px !important;
    border-radius: 0 !important;
  }

  .recuadro-interno {
    text-align: center;
    gap: 20px;
  }

  .imagen-derecha {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  height: auto !important;
  min-height: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  }

  .texto-izquierda,
  .slider-derecha {
    flex: 1 1 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 auto !important;
  }

  .recuadro-texto-blanco {
    padding: 1rem;
    width: 100%;
    max-width: 100%;
  }

  .texto-izquierda {
  margin-bottom: 40px !important;
  }

.slider-derecha {
  overflow-x: hidden !important;  /* Oculta el scroll horizontal */
  -webkit-overflow-scrolling: auto !important;
  scroll-snap-type: none !important; /* Desactiva el scroll snap */
  display: flex !important;
  flex-direction: row !important;
  justify-content: flex-start !important;
  align-items: center !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 280px !important;
  overflow-y: hidden !important;
  position: relative !important;
  border-radius: 10px !important;
  box-sizing: border-box !important;
  padding: 0 !important;
  margin: 0 auto 40px auto !important;
}

.slider-derecha .slider-track {
  display: flex !important;
  flex-direction: row !important;
  width: max-content !important;
  height: 100% !important;
}

.slider-derecha .slider-img {
  width: 100vw !important; /* <-- fuerza que cada imagen ocupe todo el ancho de la pantalla */
  height: 100% !important;
  object-fit: cover !important;
  scroll-snap-align: start !important;
  flex-shrink: 0 !important;
  border-radius: 10px !important;
}

  /* Sección Proyectos */
  .proyectos-interno {
    flex-direction: column-reverse !important;
    align-items: center !important;
    text-align: center !important;
  }

  .texto-derecha,
  .slider-izquierda {
    max-width: 100% !important;
    flex: 1 1 100% !important;
    padding: 10px 0 !important;
  }

  /* Aseguramos que el contenedor recorte las esquinas */
.slider-izquierda {
  border-radius: 10px;
  overflow: hidden;
}

.slider-izquierda img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}

  /* Sección Nosotros */
  .imagen-derecha {
    max-width: 100% !important;
    height: auto !important;
  }

  .imagen-fija {
    height: auto !important;
  }

  .contenedor-recuadro,
  .recuadro-interno {
    background: transparent !important;
    border-radius: 15px !important;
    overflow: hidden !important;
  }

  .fondo-recuadro {
    border-radius: 15px !important;
    overflow: hidden !important;
    position: relative !important;
  }

  
}

/* ---------------------------- Estilo para sección Clientes ---------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.card {
  background-color: rgba(255, 255, 255, 0.85); 
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.6s ease, box-shadow 0.6s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow:
    0 10px 20px rgba(0, 0, 0, 0.35),  /* sombra grande y difusa */
    0 4px 8px rgba(0, 0, 0, 0.25);    /* sombra más cercana para profundidad */
}

.section-title {
  text-align: center;
  width: 100%;
  margin-bottom: 2rem; /* o el valor que prefieras */
}

/* ---- Animaciones ---- */
.slide-up {
  opacity: 0;
  transform: translateY(30px);
  animation: slideUp 1s ease-out forwards;
}

@keyframes slideUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  50% {
    opacity: 0.3;
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ---------------------------- Estilo de sección "Nosotros" ---------------------------- */
.intro1 {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
  justify-content: flex-start;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.contenido-texto {
  flex: 1 1 45%;
}

.recuadro-texto {
  background-color: rgba(255, 255, 255, 0.5); /* Blanco con 50% de opacidad */
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  max-width: 700px;
  margin: 2rem auto;
}

.recuadro-texto p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #333;
}

.contenido-imagen {
  display: flex;
  justify-content: center;
  padding: 0.1rem 0.6rem;
}

.img-nosotros {
  width: 700px;        /* Fuerza un ancho más grande */
  max-width: 90%;      /* Se adapta en pantallas pequeñas */
  border-radius: 12px;
  object-fit: cover;
}

.contenido-imagen img {
  width: 100%;           /* Mantiene buen tamaño */
  max-width: 600px;      /* O ajústalo al tamaño ideal */
  border-radius: 12px;
  object-fit: cover;
  margin: 0;
}

/* Fondo detrás del texto con capa azul semitransparente */
.fondo-texto {
  position: relative;       /* Para contener el ::before */
  width: 100%;              /* fondo full ancho */
  padding: 3rem 2rem;       /* espacio arriba y abajo */
  border-radius: 12px;      /* borde redondeado */
  overflow: hidden;         /* para que la imagen no se salga por las esquinas redondeadas */
  background-image: url('Fondo\ azul\ difuminado.png');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  z-index: 1;               /* para que quede sobre el overlay */
}

/* Capa oscura que solo oscurece el fondo */
.fondo-texto::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0, 0, 0, 0.2); /* Ajusta la opacidad a gusto */
  border-radius: 12px;      /* Igual al fondo para que coincida */
  z-index: 0;               /* Detrás del contenido */
  pointer-events: none;     /* Evita interferencia con el contenido */
}

.contenido-flex {
  position: relative;
  z-index: 2; /* Encima del fondo oscuro */
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: center;
}

/* Fondo detrás del texto con capa azul semitransparente */
.fondo-texto {
  background-image: url('Fondo\ azul\ difuminado.png');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  width: 100%;  /* fondo full ancho */
  padding: 3rem 2rem; /* espacio arriba y abajo */
  border-radius: 12px; /* borde redondeado */
  overflow: hidden; /* para que la imagen no se salga por las esquinas redondeadas */
  position: relative;  /* IMPORTANTE para el overlay */
  z-index: 1; /* para que quede sobre el overlay */
}

.recuadro-texto {
  background-color: rgba(255, 255, 255, 0.7);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  max-width: 500px;
  margin: 0 auto;
  color: #333;
  position: relative;
  z-index: 2; /* para que quede arriba del overlay */
}

.contenido-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2; /* para que texto e imagen queden arriba */
}

.contenido-imagen img {
  width: 100%;
  max-width: 500px; 
  height: 350px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  animation: fadeUp 1.4s ease-out both;
}

/* NUEVO: Overlay semitransparente para oscurecer solo la imagen de fondo */
.background-fade::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0, 0, 0, 0.3); /* capa negra con 30% opacidad */
  border-radius: 12px;
  z-index: 0; /* debajo del contenido */
  pointer-events: none;
}

/* Animación fadeIn para todo el contenido */
.intro1 {
  animation: fadeIn 3s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Sombra pulsante */
@keyframes sombraPulsante {
  0%, 100% {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  }
  50% {
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  }
}

/* Brillo animado */
@keyframes brilloMovil {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Fondo blanco con brillo y sombra animada */
.recuadro-texto {
  background: rgba(255, 255, 255, 0.7);
  padding: 2rem;
  border-radius: 12px;
  color: #333;
  max-width: 500px;
  margin: 0 auto;
}

.section.container > div {
  text-align: center;
  width: 100%;
}

.valores-lista {
  max-width: 1200px;
  margin: 0 auto; /* centra el grid */
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2rem;
  justify-items: center;
  align-items: center;
  text-align: center;
}

.valores-lista li {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Responsive para móviles */
@media (max-width: 768px) {
  .valores-lista {
    grid-template-columns: repeat(1, 1fr); /* Una columna */
    gap: 1rem;
  }

  .valores-lista li img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 0.5rem;
  }

  .contenido-flex {
    flex-direction: column !important;
  }
  .contenido-flex .contenido-texto {
    order: 1;
  }
  .contenido-flex .contenido-imagen {
    order: 2;
  }
}

/* ---------------------------- Estilo para sección de Proyectos ---------------------------- */

.proyecto {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  margin-bottom: 3rem;
}

/* Para proyectos que deben invertir orden en escritorio */
.proyecto.reverse {
  flex-direction: row-reverse;
}

.proyecto-texto {
  flex: 2;
  min-width: 250px;
}

.proyecto-imagen {
  flex: 1;
  min-width: 250px;
  max-width: 350px;
}

.proyecto-imagen img {
  width: 100%;
  border-radius: 8px;
}

/* Estilos para dispositivos móviles */
@media (max-width: 768px) {
  .proyecto {
    flex-direction: column !important;
  }
  .proyecto-texto {
    order: 1;
  }
  .proyecto-imagen {
    order: 2;
  }
}

/* ---------------------------- Estilo para sección de Servicios ---------------------------- */
.servicios-container {
  display: flex;
  flex-direction: column;
  align-items: center; /* Centra cada recuadro horizontalmente */
  gap: 2rem;
  margin-top: 2rem;
  margin-bottom: 3rem; /* o 48px, puedes ajustar el valor */
}

.servicio {
  width: 85%;
  max-width: 1000px;
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
  padding: 1.5rem;
  text-align: center;
  overflow: hidden;
  cursor: pointer;
}

.servicio-fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.servicio-fade-in.appear {
  opacity: 1;
  transform: translateY(0);
}

.servicio:hover {
  transform: translateY(-10px);
  box-shadow:
    0 0 30px 6px rgba(0, 0, 0, 0.5),
    0 0 10px 3px rgba(178, 183, 188, 0.4);
  transition: transform 0.6s ease, box-shadow 0.6s ease;
}

.servicio img {
  width: 75%; 
  border-radius: 10px;
  margin-bottom: 1rem;
  filter: brightness(0.95);
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.servicio-texto h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.servicio-texto p {
  font-size: 1rem;
  color: #333;
}

/* Efecto de aparición (fade-in) */
.servicio-fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.servicio-fade-in.appear {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }
.delay-4 { transition-delay: 0.8s; }
.delay-5 { transition-delay: 1s; }
.delay-6 { transition-delay: 1.2s; }

/*  */
.project {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 60px;
  gap: 2rem;
}

.project:nth-child(even) {
  flex-direction: row-reverse;
}

.project img {
  max-width: 500px;
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.project-text {
  flex: 1;
  min-width: 250px;
  font-size: 1.1rem;
  color: #333;
}

/* Estilo de logos en Contacto */
.contact-list {
  list-style: none;
  padding: 0;
}

.contact-list li {
  display: flex;
  align-items: center;
  margin-bottom: 0.8rem;
}

.contact-list li .icon {
  width: 24px;  /* tamaño del icono */
  height: 24px;
  margin-right: 0.6rem;
  object-fit: contain;
}


/* Botón flotante para contacto de WhatsApp */
@keyframes fadeUpWhats {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Estilo base del botón de WhatsApp */
@keyframes fadeUpWhats {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

#whatsapp-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  cursor: move;
  
  /* Animación de entrada */
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  animation: fadeUpWhats 1s ease-out forwards;
  animation-delay: 0.5s;
  animation-fill-mode: forwards;

  /* Estado base de filtros */
  filter: drop-shadow(0 0 0 rgba(0, 0, 0, 0));

  /* Transición suave para filtros */
  transition: filter 0.5s ease;

  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

#whatsapp-btn:hover {
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.5));
}

/* Estilo normal del enlace de correo */
header a[href="mailto:gerencia@innovacionmonroy.com.mx"] {
  color: black;
  text-decoration: none;
  transition: color 0.3s ease;
}

header a[href="mailto:gerencia@innovacionmonroy.com.mx"]:hover {
  color: #1667bd;
  text-decoration: none;
}

/* ---------------------------- Estilo para sección de Contacto ---------------------------- */
.contacto-titulo {
  font-size: 1.2rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 1.5rem;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0 auto 2rem auto;
  max-width: 400px;  /* ajusta ancho máximo para que no sea tan ancho */
  text-align: center;
}

.contact-list li {
  display: flex;
  align-items: center;
  justify-content: center; /* centra el contenido dentro del li */
  gap: 0.5rem;  /* espacio entre icono y texto */
  margin-bottom: 1rem;
}

.contact-list li img.icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.correo-enlace {
  color: black;
  text-decoration: none;
  transition: color 0.3s ease;
  word-break: break-word; /* Permite que el texto se rompa en líneas si es necesario */
  max-width: 100%; /* Que no se salga del contenedor */
  display: inline-block;
  white-space: normal; /* Permite salto de línea normal */
  overflow-wrap: break-word; /* Rompe palabras largas */
  hyphens: auto;
}

.correo-enlace:hover {
  color: #1667bd; /* Azul para el hover */
  text-decoration: none;
}

/* Asegurar que la sección de contacto centre su contenido y limite ancho */
.section.container {
  max-width: 1000px; /* Ajusta según quieras que sea más ancho */
  margin-left: auto;
  margin-right: auto;
  padding-left: 0.5rem;  /* Reduce el padding lateral */
  padding-right: 0.5rem; /* Reduce el padding lateral */
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Formularios y campos alineados al centro */
.contact-form {
  width: 100%;           /* Que el formulario ocupe todo el ancho del contenedor */
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
  margin-bottom: 2rem;
}

.contact-form label {
  display: block;
  margin-bottom: 4px; /* espacio pequeño debajo de cada label */
  font-weight: bold;
  font-size: 1rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 8px 10px;
  margin-bottom: 10px; /* espacio vertical entre campos */
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  box-sizing: border-box;
  font-family: inherit;
}

.contact-form textarea {
  resize: none;
}

.form-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.btn-primary {
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  border-radius: 6px;
  background-color: #1667bd;
  color: white;
  transition: background-color 0.3s ease;
}

.btn-primary:hover {
  background-color: #124a8a;
}