/* RESET Y BASES */

/* RESET Y BASES */
:root {
  --color-primario: #ffcc00; /* Color principal de tu marca (amarillo/oro) */
  --color-primario-hover: #e6b800; /* Color para cuando el mouse pasa por encima */
  --color-texto-oscuro: #222; /* Color de texto general oscuro */
  --color-texto-claro: #fff; /* Color de texto general claro */
  --color-fondo-oscuro: rgba(0, 0, 0, 0.4); /* Para superposiciones oscuras como la del header */
  --color-fondo-seccion: #f9f9f9; /* Un gris muy claro, si lo usas para secciones */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px; /* base para rem */
}

body {
  font-family: Arial, sans-serif;
  color: var(--color-texto-oscuro);
  background-color: #fff; /* para asegurar fondo blanco */
  line-height: 1.5;
}

/* HEADER PRINCIPAL */
.main-header {
  position: relative;
  height: 100vh;
  background: url('../img/header-gb.jpg') center center/cover no-repeat fixed;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
  overflow: hidden;
}

.main-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--color-fondo-oscuro);
  z-index: 1;
}

/* Contenido del Hero */
.hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
  max-width: 900px;  /* aumenta el max ancho para que ocupe más espacio */
  margin: 0 auto;    /* para centrar el contenido, pero con más ancho */
  text-align: center;  /* alinea a la izquierda en vez de centro */
}

/* Animaciones para la entrada de texto */
.hero-content h1,
.hero-content .subtitle {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.hero-content h1.show,
.hero-content .subtitle.show {
  opacity: 1;
  transform: translateY(0);
}

.hero-content h1 {
  font-size: 2.8rem;
  line-height: 1.2;
}

.subline {
  font-size: 1.4rem;
  display: block;
  margin-top: 1rem;
}

.subtitle {
  margin-top: 1rem;
  font-size: 1.1rem;
  line-height: 1.4;
}

/* NAVBAR */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 15px 40px;
  background-color: transparent;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease, padding 0.3s ease;
  z-index: 1000;
  backdrop-filter: none;
}

.navbar.scrolled {
  background-color: rgba(0, 0, 0, 0.6);
  padding: 25px 40px;
  backdrop-filter: blur(6px);
}

/* LOGO */
.logo-nav {
  height: 50px;
  max-width: 150px;
  object-fit: contain;
}

/* NAVEGACIÓN */
.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-links li:last-child {
  margin-left: 60px;
}

.nav-links a {
  color: var(--color-texto-claro);
  text-decoration: none;
  font-weight: 700;
  display: flex;
  align-items: center;
  transition: color 0.3s ease;
  font-size: 1rem;
}

.nav-links a:hover,
.nav-links a:focus {
  color: var(--color-primario);
  outline: none;
}

/* ICONO WEBMAIL */
.webmail-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--color-texto-claro);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.webmail-icon svg {
  margin-bottom: 4px;
  fill: currentColor;
  transition: transform 0.3s ease, fill 0.3s ease;
  width: 28px;
  height: 28px;
}

.webmail-icon:hover,
.webmail-icon:focus {
  color: var(--color-primario);
}

.webmail-icon:hover svg,
.webmail-icon:focus svg {
  transform: scale(1.2);
  fill: var(--color-primario);
}

/* BOTÓN CONTACTO EN HEADER */
.boton-contacto {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 24px;
  background-color: var(--color-primario);
  color: var(--color-texto-oscuro);
  font-weight: 700;
  border: none;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  cursor: pointer;
  font-size: 1rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.boton-contacto.animate {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.boton-contacto.show {
  opacity: 1;
  transform: translateY(0);
}

.boton-contacto:hover,
.boton-contacto:focus {
  background-color: var(--color-primario-hover);
  color: #fff;
  outline: none;
}

/* EFECTO HOVER EN IMÁGENES DE SERVICIOS */
.servicio img {
  filter: brightness(0.4);
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease, filter 0.6s ease;
  border-radius: 6px;
}

.servicio img:hover,
.servicio img:focus {
  transform: scale(1.05);
  filter: brightness(1.1);
  outline: none;
}

/* INTRO TEXTO */
.intro-text {
  background-color: white;
  padding: 3rem 1rem;
  text-align: center;
}

.intro-text h2 {
  font-size: 2rem;
  font-weight: 700;
}

/* SECCIÓN SERVICIOS */
.servicios-grid {
  background-color: white;
  padding: 2rem 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

.servicio {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 300px;
  margin: 0 auto 2rem;
}

.servicio h3 {
  margin-top: 0.8rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: #222;
}

.servicio p {
  margin-top: 0.4rem;
  font-size: 1rem;
  text-align: justify;
  max-width: 100%;
  color: #444;
}

/* BOTÓN SERVICIO */
.boton-servicio {
  display: inline-block;
  margin-top: 1rem;
  padding: 10px 20px;
  background-color: var(--color-primario);
  color: var(--color-texto-oscuro);
  font-weight: 700;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s ease, color 0.3s ease;
  cursor: pointer;
  font-size: 1rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

.boton-servicio:hover,
.boton-servicio:focus {
  background-color: var(--color-primario-hover);
  color: var(--color-texto-claro);
  outline: none;
}

/* DIVISOR HEADER */
.divisor-header {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: white;
  clip-path: polygon(
    0% 100%,
    20% 60%,
    40% 100%,
    70% 30%,
    100% 100%
  );
  z-index: 2;
  pointer-events: none; /* para evitar que interfiera con clicks */
}

/* CONTACTO */
.contacto {
  position: relative;
  background: url('../img/fondo-contacto.jpg') center center/cover no-repeat fixed;
  color: white;
  padding: 5rem 2rem;
  overflow: hidden;
}

.divisor-contacto {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: white;
  clip-path: polygon(
    0% 0%,
    20% 40%,
    40% 0%,
    70% 70%,
    100% 0%
  );
  z-index: 2;
  margin-top: -1px;
  pointer-events: none;
}

.contacto-content {
  position: relative;
  z-index: 3;
  max-width: 600px;
  margin: 0 auto;
  background-color: rgba(0, 0, 0, 0.6);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.7);
}

.contacto-content h2 {
  text-align: center;
  margin-bottom: 1rem;
  color: white;
  font-weight: 700;
}

/* FORMULARIO */
form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

label {
  font-weight: 700;
  font-size: 1rem;
  color: #eee;
}

input, textarea {
  padding: 0.8rem;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  font-family: inherit;
  resize: vertical;
}

input:focus,
textarea:focus {
  outline: 2px solid #ffcc00;
  background-color: #fff;
  color: #222;
}

button {
  padding: 0.8rem;
  background-color: #f4f4f4;
  color: #222;
  font-weight: 700;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s ease, color 0.3s ease;
}

button:hover,
button:focus {
  background-color: #ffcc00;
  color: #000;
  outline: none;
}

/* MEDIA QUERIES para responsividad */
@media (max-width: 768px) {
  .main-header {
    height: 70vh;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content {
    width: 90vw;
    padding: 1rem;
  }

  .servicios-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    padding: 1rem;
  }

  .navbar {
    padding: 15px 20px;
  }

  .navbar.scrolled {
    padding: 20px 20px;
  }
}

.datos-contacto {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-left: 20px;
  font-size: 0.9rem;
}

.contacto-item {
  display: flex;
  align-items: center;
  color: white;
  text-decoration: none;
  line-height: 1.4;
  font-weight: 500;
  transition: opacity 0.3s ease;
}

.contacto-item:hover {
  color: var(--color-primario);
}

.contacto-item:hover svg {
  fill: var(--color-primario);
}

.boton-contacto.show {
  opacity: 1;
  transform: translateY(0);
}

.titulo-seccion {
  font-size: 2.8rem;
  font-weight: bold;
  line-height: 1.2;
  color: white;
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
  text-align: center;
}

.titulo-seccion.show {
  opacity: 1;
  transform: translateY(0);
}

/* Solo para la sección de contacto de la página Nosotros */
.contacto-nosotros {
  min-height: 400px;
  padding: 40px 20px;
  background-size: cover;
  background-position: center 0%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contacto-nosotros .contacto-content {
  background-color: rgba(0, 0, 0, 0.5); /* fondo semitransparente */
  padding: 20px 30px;
  border-radius: 12px;
  max-width: 600px;
  width: 100%;
  text-align: center;
  color: white;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

/* Enlaces dentro del bloque de contacto de Nosotros */
.contacto-nosotros .contacto-content a {
  color: white;
  text-decoration: none;
}

.contacto-nosotros .contacto-content a:hover {
  text-decoration: underline;
  color: var(--color-primario);
}

.intro-nosotros {
  padding: 60px 20px;
  background-color: #ffffff;
}

.contenedor-nosotros {
  display: flex;
  flex-direction: row;
  gap: 40px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.imagen-nosotros img {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.texto-nosotros {
  flex: 1;
  font-size: 1rem;
  color: #333;
}

.texto-nosotros h2 {
  margin-bottom: 20px;
  font-size: 28px;
  color: #222;
}

.mision-vision {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 40px;
  padding: 60px 20px;
  background-color: white;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap; /* en caso que se haga responsive más adelante */
}

.mision-vision .bloque {
  flex: 1;
  background-color: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.mision-vision .bloque h2 {
  font-size: 24px;
  margin-bottom: 15px;
  color: #333;
}

.mision-vision .bloque p {
  font-size: 16px;
  color: #444;
  line-height: 1.6;
}

.clientes-carrusel {
  background-color: #fff;
  padding: 60px 20px;
  text-align: center;
}

.clientes-carrusel h2 {
  font-size: 24px;
  margin-bottom: 30px;
  color: #111;
}

.carrusel-logos {
  display: flex;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.logos-slide {
  display: flex;
  animation: scroll-logos 40s linear infinite;
}

.logos-slide img {
  height: 60px;
  margin: 0 25px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.logos-slide img:hover {
  transform: scale(1.05); /* efecto de aumento sutil */
}


@keyframes scroll-logos {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* Al final de style.css */
.animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 2s ease, transform 2s ease;
}

.animate.show {
  opacity: 1;
  transform: translateY(0);
}

.contacto-link {
  color: inherit;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.contacto-link:hover {
  color: #ffcc00; /* tono amarillo usado en tu sitio */
}

/* === Sección Servicios Hoja Soluciones (Equans) === */
.servicios-equans {
  width: 100%;
  background-color: #ffffff;
  background-attachment: scroll;
  background-repeat: no-repeat;
  background-position: center top;
  background-size: auto;
  padding: 60px 20px;
  box-sizing: border-box;
}

.servicios-equans__contenedor {
  max-width: 1200px;
  margin: 0 auto;
}

.servicio-equans {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 60px;
  transition: transform 0.3s ease;
}

.servicio-equans:hover {
  transform: scale(1.03);
}

.servicio-equans img {
  width: 45%;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.servicio-equans .contenido {
  width: 55%;
}

.servicio-equans h3 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #222;
}

.servicio-equans p {
  font-size: 1rem;
  line-height: 1.6;
  color: #555;
}

/* Alternar contenido e imagen */
.servicio-reverso {
  flex-direction: row-reverse;
}

/* Responsive */
@media (max-width: 768px) {
  .servicio-equans {
    flex-direction: column !important;
    text-align: center;
  }

  .servicio-equans img,
  .servicio-equans .contenido {
    width: 100%;
  }

  .servicio-equans img {
    height: auto;
  }
}

/* Fondo gris para alternar servicios */
.servicio-equans.fondo-gris {
  background-color: #f5f5f5;
  padding: 60px 20px;
  border-radius: 10px;
}

/* Galería WOW - estilos prefijados y encapsulados bajo .g-galeria-container */
.g-galeria-container {
  max-width: 1200px;
  margin: 40px auto 60px;
  padding: 0 20px;
  user-select: none;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f4f6fa;
  color: #222;
}

.g-galeria-container h1 {
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  font-size: 2.7rem;
  color: #000000;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

.g-galeria-container .g-galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 18px;
}

.g-galeria-container .g-galeria-grid img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transform: translateY(30px);
  opacity: 0;
  animation: g-fadeSlideUp 0.6s forwards;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  will-change: transform, opacity;
}

.g-galeria-container .g-galeria-grid img:hover {
  transform: scale(1.12);
  box-shadow: 0 12px 25px var(--color-primario);
  z-index: 3;
  position: relative;
}

@keyframes g-fadeSlideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Modal oscuro prefijado */
.g-galeria-container .g-modal {
  position: fixed;
  inset: 0;
  background: rgba(12, 12, 12, 0.92);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 1;
  transition: opacity 0.35s ease;
}

.g-galeria-container .g-modal.hidden {
  opacity: 0;
  pointer-events: none;
}

.g-galeria-container .g-modal-img-container {
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 14px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.8);
  background: #000;
}

.g-galeria-container .g-modal img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 14px;
  object-fit: contain;
  user-select: none;
  animation: g-modalFadeZoom 0.4s ease forwards;
}

@keyframes g-modalFadeZoom {
  from {
    opacity: 0;
    transform: scale(0.85);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Botón cerrar */
.g-galeria-container .g-modal-close {
  position: fixed;
  top: 22px;
  right: 30px;
  font-size: 3.6rem;
  color: #eee;
  cursor: pointer;
  background: transparent;
  border: none;
  user-select: none;
  transition: color 0.25s ease;
  z-index: 10001;
}

.g-galeria-container .g-modal-close:hover {
  color: rgb(157, 146, 28);
}

/* Botones navegación */
.g-galeria-container .g-nav-btn {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3.8rem;
  color: #eee;
  cursor: pointer;
  background: var(--color-primario-hover);
  border: none;
  border-radius: 50%;
  width: 66px;
  height: 66px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.7);
  user-select: none;
  transition: background-color 0.3s ease;
  z-index: 10000;
}

.g-galeria-container .g-nav-btn:hover {
  background: var(--color-primario);
}

.g-galeria-container #g-prev-btn {
  left: 30px;
}

.g-galeria-container #g-next-btn {
  right: 30px;
}

/* Delay animación escalonada */
.g-galeria-container .g-galeria-grid img:nth-child(1) { animation-delay: 0.06s; }
.g-galeria-container .g-galeria-grid img:nth-child(2) { animation-delay: 0.12s; }
.g-galeria-container .g-galeria-grid img:nth-child(3) { animation-delay: 0.18s; }
.g-galeria-container .g-galeria-grid img:nth-child(4) { animation-delay: 0.24s; }
.g-galeria-container .g-galeria-grid img:nth-child(5) { animation-delay: 0.30s; }
.g-galeria-container .g-galeria-grid img:nth-child(6) { animation-delay: 0.36s; }
.g-galeria-container .g-galeria-grid img:nth-child(7) { animation-delay: 0.42s; }
.g-galeria-container .g-galeria-grid img:nth-child(8) { animation-delay: 0.48s; }
.g-galeria-container .g-galeria-grid img:nth-child(9) { animation-delay: 0.54s; }
.g-galeria-container .g-galeria-grid img:nth-child(10){ animation-delay: 0.60s; }
.g-galeria-container .g-galeria-grid img:nth-child(11){ animation-delay: 0.66s; }
.g-galeria-container .g-galeria-grid img:nth-child(12){ animation-delay: 0.72s; }
.g-galeria-container .g-galeria-grid img:nth-child(n+13){ animation-delay: 0.78s; }

/* Mejorar transición para hover en imágenes */
/* Hover mejorado para las imágenes de la galería */
.g-galeria-container .g-galeria-grid img {
  transition: transform 0.4s ease, box-shadow 0.4s ease, filter 0.4s ease, opacity 0.4s ease;
  will-change: transform, filter, opacity;
  /* Asegurar que está en modo "block" para evitar interferencias */
  display: block;
}

/* Cuando el mouse pasa sobre una imagen */
.g-galeria-container .g-galeria-grid img:hover,
.g-galeria-container .g-galeria-grid img:focus {
  transform: scale(1.12);
  box-shadow: 0 15px 35px var(--color-primario);
  filter: saturate(1.3) brightness(1.05);
  position: relative;
  z-index: 10;
  outline: none;
}

/* Al pasar mouse sobre la galería, atenuar imágenes NO hover */
.g-galeria-container .g-galeria-grid:hover img:not(:hover):not(:focus) {
  opacity: 0.5;
  filter: brightness(0.8);
  transition: opacity 0.4s ease, filter 0.4s ease;
}

/* Botón flotante de WhatsApp */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  background-color: #1ebc59;
}

.whatsapp-float img {
  width: 28px;
  height: 28px;
}

.servicio img {
  height: 200px; /* puedes ajustar este valor si es muy alto o bajo */
  object-fit: cover; /* recorta la imagen para que rellene el área sin deformarse */
}

/* --- ESTILOS PARA EL MENÚ MÓVIL --- */

/* Estilo del botón de hamburguesa */
.menu-hamburguesa {
  display: none; /* Oculto por defecto en escritorio */
  flex-direction: column;
  justify-content: space-around;
  width: 2rem;
  height: 2rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001; /* Asegura que esté por encima de otros elementos */
}

.menu-hamburguesa .linea {
  width: 2rem;
  height: 0.25rem;
  background: white;
  border-radius: 10px;
  transition: all 0.3s linear;
}

/* Media Query para dispositivos móviles */
@media (max-width: 900px) { /* Aumentamos el punto de quiebre para que se active antes */

  /* Ocultamos los datos de contacto y los links originales */
  .datos-contacto {
    display: none;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.95); /* Fondo oscuro semitransparente */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3rem; /* Espacio entre los enlaces */
    transition: transform 0.3s ease-in-out;
    transform: translateX(100%); /* Lo movemos fuera de la pantalla */
    margin-left: 0; /* Reseteamos el margen */
  }

  .nav-links.active {
    transform: translateX(0); /* Lo traemos a la pantalla cuando está activo */
  }

  .nav-links li:last-child {
    margin-left: 0; /* Reseteamos el margen del último item */
  }

  /* Mostramos el botón de hamburguesa */
  .menu-hamburguesa {
    display: flex;
    position: absolute; /* Lo posicionamos relativo a la barra */
    top: 30px;
    right: 40px;
  }
}

/* --- AJUSTES ADICIONALES PARA LA VISTA MÓVIL --- */

@media (max-width: 900px) {

  /* 1. Corregir el espaciado del logo en la barra de navegación */
  .navbar {
    padding-left: 25px;  /* Añade un espacio a la izquierda para que el logo no se pegue al borde */
  }

  /* 2. Reducir el tamaño de los textos del encabezado en la página de inicio */
  .hero-content h1 {
    font-size: 2.1rem; /* Achicamos el tamaño del título principal */
    line-height: 1.2;  /* Mejoramos el espacio entre líneas */
  }

  .hero-content .subline {
    font-size: 1.2rem; /* Achicamos el tamaño del subtítulo */
  }

  .hero-content .subtitle {
    font-size: 1rem;   /* Achicamos el texto descriptivo */
    padding: 0 10px; /* Añadimos un pequeño margen para que no llegue a los bordes */
  }
}

/* --- OPTIMIZACIÓN DE PÁGINA SOLUCIONES PARA MÓVILES --- */

@media (max-width: 900px) {

  /*
   * Elimina la imagen de fondo de la sección de soluciones
   * y la reemplaza por un fondo blanco sólido para mejorar
   * el rendimiento en dispositivos móviles.
   */
  .servicios-equans {
    background-image: none;
    background-color: #ffffff; /* Fondo blanco */
    background-attachment: scroll; /* Desactiva el efecto 'fixed' */
  }
}

/* Estilos para el feedback del formulario (Paso 4) */
.form-feedback {
  text-align: center;
  margin-bottom: 1.5rem; /* Espacio antes del reCAPTCHA */
  padding: 1rem;
  border-radius: 5px;
  font-weight: bold;
  display: none; /* Oculto por defecto, JavaScript lo hará visible */
  opacity: 0; /* Para la animación de aparición */
  transition: opacity 0.5s ease-in-out;
}

.form-feedback.success {
  background-color: #d4edda; /* Verde claro */
  color: #155724; /* Verde oscuro */
  border: 1px solid #c3e6cb;
  opacity: 1; /* Aparece */
}

.form-feedback.error {
  background-color: #f8d7da; /* Rojo claro */
  color: #721c24; /* Rojo oscuro */
  border: 1px solid #f5c6cb;
  opacity: 1; /* Aparece */
}