@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {

  line-height: 1.6;
  color: #333;
  background: #fff;
  font-family: "Roboto", Arial, sans-serif;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
  padding: 1rem;
}

/* --- HEADER --- */
.header {
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  padding: 0.7rem 0;
  top: 0;
  z-index: 1000;
}

.header-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.header-logo {
  justify-self: start;
}

.header-logo img {
  height: 50px;
}

.header-menu {
  justify-self: center;
}

.header-menu ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.header-menu a {
  text-decoration: none;
  color: #000;
  font-weight: 300;
  position: relative;
  transition: color 0.3s;
}

.header-menu a:hover {
  color: #6ba478;
}

.header-menu a::after {
  content: "";
  display: block;
  height: 3px;
  background: #6ba478;
  width: 0;
  margin: auto;
  transition: width 0.3s;
}

.header-menu a:hover::after {
  width: 100%;
}

/* Idiomas derecha */
.header-lang {
  justify-self: end;
  font-size: 0.95rem;
}

.header-lang a {
  text-decoration: none;
  font-weight: 300;
  color: #000;
  margin: 0 0.3rem;
  transition: color 0.3s;
}

.header-lang a:hover {
  color: #6ba478;
}

/* Responsive */
@media(max-width: 768px) {
  .header-grid {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 1rem;
  }

  .header-menu ul {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .header-lang {
    justify-self: center;
  }
}

/* --- HAMBURGUESA --- */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 20px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  height: 3px;
  background: #000;
  border-radius: 2px;
  transition: 0.3s;
}

/* --- MENÚ MÓVIL --- */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 20px;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  display: block;
  height: 3px;
  background: #000;
  border-radius: 2px;
  transition: 0.3s;
}

/* Menú móvil */
.mobile-menu {
  position: fixed;
  top: 100px;
  left: 0;
  width: 100%;
  background: #fff;
  text-align: center;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.4s ease-in-out;
  z-index: 1000;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
  max-height: 500px;
  opacity: 1;
  transform: translateY(0);
  padding: 2rem 1rem;
}

.mobile-menu ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}

.mobile-menu li {
  margin: 1rem 0;
}

.mobile-menu a {
  text-decoration: none;
  font-size: 1.2rem;
  color: #000;
  transition: color 0.3s;
}

.mobile-menu a:hover {
  color: #6ba478;
}

.mobile-lang {
  margin-top: 1rem;
  font-size: 1rem;
}

.mobile-lang a {
  text-decoration: none;
  color: #000;
  margin: 0 0.5rem;
}

.mobile-lang a:hover {
  color: #6ba478;
}

/* Animación hamburguesa activa */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translateY(7px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-7px);
}

/* Responsive: solo móvil */
@media (max-width: 768px) {

  .desktop-menu,
  .desktop-lang {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    background: #fff;
    z-index: 1002;
  }

  body {
    padding-top: 70px;
  }
}

/* --- HERO --- */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* 🔹 Video de fondo */
.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* 🔹 Capa oscura */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

/* 🔹 Contenido */
.hero-grid {
  position: relative;
  z-index: 2;
  width: 90%;
  max-width: 1200px;
}

.hero-left h1 {
  font-size: 5rem;
  font-weight: 700;
  line-height: 1.1;
  margin: 0 auto;
}

.hero-right p {
  font-size: 1.4rem;
  line-height: 1.6;
  margin-top: 2rem;
  font-weight: 300;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* 🔹 Ajustes responsive */
@media (max-width: 1024px) {
  .hero-left h1 {
    font-size: 4rem;
  }

  .hero-right p {
    font-size: 1.2rem;
  }
}

@media (max-width: 768px) {
  .hero {
    height: 70vh;
    padding: 0 1rem;
  }

  .hero-left h1 {
    font-size: 3rem;
  }

  .hero-right p {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .hero-left h1 {
    font-size: 2.3rem;
  }

  .hero-right p {
    font-size: 1rem;
  }
}

/* --- SOBRE NOSOTROS --- */
.sobre {
  background: url("../imgs/fondo-bosque.jpg") no-repeat center center/cover;
  background-size: cover;
  background-attachment: fixed;
  color: #111;
  padding: 4rem 1rem;
  position: relative;
}

.sobre::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.1);
}

.sobre h2 {
  font-size: 2.5rem;
  color: #6ba478;
  margin-bottom: 0.5rem;
}

.divider {
  width: 60px;
  height: 3px;
  background: #333;
  border: none;
  margin: 0 0 2rem 0;
}

.sobre-flex {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 15rem;
  z-index: 1;
}

.sobre-col.izquierda {
  flex: 0 0 65%;
}

.sobre-col.derecha {
  flex: 0 0 35%;
}

.sobre p {
  margin-bottom: 1rem;
  line-height: 1.6;
  font-size: 1.1rem;
  font-weight: 500;
}

.sobre-col.derecha h4 {
  text-transform: uppercase;
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.social-links {
  list-style: none;
  padding: 0;
}

.social-links li {
  margin: 0.2rem 0;
}

.social-links a {
  text-decoration: none;
  font-weight: bold;
  color: #6ba478;
  font-size: 1.7rem;
}

.social-links a:hover {
  color: #2d5138;
  transition: color 0.3s ease-in;
}

/* Patrocinadores centrado */
.patrocinadores {
  margin-top: 3rem;
  text-align: center;
}

.patrocinadores p {
  font-weight: 400;
  margin-bottom: 1rem;
}

.patrocinadores .logos {
  display: flex;
  justify-content: center;
  gap: 20rem;
}

.patrocinadores img {
  height: 90px;
  object-fit: contain;
}

/* Responsive */
@media(max-width: 768px) {
  .sobre-flex {
    flex-direction: column;
    text-align: center;
    gap: 0;
  }

  .sobre-col.izquierda,
  .sobre-col.derecha {
    flex: 1 1 100%;
  }

  .sobre-col.derecha {
    width: 100%;
    margin-top: 1rem;
  }

  .patrocinadores .logos {
    display: flex;
    justify-content: center;
    gap: 1rem;
  }

  .patrocinadores img {
    height: 45px;
    object-fit: contain;
  }

  .sobre h2 {
    text-align: center;
    font-size: 3.5rem;
  }

  h2.titulos {
    font-size: 3.5rem !important;
  }

  .sobre {
    padding: 1rem 1rem;
  }
}

/* --- AJUSTE SOBRE NOSOTROS EN TABLET (vertical) --- */
@media (min-width: 769px) and (max-width: 1024px) {
  .sobre {
    padding: 3rem 2rem;
    background-size: contain;
  }

  .sobre h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 1rem;
  }

  .sobre-flex {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
  }

  .sobre-col.izquierda {
    flex: 1 1 100%;
    width: 100%;
    text-align: center;
  }

  .sobre-col.derecha {
    flex: 1 1 100%;
    width: 100%;
    text-align: center;
    margin-top: 2rem;
  }

  .social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
  }

  .patrocinadores {
    margin-top: 3rem;
  }

  .patrocinadores .logos {
    gap: 5rem;
  }
}

@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
  .sobre {
    background-attachment: scroll !important;
    background-position: center center !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    background-clip: border-box;
  }
}

/* --- PROYECTOS CARRUSEL --- */
.proyectos-swiper {
  width: 100%;
  padding: 2rem 0;
  position: relative;
  margin-bottom: 4rem;
}

.proyectos-swiper .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
}

.proyectos-swiper img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 15px;
  cursor: pointer;
}

.swiper-button-next,
.swiper-button-prev {
  color: #6ba478;
  top: 50%;
  transform: translateY(-50%);
}

.swiper-button-prev {
  left: -40px;
}

.swiper-button-next {
  right: -40px;
}

/* Puntos */
.swiper-pagination-bullet {
  background: #6ba478;
  opacity: 0.6;
}

.swiper-pagination-bullet-active {
  background: #2d5138;
  opacity: 1;
}

/* --- Ajuste visual para tablet vertical (Proyectos) --- */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
  .proyectos-swiper {
    padding: 2rem 1rem;
  }

  .proyectos-swiper img {
    height: 240px !important;
    object-fit: cover;
  }

  .swiper-button-prev {
    left: 0 !important;
  }

  .swiper-button-next {
    right: 0 !important;
  }

  .swiper-pagination {
    margin-top: 1rem;
  }

  h2.titulos {
    font-size: 1.2rem;
  }
}

/* --- CONTACTO --- */
.contacto {
  background: url("../imgs/fondocontacto.png") no-repeat center top;
  background-size: cover;
  color: #fff;
  position: relative;
  padding: 10rem 1rem 6rem 1rem;
}

.contacto-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  padding: 3rem 1rem;
}

.contacto-info {
  flex: 1;
}

.contacto-info h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.contacto-info a {
  color: #fff;
  font-weight: bold;
  text-decoration: none;
}

.contacto-info a:hover {
  text-decoration: underline;
}

.contacto-form {
  flex: 1;
}

.contacto-form h4 {
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.contacto-form form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contacto-form input,
.contacto-form textarea {
  padding: 0.8rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  width: 100%;
}

.contacto-form button {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
  padding: 0.8rem;
  font-size: 1rem;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s;
}

.contacto-form button:hover {
  background: #fff;
  color: #89a98f;
}

/* Responsive */
@media(max-width: 768px) {
  .contacto-flex {
    flex-direction: column;
    text-align: center;
    padding: 1rem 1rem;
  }

  .contacto-form {
    margin-top: 2rem;
    text-align: center;
    width: 100%;
  }

  .contacto-info {
    text-align: center;
    width: 100%;
  }
}

/* --- FOOTER --- */
.footer {
  background: #fff;
  color: #333;
  padding: 3rem 1rem;
  border-top: 2px solid #e0e0e0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
  align-items: start;
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.footer-logo {
  height: 60px;
  margin-bottom: 1rem;
}

.footer p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #333;
  max-width: 300px;
  font-weight: 300;
}

/* Menú centro */
.footer h4 {
  color: #2d5138;
  font-weight: bold;
  margin-bottom: 1rem;
}


.footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-menu li {
  margin: 1rem 0;
}

.footer-menu a {
  text-decoration: none;
  color: #6ba478;
  font-size: 0.95rem;
  font-weight: 300;
  transition: color 0.3s;
}

.footer-menu a:hover {
  color: #2d5138;
}

#footertitulo {
  font-weight: 400;
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: #6ba478;
}

.social-icons {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  color: white;
  font-size: 1.2rem;
  transition: transform 0.3s;
  text-decoration: none;
}

.social:hover {
  transform: scale(1.1);
}

.social.instagram {
  background: #222;
}

.social.linkedin {
  background: #0077b5;
}

.social.youtube {
  background: #ff0000;
}

/* Responsive */
@media(max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .footer-col {
    text-align: center;
  }

  .social-icons {
    justify-content: center;
  }
}

h2.titulos {
  color: #95ba9e;
  font-family: "Roboto";
  font-weight: 500;
  font-size: 75px;
  margin-top: 2rem;
}

h2#titulo {
  text-align: center;
}

textarea {
  resize: none;
}

.swiper-pagination {
  position: initial !important;
}

:root {
  --swiper-theme-color: #6ba478 !important;
}

/* --- SECCIÓN PALABRAS INTERCALADAS --- */
.palabras {
  background: #fff;
  padding: 4rem 0;
  text-align: center;
}

.palabras-subtitulo {
  font-size: 1.1rem;
  text-transform: uppercase;
  font-weight: 400;
  letter-spacing: 0.15rem;
  color: #555;
  margin-bottom: 3rem;
}

.palabras-zigzag {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

/* Fila superior */
.fila-arriba {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  justify-items: center;
  align-items: center;
  gap: 8rem;
}

/* Fila inferior */
.fila-abajo {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  justify-items: center;
  align-items: center;
  gap: 8rem;
  width: 75%;
  margin: 3.5rem auto 0 auto;
}

/* Palabras */
.fila span {
  font-size: 1.8rem;
  font-weight: 400;
  letter-spacing: 1px;
  color: #333;
  cursor: default;
  transition: color 0.3s;
}

.fila span:hover {
  color: #6ba478;
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  .fila span {
    font-size: 1.4rem;
  }

  .fila-arriba,
  .fila-abajo {
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .palabras {
    padding: 1rem 0;
  }

  .palabras-subtitulo {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }

  .fila-arriba {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }

  .fila-abajo {
    grid-template-columns: repeat(2, 1fr);
    width: 90%;
    margin-top: 2rem;
    gap: 2.5rem;
  }

  .fila span {
    font-size: 1rem;
  }

  .fila-abajo span:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
  }
}

/* --- EFECTO FADE-IN SUAVE (NUEVO) --- */
.fade-in-section {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s ease-out, transform 1s ease-out;
  will-change: opacity, transform;
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
  h2.titulos {
    font-size: 4rem;
    margin-bottom: 1rem;
  }
}