:root {
            --verde-principal: #a2d245;
            --oscuro: #1a1a1a;
            --texto-gris: #555;
            --blanco: #ffffff;
        }


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

html {
    scroll-behavior: smooth;
}

body{
    width: 100%;
    display: flex;
    font-family: "Lexend", sans-serif;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #fff;
  font-optical-sizing: auto;
  color: var(--texto-gris);

}

.wapp {
    position: fixed;
    width: 50px;
    height: 50px;
    bottom: 15px;
    right: 15px;
    z-index: 10;
}

.wapp::before {
    position: absolute;
    top: 10px;
    color: #FFF;
    font-size: 12px;
    text-align: center;
    content: "¡Escríbenos!";
    padding: 5px 20px 5px 10px;
    border-radius: 5px;
    background-color: #32BA46;
    transition: opacity 0.5s ease, transform 0.5s ease;
    opacity: 0;
    transform: translateX(-40px);
}

.wapp:hover::before {
    opacity: 1;
    transform: translateX(-80px);
}

.wapp a {
    width: 50px;
    height: 50px;
}

.wapp a img {
    width: 50px;
    height: 50px;
    filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.25));
}


.burgermenu {
position: fixed;
width: 50px;
height: 50px;
top: 15px;
right: 15px;
z-index: 20;
display: none;
}

.burgermenu  img {
    width: 40px;
    height: 40px;
}


header {
    width: 100%;
    max-width: 1920px;
    position: fixed;
    top: 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0px;
    z-index: 10;
}

header.menutrans {
    background: rgb(2,70,103);
    background: linear-gradient(180deg, rgba(0,0,0,1) 0%, rgba(0,0,0,.2) 100%);
    padding: 0px 0px;
}

.logomin {
    transform: scale(0.75);
    transition: ease-in-out 0.3s;
}

header a img {
    width: 120px;
    height: auto;
}

nav{
    width: 85%;
    text-align: right;
}

nav a {
    display: inline;
    text-decoration: none;
    color: #999;
    font-size: 13px;
    font-weight: 300;
    margin-left: 25px;
    filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.25));
}

nav a:hover {
    color: #95c11f;
    transform: scale(1.05);
    transition: 0.3s;
}


/* Hero Section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('img/img2180.jpg') no-repeat center center/cover;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    width: 100%;
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--blanco);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    font-family: "Josefin Sans", sans-serif;
    font-weight: 700;
}

.hero a {
    min-width: 150px;
    background-color: #95c11f;
    border: solid 1px white;
    border-radius: 0 15px 0 15px;
    padding: 15px 5px;
    font-size: 15px;
    text-decoration: none;
    color: white;
    margin-top: 25px;
}

/* Stats Bar */
.stats-bar {
    width: 100%;
    background-color: var(--oscuro);
    color: var(--blanco);
    display: flex;
    justify-content: space-around;
    padding: 2rem 10%;
    text-align: center;
}

.stat-item h2 {
    color: var(--blanco);
    font-size: 2.5rem;
    margin: 0;
}

/* About Section */
.about {
    padding: 4rem 10%;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.about-content { flex: 1; }
.about-image { flex: 1; }
.about-image img { width: 100%; border-radius: 0 50px 0 50px; }



/* Values Grid */
.values {
    background-color: #f4f4f4;
    padding: 4rem 10%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.value-card i { font-size: 2rem; color: var(--verde-principal); }
.value-card h3 { color: var(--oscuro); margin-bottom: 10px; }

/* Services */
.services { padding: 4rem 10%; text-align: center; }
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.service-item {
    background: var(--verde-principal);
    color: white;
    padding: 2rem;
    border-radius: 8px;
    font-weight: bold;
}

/* Gallery */
.gallery {
    width: 100%;
    padding: 30px;
  --s: 15%; /* control the size */
  --g: 10px;  /* control the gap */
  --f: 0.9;   /* control the scale factor */
  
  display: grid;
  gap: var(--g);
  width: calc(6*var(--s) + 2*var(--g));
  aspect-ratio: 1.5;
  grid-template-columns: repeat(6,auto);
}

.gallery > img {
  width: 0;
  height: 0;
  min-height: 100%;
  min-width: 100%;
  object-fit: cover;
  cursor: pointer;
  filter: grayscale(90%);
  transition: .9s easy;
}

.gallery img:hover{
  filter: grayscale(0);
  width:  calc(var(--s)*var(--f));
  height: calc(var(--s)*var(--f));
}

.clientes {
    width: 100%;
}

.banner {
    width: 100%;
}

footer{
    width: 100%;
}



/* --- INICIAN MEDIA QUERIES --- */


@media screen and (max-width: 900px) {

.burgermenu {
    display: inline;
}

header {
    justify-content: space-between;
    padding: 15px 25px;
    display: flex;
    align-items: flex-start;
}

header a img {
    width: 45px;
    height: auto;
}

nav {
    position: absolute;
    width: 200px;
    background: rgb(0,66,92);
    padding: 50px 20px 20px 20px;
    text-align: center;
    right: -200px;
    top: -15px;
    transition: transform 0.3s;
    transition-timing-function: ease-in;
}

.show {
    transition: transform 0.3s;
    transition-timing-function: ease-in;
    transform: translateX(-200px);
}

nav a {
    display: block;
    padding: 20px 0px;
    margin: 10px 0px;
    filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.0));
    border-bottom: 0px dotted #fff;
}

nav a:hover {
    color: #A8EEFC;
}


}