:root {
    --fondo: #ffffff;
    --verde: #10aa50;
    --texto-claro: #ffffff;
    --gris: #aabac2;
    --oscuro: #001e2b;
    --fondo-guardado: #0c2b39;
    --texto: #005447;
  }

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

html, body {
    font-family: 'Inter', sans-serif;
    background-color: var(--fondo);
    color: var(--texto-claro);
    scroll-behavior: smooth;
  }

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--fondo);
    color: black;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.4);
    height: 13vh;
  }
  
.navbar-logo {
    font-size: 1.6rem;
    font-weight: bold;
    color: var(--verde);
  }
  
.navbar-menu {
    list-style: none;
    display: flex;
    gap: 25px;
  }
  
.navbar-menu li a {
    color: var(--texto);
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s ease;
    text-decoration: none;
  }
  
.navbar-menu li a:hover {
    color: var(--verde);
  }

.logo-img {
    height: 60px; /* ajusta el tamaño según tu logo */
    width: auto;
  }

.navbar-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: black;
  }
  
.header-home {
    height: 100vh;
    background-image: url('../img/aire-header.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* <- esto activa el efecto parallax */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
  }

.header-home h1 {
    font-size: 4rem;
    color: var(--fondo);
    margin-bottom: 10px;
    margin-left: 400px;
    background-color: rgba(17, 55, 29, 0.6); /* Fondo semitransparente opcional */
    border-radius:10px;
    padding: 0px 20px;
    font-weight: bold;
  }

.header-home p {
    font-size: 1.2rem;
    color: var(--gris);
  }

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    margin-left: 380px;
  }
  
.btn-servicios {
padding: 16px 45px;
background-color: var(--texto);
font-size: 1rem;
color: white;
border: none;
border-radius: 50px;
text-decoration: none;
font-weight: 600;
transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-servicios:hover {
background-color: var(--texto);
transform: scale(1.05);
}

.btn-secundario {
background-color: var(--texto);
border: 2px solid var(--texto);
color: var(--fondo);
}

.btn-secundario:hover {
background-color: var(--texto);
color: white;
}


section {
padding: 80px 20px;
max-width: 1000px;
margin: auto;
}

section h2 {
font-size: 2rem;
color: var(--verde);
margin-bottom: 30px;
text-align: center;
}

.section-full {
  width: 100%;
  max-width: none;
  padding-left: 0;
  padding-right: 0;
  margin: 0;
}


/* texto servicios */

.titulo-seccion {
  text-align: center;
  font-size: 3rem;
  color: var(--texto);
  margin-bottom: 20px;
  font-weight: bold;
}

.lista-servicios {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.lista-servicios li {
  font-size: 1rem;
  color: var(--texto);
  padding-left: 25px;
  position: relative;
  line-height: 1.6;
}

.lista-servicios li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: var(--texto);
  font-weight: bold;
}

.boton-servicios {
  margin-top: 40px;
}

.btn-detalles {
  padding: 18px 40px;
  background-color: transparent;
  border: 2px solid var(--texto);
  color: var(--texto);
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-detalles:hover {
  background-color: var(--texto);
  color: white;
}


.sobre-mi {
  min-height: 100vh;
  display: block;
  padding: 80px 0;
}

.sobre-mi-contenido {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 60px;
  padding: 60px 20px;
  max-width: 1200px;
  margin: auto;
  min-height: 80vh;
}

.sobre-mi .texto {
  flex: 1 1 400px;
  max-width: 600px;
}

.sobre-mi .texto h2 {
  font-size: 1.5rem;
  color: var(--texto);
  margin-bottom: 20px;
  font-weight: bold;
}

.sobre-mi .texto p {
  font-size: 1.3rem;
  color: var(--texto);
  line-height: 1.8;
  font-weight: 500;
}

/* colash */

.imagenes-colash {
  position: relative;
  flex: 1 1 400px;
  max-width: 500px;
  height: 450px;
}

.imagenes-colash img {
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  width: 100%;
  max-width: 390px;
  transition: transform 0.3s ease;
}

.imagenes-colash .img1 {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
}

.imagenes-colash .img2 {
  position: absolute;
  bottom: -40px;
  right: -40px;
  z-index: 1;
}

.imagenes-colash:hover .img1 {
  transform: scale(1.05);
}

.imagenes-colash:hover .img2 {
  transform: scale(1.05);
}

/* Seccion CTA */
.franja-banner {
  width: 100%;
  background-image: url('../img/banner1.jpg'); /* Reemplaza con tu imagen */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed; /* <- esto activa el efecto parallax */
  padding: 60px 20px; /* Altura visible de la franja */
  display: flex;
  justify-content: center;
  align-items: center;
  height: 50vh;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}


.franja-contenido {
  display: flex;
  align-items: center;
  gap: 30px;
  background-color: rgba(0, 0, 0, 0.5); /* Fondo semitransparente opcional */
  padding: 20px 30px;
  border-radius: 20px;
  flex-wrap: wrap;
  text-align: center;
  
}

.franja-texto {
  color: white;
  font-size: 1.5rem;
  font-weight: 600;
}

.franja-boton {
  background-color: #005447;
  color: white;
  padding: 14px 32px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.franja-boton:hover {
  background-color: #00795c;
  transform: scale(1.05);
}
/* proyectos */

.proyectos {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 20px;
}

.proyecto {
background-color: var(--texto);
padding: 20px;
border-radius: 10px;
transition: transform 0.3s ease, box-shadow 0.3s ease;
border: 1px solid var(--texto);
}

.proyecto:hover {
transform: translateY(-5px);
box-shadow: 0 0 20px rgba(16, 170, 80, 0.3);
}

.proyecto h3 {
color: var(--fondo);
margin-bottom: 10px;
font-weight: bold;
}

.proyecto p {
color: var(--fondo);
font-size: 0.95rem;
}

footer {
background-color: var(--texto);
text-align: center;
padding: 60px 20px;
}

footer h2 {
color: var(--fondo);
margin-bottom: 20px;
}

footer p {
color: var(--fondo);
margin: 5px 0;
}

footer a:hover {
  text-decoration: underline;
}

#rotate-warning {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  color: white;
  font-size: 1.3rem;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
}

/* 🔹 Solo mostrar en pantallas pequeñas y en modo horizontal */
@media screen and (max-width: 842px) and (orientation: landscape) {
  #rotate-warning {
    display: flex;
  }
  body {
    overflow: hidden;
  }
}

.rotate-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
}

/* 🔹 Icono del celular */
.phone-icon {
  width: 50px;
  height: 90px;
  border: 3px solid white;
  border-radius: 10px;
  position: relative;
  animation: rotatePhone 2s infinite ease-in-out;
}

.phone-icon::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 4px;
  background: white;
  border-radius: 2px;
}

.phone-icon::after {
  content: "";
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  background: white;
  border-radius: 50%;
}

/* 🔹 Animación de rotación */
@keyframes rotatePhone {
  0%, 100% {
    transform: rotate(0deg);
  }
  40% {
    transform: rotate(90deg);
  }
  60% {
    transform: rotate(90deg);
  }
}


@media (max-width: 412px) {
  .navbar-menu {
    position: absolute;
    top: 105px;
    right: 0;
    background-color: var(--fondo);
    flex-direction: column;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding-bottom: 5px;
  }

  .navbar-menu.show {
    max-height: 500px; /* lo suficiente para mostrar los ítems */
  }

  .navbar-toggle {
    display: block;
  }

  .header-home {
    height: 100vh;
    background-image: url('../img/header-movil.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: scroll; /* <- evita el parallax */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    overflow: hidden; /* <- IMPORTANTE si usas vh */
  }

  
  .header-home h1 {

    font-size: 2rem;
    color: var(--fondo);
    margin: 0 auto 10px auto; /* Centrado horizontalmente */
    background-color: rgba(17, 55, 29, 0.6);
    border-radius: 10px;
    padding: 0px 20px;
    font-weight: bold;
    text-align: center;
    display: inline-block;
  }

  .hero-buttons{
    display: flex;
    flex-wrap: wrap; /* Por si se reduce el espacio */
    gap: 20px;
    margin: 0 auto 10px auto; /* Centrado horizontalmente */
    margin-top: 20px;
    justify-content: center; /* Centra los botones */
  }

  .btn-servicios {
    padding: 16px 45px;
    background-color: var(--texto);
    font-size: clamp(0.9rem, 2.5vw, 1.2rem); /* Ajuste flexible */
    color: white;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-align: center;
    white-space: nowrap; /* Evita salto de línea si el botón es muy estrecho */
  }
  
  .franja-banner {
    width: 100%;
    /* Quitamos la imagen y el parallax */
    background: linear-gradient(135deg, #005447, #00795c); /* Degradado de verde oscuro a más claro */
    padding: 60px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 40vh;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    text-align: center; /* Asegura que el texto quede centrado */
  }

  .franja-contenido{
    display: flex;
  flex-direction: column;      /* Coloca el texto y el botón uno debajo del otro */
  align-items: center;         /* Centra horizontalmente */
  text-align: center;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 20px 30px;
  border-radius: 20px;
  gap: 20px;
  }
  

  section {
    padding: 50px 15px;
  }

  .sobre-mi {
    padding: 40px 20px;
  }

  .sobre-mi-contenido {
    flex-direction: column;
    text-align: center;
  }

  .imagenes-colash {
    display: none;
  }

  .imagenes-colash img {
    display: none;
  }

  .imagenes-colash .img2 {
    display: none;
  }
}

