/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* GENERAL */
body {
    font-family: Arial, sans-serif;
    background: #0f172a;
    color: white;
}

/* HEADER */
header {
    text-align: center;
    padding: 20px;
    background: #020617;
}

/* BANNER */
.banner {
    background: url("images/banner1.jpeg") center/cover no-repeat;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.overlay {
    background: rgba(0,0,0,0.6);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
}

/* BOTONES */
.btn {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 20px;
    background: #25D366;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
}

/* SERVICIOS */
.servicios {
    padding: 40px;
    text-align: center;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* CARDS */
.card {
    background: #1e293b;
    padding: 15px;
    border-radius: 10px;
    overflow: hidden; /* 🔥 evita que se salgan */
    max-width: 280px;
    margin: auto;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.card i {
    font-size: 30px;
    margin-bottom: 10px;
    color: #facc15;
}

/* TESTIMONIOS */
.testimonios {
    padding: 40px;
    text-align: center;
    background: #020617;
}

.testimonios .grid {
    justify-items: center;
}

/* 🔥 IMÁGENES CONTROLADAS (SOLUCIÓN FINAL) */
.testimonios img {
    width: 100%;
    height: 140px;       /* 🔥 tamaño pequeño */
    object-fit: cover;   /* 🔥 recorte elegante */
    border-radius: 8px;
    display: block;
}

/* TEXTO */
.card p {
    font-size: 14px;
    margin-top: 8px;
}

/* FORMULARIO */
.formulario {
    padding: 40px;
    text-align: center;
}

input, select {
    width: 80%;
    padding: 10px;
    margin: 10px;
    border-radius: 5px;
    border: none;
}

button {
    padding: 12px;
    background: #facc15;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    font-weight: bold;
}

/* WHATSAPP */
.whatsapp {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25D366;
    padding: 15px;
    border-radius: 50%;
    font-size: 22px;
    color: white;
}
/* 📱 RESPONSIVE */

/* CELULARES */
@media (max-width: 768px) {

    header h1 {
        font-size: 22px;
    }

    .banner {
        height: 40vh;
    }

    .overlay h2 {
        font-size: 18px;
    }

    .overlay p {
        font-size: 14px;
    }

    .btn {
        padding: 10px 15px;
        font-size: 14px;
    }

    input, select {
        width: 95%;
    }

    .card {
        max-width: 100%;
    }

}

/* PANTALLAS MUY PEQUEÑAS */
@media (max-width: 480px) {

    .banner {
        height: 35vh;
    }

    .overlay {
        padding: 15px;
    }

    .overlay h2 {
        font-size: 16px;
    }

}