
* {
  box-sizing: border-box;
}
:root {
    --white: #fff;
    --black: #333;
}

body {
    height: 100%;
    background: linear-gradient(135deg, #708238, #c0c781);
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    overflow-x: hidden;
    overflow-y: auto;
}




.centrado-menu{
    display: flex;
    height: auto;
    width: 100%;
}

.logo p {
    margin: 0;
    line-height: 0.1;
}

.logo .l1 {
    margin-top: 5px;
    font-size: 23px;
    font-weight: bold;
    color: black;
}

.logo .l2 {
    font-size: 20px;
    color:black;
    margin-bottom: 5px;
}

.menu {
    display: flex;
    width: 100%;
    background: linear-gradient(135deg, #708238, #c0c781);
    padding: 15px 30px;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}


.menu-links {
    list-style: none;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.menu-links li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.menu-links li a:hover {
    color: #ffd700;
}


.menu-toggle {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 25px;
    position: relative;
    z-index: 1100;
}

.menu-toggle span {
    position: absolute;
    height: 3px;
    width: 100%;
    background:white;
    border-radius: 2px;
    transition: 0.3s ease;
}

.menu-toggle span:nth-child(1) {
    top: 0;
}

.menu-toggle span:nth-child(2) {
    top: 11px;
}

.menu-toggle span:nth-child(3) {
    bottom: 0;
}


.menu-toggle.open span:nth-child(1) {
    transform: rotate(45deg);
    top: 11px;
}

.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
    transform: rotate(-45deg);
    bottom: 11px;
}

.centrado {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

button {
    cursor: pointer;
    background: var(--black);
    color: var(--white);
    border: none;
    padding: 12px;
    border-radius: 5px;
    font-size: 16px;
    transition: background 0.3s ease;
}

button:hover {
    background: #555;
}

.toggle-link {
    margin-top: 10px;
    font-size: 14px;
    color: #555;
    cursor: pointer;
    user-select: none;
}

.toggle-link span {
    color: var(--black);
    font-weight: bold;
    text-decoration: underline;
    }

.hero {
  margin-top: 80px;
  width: 100%;
  height: 1000px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 20px;
  transform: translateX(-100%);
  opacity: 0;
  transition: transform 2s ease-out, opacity 2s ease-out;
}
.hero.show { 
  transform: translateX(0);
  opacity: 1;
}

.hero img {
  position: absolute;
  width: 100%;
  height: 100%;
  display: block;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: auto;
  padding: 0 15px;
  color: white;
}
.hero h1 { 
  font-size: 3rem; 
  line-height: 1.2;
 }
.hero p {
   font-size: 1.3rem; 
   margin: 15px 0; 
  }



.btn {
  display: inline-block;
  padding: 12px 25px;
  background: #2c6e49;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  margin-top: 20px;
  font-weight: bold;
  transition: background 0.5s ease;
  box-shadow: 3px 2px 10px rgba(112, 130, 56, 0.747);
}
.btn:hover {
  background: #24553a; 
}

.about {
  display: flex;
  flex-wrap: wrap;
  padding: 50px;
  gap: 20px;
  align-items: center;
}
.about-text {
  flex: 1;
  transform: translateX(-100%);
  opacity: 0;
  transition: transform 2s ease-out, opacity 2s ease-out;
}

.about-text.show {
  transform: translateX(0);
  opacity: 1;
}
.about-img {
  flex: 1;
  transform: translateX(-100%);
  opacity: 0;
  transition: transform 2s ease-out, opacity 2s ease-out;
}
.about-img.show { 
  transform: translateX(0); 
  opacity: 1; 
}
.about-img img {
  
  width: 100%;
  border-radius: 10px;
}



.services {
  background: #f7f7f7;
  padding: 50px;
  text-align: center;
}
.grid-services {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(200px,1fr));
  gap: 20px;
  margin: 30px 0;
}
.service-card {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 3px 2px 10px rgba(112, 130, 56, 0.747);
}



.gallery {
  padding: 50px 15px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}
.grid-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 20px;
}
.grid-gallery img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}
.grid-gallery img:hover {
   transform: scale(1.05);
   }



.avisos {
  background: #f7f7f7;
  padding: 50px;
}
.avisos ul {
   list-style: none; 
   margin-top: 20px; 
  }
.avisos li { 
  margin-bottom: 10px; 
  font-size: 1.1rem; 
}



.contacto {
  background: linear-gradient(135deg, #708238, #c0c781);
  color: white;
  padding: 40px;
  text-align: center;
}
.mapa iframe {
  width: 100%;
  height: 250px;
  margin-top: 20px;
  border: none;
}

@media (max-width: 900px) {
  .menu-toggle {
    display: block;
  }

  .menu-links {
    flex-direction: column;
    position: absolute;
    top: 46px;
    left: 0;
    right: 0;
    width: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 1), rgba(1, 6, 53, 0.95));
    display: none;
    text-align: center;
    padding: 20px 0;
  }

  .menu-links.show {
    display: flex;
    animation: fadeIn 0.3s ease-in-out;
  }

  .hero{
    height: 600px;
    width: 100%;
    margin-top: 60px ;
  }
}


@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .menu-links {
    flex-direction: column;
    position: absolute;
    top: 46px;
    left: 0;
    right: 0;
    width: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 1), rgba(1, 6, 53, 0.95));
    display: none;
    text-align: center;
    padding: 20px 0;
  }

  .menu-links.show {
    display: flex;
    animation: fadeIn 0.3s ease-in-out;
  }

  .hero{
    height: 400px;
    width: 100%;
  }

  .about {
    flex-direction: column; /* cambia a columna */
    padding: 30px 15px;     /* reduce padding */
    gap: 15px;              /* reduce espacio entre elementos */
  }

  .about-text {
    order: 1;  /* primero el texto */
  }

  .about-img {
    order: 2;  /* luego la imagen */
  }

  .about-img img {
    width: 100%;   /* imagen al ancho del contenedor */
    border-radius: 10px;
  }
}

@media (max-width: 468px) {
  .menu-toggle {
    display: block;
  }

  .menu-links {
    flex-direction: column;
    position: absolute;
    top: 46px;
    left: 0;
    right: 0;
    width: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 1), rgba(1, 6, 53, 0.95));
    display: none;
    text-align: center;
    padding: 20px 0;
  }

  .menu-links.show {
    display: flex;
    animation: fadeIn 0.3s ease-in-out;
  }

  .hero{
    height:250px;
    width: 100%;
  }

  .hero h1 {
    font-size: 1.5rem; /* aún más pequeño en móviles muy chicos */
  }

  .hero p {
    font-size: 0.9rem;
  }
  
}

