/*! HTML5 Boilerplate v8.0.0 | MIT License | https://html5boilerplate.com/ */

/* main.css 2.1.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Vendor-prefixed and regular ::selection selectors cannot be combined:
 * https://stackoverflow.com/a/16982510/7133471
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
Author's custom styles
   ========================================================================== */
/* apply a natural box layout model to all elements, but allowing components to change */
:root {
  --primario: #5E8A4E;
  --oscuro: #2F4926;
  --claro:#e9f3e0;
  --blanco: #fff;
}
html {
  box-sizing: border-box;
  font-size: 62.5%; /*Reset para Rems - esto hace que cada 1rem = 10px*/
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  font-family: 'Poppins', sans-serif;
  font-size: 1.6rem;
  line-height: 2;
}

/* Globales */
.contenedor {
  max-width: 1200px;
  width: 90%;
  margin: 0 auto;
}
h1, h2, h3, h4 {
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  margin: 0;
}
h1 {
  font-size: 4.8rem;
}
h2 {
  font-size: 4rem;
  line-height: 1.2;
  margin-bottom: 2rem;
}
h3 {
  font-size: 3rem;
}
h4 {
  font-size: 2.8rem;
}
img {
  max-width: 100%;
}
video {
  max-width: 100%;
}
p {
  text-wrap: balance!important;
}

a {
  text-decoration: none;
  color: #fff;
}
i {
  color: var(--blanco);
}
/* Utilidades */
.centrar-texto {
  text-align: center;
}
.no-margin {
  margin: 0!important;
}
span {
  font-weight: bold;
  color: #a8ec6d;
}

.border-bottom-l {
  border-bottom: 1px solid var(--primario) ;
  padding-bottom: 2rem;
}

/* Animaciones por defecto (ocultas) */
.scroll-animation {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-animation.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Variantes de animaciones */
.fade-in {
  transform: translateY(0);
}

.slide-up {
  transform: translateY(20px);
}

.slide-down {
  transform: translateY(-20px);
}

.zoom-in {
  transform: scale(0.9);
}


/* General del header */
.header {
  background-color: transparent; /* Color principal del diseño */
  padding: 1rem 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000; /* Asegura que el header esté siempre visible */
}

/* Barra de navegación */
.barra {
  display: flex;
  justify-content: space-between; /* Espaciado entre logo y menú hamburguesa */
  align-items: center;
  max-width: 2000px;
  margin: 0 auto;
  padding: 10px 15px; /* Ajuste para evitar desbordamiento */
  position: sticky; /* Navbar fijo en la parte superior */
  top: 0;
  z-index: 1000;
  background-color: var(--primario); /* Fondo configurable */
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease-in-out, background-color 0.3s ease-in-out; /* Transición suave al ocultarse o mostrarse */
}

/* Navbar al hacer scroll */
.barra.scrolled {
  background-color: var(--oscuro); /* Cambia el fondo al hacer scroll */
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2); /* Mayor sombra al hacer scroll */
}

/* Logo */
.logo {
  display: flex; /* Alinear logo y texto en línea */
  align-items: center;
  gap: 10px; /* Espaciado entre logo y texto */
}

.logo-img {
  height: 40px; /* Ajuste para móvil */
  width: auto;
}

.logo-text {
  color: #fff;
  font-size: 1.2rem; /* Más pequeño para móvil */
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap; /* Evitar salto de línea */
}

/* Navegación */
.navegacion {
  display: flex;
  gap: 2rem;
  align-items: center;
  position: static; /* En desktop no es absoluto */
  height: auto; /* Altura ajustada automáticamente */
  flex-direction: row; /* Enlaces en fila */
  justify-content: flex-end; /* Enlaces alineados a la derecha */
  z-index: 100;
  box-shadow: none; /* Sin sombra en desktop */
}

/* Enlaces */
.navegacion a {
  color: #fff;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 500;
  padding: 10px 20px;
  text-align: center;
  transition: color 0.3s ease, background-color 0.3s ease, border-radius 0.3s ease;
}

.navegacion a:hover {
  color: var(--blanco);
  background-color: var(--oscuro); /* Efecto hover */
  border-radius: 5px;
}

/* Ícono del idioma */
.idioma {
  width: 40px;
  height: auto;
  border-radius: 2px;
  transition: transform 0.2s ease-in-out;
}

.idioma:hover {
  transform: scale(1.05);
}

/* Botón hamburguesa */
.menu-toggle {
  display: none; /* Ocultar en desktop */
}

/* Estilos responsivos para mobile */
@media (max-width: 768px) {
  .barra {
    padding: 10px 15px; /* Ajuste para evitar desbordamiento */
  }

  .logo-text {
    font-size: 1rem; /* Reducir el texto en móvil */
  }

  .menu-toggle {
    display: block; /* Mostrar en móvil */
    background: none;
    border: none;
    cursor: pointer;
    position: absolute; /* Asegurar su posicionamiento */
    top: 50%; /* Centrado vertical */
    right: 15px; /* Espaciado desde el borde derecho */
    transform: translateY(-50%); /* Ajuste para centrar perfectamente */
    z-index: 200;
  }

  .menu-icon {
    width: 25px; /* Tamaño compacto */
    height: 3px;
    position: relative;
  }

  .navegacion {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; /* Abarca todo el ancho */
    height: 0; /* Comienza cerrado */
    overflow: hidden; /* Ocultar contenido adicional */
    background-color: var(--primario);
    flex-direction: column; /* Vertical */
    justify-content: center;
    transition: height 0.3s ease-in-out, opacity 0.3s ease-in-out;
  }

  .navegacion.open {
    height: 40vh; /* Abre parcialmente en móvil */
  }
}




/* Estructura básica */
.contenedor-hero {
  margin-top: 0;
  position: relative;
  height: 100dvh; /* Abarca todo el viewport */
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

/* Carrusel de fondo */
.swiper-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1; /* Detrás del texto */
}

.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Asegura que la imagen cubra todo el espacio */
  filter: brightness(0.3); /* Brillo reducido */
}

.texto-hero {
  position: relative;
  z-index: 1; /* Por encima del fondo */
  text-align: center;
  color: #fff;
  text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.8); /* Mejora la legibilidad */
  text-transform: uppercase;
  padding: 0 2rem;
}

.texto-hero h1 {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.texto-hero h2 {
  font-size: 2.5rem;
  font-weight: 300;
  margin-bottom: 1rem;
}

.texto-hero p {
  font-size: 2rem;
  font-weight: 400;
}

.texto-hero span {
  font-weight: 700;
  color: #a8ec6d; /* Color destacado */
}

/* Estilos responsivos */
@media (max-width: 768px) {
  .texto-hero h1 {
    font-size: 3rem;
  }

  .texto-hero h2 {
    font-size: 2rem;
  }

  .texto-hero p {
    font-size: 1.6rem;
  }
}


/* Sección de Contacto */
/* Contenedor de Contacto */
.contenedor-contacto,
.gallery-section,
.services-section{
  text-align: center;
  padding: 5rem;
  background-color: #f3f3f3;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.05), /* Sombra interna suave superior */
              inset 0 -2px 10px rgba(0, 0, 0, 0.05); /* Sombra interna inferior */
  text-transform: uppercase;
}

.contenedor-contacto h2 {
  font-size: 3.5rem;
  font-weight: bold;
  color: var(--primario);
}

/* Contenedor de Tarjetas */
.contacto {
  display: flex;
  flex-wrap: wrap; /* Permite que las tarjetas se ajusten en pantallas pequeñas */
  gap: 2rem;
}
/* Tarjetas de contacto */
.tarjeta {
  display: flex;
  flex-direction: column; /* Organiza el contenido en columna */
  align-items: center; /* Centra horizontalmente */
  justify-content: center; /* Centra verticalmente */
  background: #fff;
  border: 1px solid #e0e0e0;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  max-width: 400px; /* Ancho máximo de la tarjeta */
  margin: 0 auto 2rem; /* Centrado horizontal y margen inferior */
  width: 90%; /* Ocupa el 90% del ancho del contenedor */
}

.tarjeta:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* Iconos */
.icono-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.5rem; /* Espaciado inferior */
  width: 70px;
  height: 70px;
  background-color: var(--primario);
  border-radius: 50%;
}

.icono {
  font-size: 2.5rem; /* Tamaño del ícono */
  color: #fff; /* Color del ícono */
}

/* Título de la tarjeta */
.titulo-contacto {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.4rem;
  color: #333;
  text-align: center;
  font-weight: 500;
}

/* Detalle de contacto */
.detalle-contacto {
  font-size: 1.6rem;
  color: var(--oscuro);
  text-decoration: none;
  text-align: center;
  word-wrap: break-word; /* Permite romper palabras largas */
  overflow-wrap: break-word; /* Para compatibilidad */
  max-width: 90%; /* Limita el ancho del texto */
  margin: 0 auto; /* Centra el texto dentro del contenedor */
  font-weight: bold;
}

.detalle-contacto span {
  font-size: 1.6rem;
  color: var(--oscuro);
  line-height: 1.5;
}

.detalle-contacto a {
  text-decoration: none;
  color: var(--primario);
  transition: color 0.3s ease-in-out;
}

.detalle-contacto a:hover {
  color: #333;
}

/* Responsive */
@media (max-width: 768px) {
  .contenedor-contacto {
    display: flex;
    flex-direction: column; /* Cambia a columnas para móvil */
    align-items: center; /* Centra horizontalmente */
    justify-content: center; /* Centra verticalmente */
    gap: 2rem; /* Espaciado entre las tarjetas */
    padding: 2rem; /* Espaciado interno */
  }

  .contacto {
    justify-content: center;
    align-items: center;
  }

  .tarjeta {
    width: 100%; /* Ocupa todo el ancho */
    padding: 1.5rem;
    margin: 0; /* Sin margen adicional */
  }

  .icono-wrapper {
    width: 60px;
    height: 60px; /* Ajustar icono para mobile */
  }

  .icono {
    font-size: 2rem; /* Reducción en dispositivos más pequeños */
  }

  .titulo-contacto {
    font-size: 1.2rem;
  }

  .detalle-contacto {
    font-size: 1.2rem;
  }
}

@media (min-width: 769px) {

  .tarjeta {
    flex: 1 1 calc(33% - 2rem); /* Ocupa un tercio del contenedor */
    max-width: calc(33% - 2rem); /* Limita el ancho */
  }
}


/* CONTENEDOR GENERAL */
.contenedor-nosotros {
  padding: 4rem;
}

/* TÍTULO */
.titulo-nosotros {
  text-align: center;
}
.titulo-nosotros img {
  max-width: 64px;
  margin-bottom: 1rem;
}
.titulo-nosotros h2 {
  font-size: 3.5rem;
  font-weight: bold;
  color: #333;
  text-transform: uppercase;
}

/* ESTRUCTURA DE DOS COLUMNAS */
.info-nosotros-dos-columnas {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
}

/* VIDEO */
.columna-video {
  width: 100%;
  display: flex;
  justify-content: center;
}
.video-about {
  width: 100%;
  max-width: 400px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* TARJETAS */
.info-nosotros {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
}

.img-nosotros {
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.img-nosotros img {
  width: 100%;
  max-height: 400px;
  height: auto;
  object-fit: cover;
  display: block;
}

.texto-sobre-imagen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  text-shadow: 0 4px 6px rgba(0, 0, 0, 0.8);
}

.texto-sobre-imagen h3 {
  font-size: 2.5rem;
  margin: 0 0 1rem;
  text-transform: uppercase;
  font-weight: bold;
}

.texto-sobre-imagen p {
  font-size: 1.2rem;
}

/* SECCIÓN FINAL */
.nosotros-final {
  background-color: #5e8a4e;
  color: white;
  padding: 1rem;
  text-align: center;
  margin-top: 4rem;
}
.nosotros-final p {
  font-size: 1.8rem;
}

/* Estilo para columnas en desktop */
@media (min-width: 992px) {
  .info-nosotros-dos-columnas {
    flex-direction: row;
    align-items: stretch; /* ¡Clave! para que ambas columnas tengan la misma altura */
  }

  .info-nosotros {
    width: 50%;
    display: flex;
    flex-direction: column;
  }

  .columna-video {
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .video-about {
    height: 100%; /* Que abarque toda la altura de la columna */
    width: auto;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  }
}






/* Nuestro Trabajo*/
.our-work {
  padding: 4rem 2rem;
  background-color: var(--claro);
  text-align: center;
}

.our-work h2 {
  font-size: 3rem;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Grid de trabajo */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  justify-items: center;
}

/* Tarjetas de trabajo */
.work-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 100%;
  height: auto;
  padding: .5rem;
  overflow: hidden;
}

/* Imagen de trabajo */
.work-image {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #fff;
  padding: 1rem;
}

.work-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.work-image:hover img {
  transform: scale(1.08);
}

/* Etiqueta Before/After */
.label {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 1.4rem;
  padding: 0.5rem 1rem;
  text-transform: uppercase;
  font-weight: bold;
  z-index: 1;
}

/* Responsivo */
@media (max-width: 768px) {
  .work-grid {
    grid-template-columns: repeat(2, 1fr); /* Dos columnas en tabletas */
    gap: .5rem;
  }
}

/* Testimonios */
.clientes {
  padding: 4rem 2rem;
  text-align: center;
}

.clientes h2 {
  font-size: 3rem;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Grid de Testimonios */
.testimonios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 4rem;
  justify-items: center;
}

/* Tarjetas de Testimonio */
.testimonio-card {
  background-color: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;

}

.testimonio-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Imagen de Testimonio */
.testimonio-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

/* Contenido del Testimonio */
.testimonio-content {
  padding: 2rem;
  color: #333;
}

.testimonio-text {
  font-size: 1.6rem;
  font-style: italic;
  margin-bottom: 1rem;
  color: #555;
}

.testimonio-author {
  font-size: 1.4rem;
  font-weight: bold;
  color: #5E8A4E;
  text-align: right;
}

/* Responsivo */
@media (max-width: 768px) {
  .testimonios-grid {
    grid-template-columns: repeat(2, 1fr); /* Dos columnas en tabletas */
  }
  .testimonio-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
  }
}

@media (max-width: 480px) {
  .testimonios-grid {
    grid-template-columns: 1fr; /* Dos columnas en tabletas */
  }
  .testimonio-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
  }
}

/* Banner */
.banner {
  background-image: url(/img/banner-1.png);
  background-position: fixed;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  height: 25rem;
  display: flex;
  justify-content: center;
  align-items: center;
}
@media (min-width: 768px) {
  .banner {
    height: 40rem;
  }
}

.banner-contacto{
  background-image: url(/img/banner.jpg);
}
.texto-banner {
  color: #fff;
  font-size: 2.2rem;
  text-align: center;
  padding-top: 2rem;
  text-transform: uppercase;
  
}
@media (min-width: 768px) {
  .texto-banner {
    font-size: 3.5rem;
  }
}

/* Nuestros Servicios */
.services-section {
  padding: 4rem 2rem;
  background-color: #f3f3f3;
  text-align: center;
}

.services-section h2 {
  font-size: 3rem;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Grid de Servicios */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  justify-items: center;
  margin-bottom: 3rem;
}

/* Tarjetas de Servicio */
/* Tarjetas */
.service-card {
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%; /* Ocupa todo el ancho del contenedor */
  height: 100%; /* Asegura que tenga altura completa */
  display: flex; /* Asegura que el contenido interno use todo el espacio */
  align-items: stretch;
}

.service-card img {
  width: 100%; /* Asegura que la imagen se ajuste al ancho */
  height: 100%; /* Asegura que la imagen ocupe todo el alto */
  object-fit: cover; /* Ajusta la imagen para cubrir completamente el espacio */
  object-position: center; /* Centra la imagen dentro del contenedor */
  display: block; /* Evita problemas con elementos inline */
}



.service-card:hover {
  transform: scale(1.05); /* Agranda ligeramente la tarjeta */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Sombra más pronunciada */
}

/* Superposición del texto */
.service-card .overlay-text {
  position: absolute;
  inset: 0; /* Abarca toda la tarjeta */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.5); /* Fondo semitransparente */
  color: #fff;
  padding: 2rem;
  opacity: 1; /* Visible por defecto */
  transition: opacity 0.3s ease;
}

.service-card:hover .overlay-text {
  opacity: 0; /* Oculta el texto al hacer hover */
}


/* Ajustes para pantallas medianas */
@media (max-width: 768px) {
  .service-card .overlay-text {
    font-size: 0.9rem; /* Reducir tamaño del texto */
    padding: 1.5rem; /* Reducir padding */
    background-color: rgba(0, 0, 0, 0.8); /* Fondo más opaco */
  }
}

/* Ajustes para pantallas pequeñas (solo mostrar h3) */
@media (max-width: 480px) {
  .service-card .overlay-text p {
    display: none; /* Ocultar el párrafo */
  }

  .service-card .overlay-text h3 {
    font-size: 1.2rem; /* Ajustar tamaño del h3 */
    padding: 0.5rem 1rem; /* Ajustar padding */
  }
}

/* Tarjetas */
.service-card {
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  max-width: 100%; /* Asegurar que no se desborde en pantallas pequeñas */
}

.service-card img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover; /* Evitar deformación de la imagen */
}

/* Efecto hover en la tarjeta */
.service-card:hover {
  transform: scale(1.05); /* Incremento sutil al hacer hover */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3); /* Sombra más profunda */
}


/* Botón */
/* Contenedor del Botón */
.button-container {
  margin-top: 5rem;
  text-align: center; /* Asegura que el botón esté centrado */

}

/* Botón de Contacto */
.btn-contact {
  display: inline-block;
  padding: 1rem 2.5rem;
  background-color: var(--primario); /* Color principal */
  color: #fff; /* Texto blanco */
  font-size: 1.8rem;
  font-weight: bold;
  text-transform: uppercase;
  text-decoration: none; /* Sin subrayado */
  transition: all 0.3s ease; /* Transiciones suaves */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Efectos al pasar el cursor */
.btn-contact:hover {
  background-color: var(--oscuro); /* Color más oscuro al hacer hover */
  color: #a1a1a1; /* Texto cambia a un color gris claro */
  transform: translateY(-3px); /* Efecto de elevación */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Sombra más pronunciada */
}

/* Efecto al presionar el botón */
.btn-contact:active {
  transform: translateY(2px); /* Botón se hunde ligeramente */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Responsivo */
@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr); /* Dos columnas en tabletas */
  }

  .service-card {
    margin-bottom: 1.5rem;
  }
}



/* Galería */
.gallery-section {
  padding: 4rem 2rem;
  background-color: var(--claro);
  text-align: center;
}

.gallery-section h2 {
  font-size: 3rem;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Optimización para columnas dinámicas */
  gap: 1.5rem; /* Espaciado ajustado */
}

.gallery-item {
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Mantiene proporciones sin deformar */
}

.gallery-item:hover {
  transform: scale(1.03); /* Incremento más sutil */
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* Estilo responsive */
@media (max-width: 768px) {
  .gallery-section {
    padding: 2rem 1rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr); /* Cambia a 2 columnas en tabletas */
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr; /* Cambia a 1 columna en móviles */
  }
}


/* Footer General */
footer {
  background-color: var(--primario); /* Fondo principal */
  color: var(--blanco); /* Texto blanco */
  font-size: 1.4rem;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap; /* Asegura que las columnas se ajusten en pantallas pequeñas */
  gap: 2rem;
  text-align: center;
}

.footer-column {
  flex: 1; /* Cada columna ocupa el mismo espacio */
  min-width: 200px; /* Evita colapsos */
  margin: 2rem 0;
}

.footer-logo {
  max-width: 80px;
  margin-bottom: 1rem;
}

.footer-company {
  font-weight: bold;
}

.footer-icons a,
.footer-column a {
  display: inline-block;
  font-size: 2rem; /* Tamaño ajustado */
  color: var(--blanco);
  margin: 0 0.5rem;
  padding: 1rem 2rem;
  transition: color 0.3s ease;
  background-color: transparent;
  box-shadow: 0px 3px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

.footer-icons a:hover,
.footer-column a:hover {
  color: var(--oscuro); /* Color al pasar el cursor */
  transform: scale(1.1);
  box-shadow: 0px 3px 10px rgba(0, 0, 0, 0.3);
}

.footer-bottom {
  background-color: var(--oscuro); /* Fondo más oscuro */
  padding: 1rem;
  text-align: center;
  font-size: 1.2rem;
  color: var(--blanco);
}

/* Responsivo */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column; /* Columnas en stack */
  }
}


/* Estilo del botón para volver arriba */

/* Botón para volver arriba */
/* Estilo base del botón */
#backToTop {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background-color: #5E8A4E;
  color: white;
  font-size: 2rem;
  font-weight: bold;
  border: none;
  border-radius: 50%; /* Hacerlo redondo */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  display: none; /* Ocultarlo inicialmente */
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, background-color 0.3s ease;
  z-index: 1000;
}

/* Mostrar el botón cuando se añade la clase "show" */
#backToTop.show {
  display: flex; /* Cambiar a flex para centrar el contenido */
  animation: bounce-in 0.5s ease-out; /* Animación al aparecer */
}

/* Hover: Hacer que resalte */
#backToTop:hover {
  background-color: #3E6B37;
  transform: scale(1.2); /* Aumenta ligeramente al pasar el cursor */
}

/* Tamaño mayor para tablet y desktop */
@media (min-width: 768px) {
  #backToTop {
    width: 60px;
    height: 60px;
    font-size: 2.5rem;
    bottom: 30px;
    right: 30px;
  }
}

@media (min-width: 1024px) {
  #backToTop {
    width: 70px;
    height: 70px;
    font-size: 3rem;
    bottom: 40px;
    right: 40px;
  }
}

/* Animación de rebote al aparecer */
@keyframes bounce-in {
  0% {
    transform: scale(0);
  }
  60% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

/* Contenedor del conmutador */
.language-toggle {
  display: inline-flex;
  align-items: center;
  background-color: #5e8a4e;
  border-radius: 20px;
  padding: 0.5rem;
  gap: 0.2rem;
}

/* Botones de idioma */
.language-option {
  background-color: transparent;
  border: none;
  color: white;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  border-radius: 20px;
  padding: 0.3rem 0.8rem;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Idioma seleccionado */
.language-option[aria-pressed="true"] {
  background-color: white;
  color: #5e8a4e;
}

/* Hover */
.language-option:hover {
  background-color: rgba(255, 255, 255, 0.2);
}




/* ==========================================================================
Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.sr-only {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
 * Extends the .sr-only class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.sr-only.focusable:active,
.sr-only.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
  content: " ";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  /*
   * Printing Tables:
   * https://web.archive.org/web/20180815150934/http://css-discuss.incutio.com/wiki/Printing_Tables
   */
  thead {
    display: table-header-group;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}

