header img{
    width: 220px;
    max-width: 80%;
    margin-bottom: 20px;
}


nav a {
    color: white;
    text-decoration: none;
    margin: 20px;
    font-size: 18px;
    font-weight: bold;
}
footer{
    background:#222;
    color:white;
    text-align:center;
    padding:20px;
    margin-top:30px;
}
body{
    margin:0;
    font-family:Arial,sans-serif;
    background:#f4f4f4;
}

header {
    background: #2e7d32;
    color: white;
    text-align: center;
    padding: 40px;
}

.boton {
    display: inline-block;
    background: #25D366;
    color: white;
    text-decoration: none;
    padding: 15px 25px;
    border-radius: 10px;
    font-size: 20px;
}

section {
    padding: 30px;
}
nav{
    background:#1b5e20;
    padding:15px;
    text-align:center;
    position:sticky;
    top:0;
}

nav a{
    color:white;
    text-decoration:none;
    margin:0 15px;
    font-weight:bold;
}
.galeria{
    display:flex;
    gap:15px;
    overflow-x:auto;
    padding:10px;
}

.galeria img{
    width:300px;
    border-radius:15px;
    box-shadow:0 4px 8px rgba(0,0,0,0.3);
}
.whatsapp{
    position:fixed;
    bottom:20px;
    right:20px;
    background:#25D366;
    color:white;
    width:60px;
    height:60px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:30px;
    text-decoration:none;
    box-shadow:0 4px 10px rgba(0,0,0,0.3);
}
.tarjetas{
    display:flex;
    gap:20px;
    justify-content:center;
    flex-wrap:wrap;
}

.tarjeta{
    width:250px;
    background:white;
    padding:20px;
    border-radius:15px;
    box-shadow:0 4px 10px rgba(0,0,0,0.2);
    text-align:center;
}

.tarjeta:hover{
    transform:translateY(-5px);
    transition:0.3s;
}
.galeria {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    padding: 20px;
}

.galeria img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 10px;
}
.completa{
    object-fit: contain;
    background: #f5f5f5;
}
.tarjetas{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 60px;
}

.tarjeta{
    width: 280px;
    padding: 25px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    text-align: center;
}

#servicios{
    padding-top: 80px;
}
.ventajas{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:20px;
    margin-top:20px;
}

.ventaja{
    background:#e8f5e9;
    padding:25px;
    border-radius:20px;
    box-shadow:0 4px 10px rgba(0,0,0,0.1);
    text-align:center;
    transition:0.3s;
}

.ventaja:hover{
    transform:translateY(-5px);
}

.ventaja h3{
    color:#2e7d32;
    margin-bottom:10px;
}
/* ===== DISEÑO PARA CELULARES ===== */

@media (max-width: 768px) {

    header {
        padding: 25px 15px;
    }

    header img {
        width: 180px;
        max-width: 75%;
        margin-bottom: 15px;
    }

    nav {
        padding: 10px 5px;
    }

    nav a {
        display: inline-block;
        margin: 6px 5px;
        font-size: 14px;
    }

    section {
        padding: 25px 15px;
    }

    .tarjetas {
        gap: 15px;
        margin-top: 30px;
    }

    .tarjeta {
        width: 100%;
        max-width: 320px;
        padding: 20px;
        box-sizing: border-box;
    }

    .ventajas {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .ventaja {
        padding: 20px;
    }

    .galeria {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 10px;
    }

    .galeria img {
        width: 100%;
        aspect-ratio: 1 / 1;
        object-fit: cover;
    }

    .galeria img.completa {
        object-fit: contain;
    }

    .boton {
        font-size: 17px;
        padding: 13px 20px;
    }

    h1 {
        font-size: 30px;
    }

    h2 {
        font-size: 25px;
    }

    h3 {
        font-size: 20px;
    }

    p {
        font-size: 16px;
        line-height: 1.5;
    }

    .whatsapp {
        width: 55px;
        height: 55px;
        bottom: 15px;
        right: 15px;
        font-size: 26px;
    }
}
