/* RESET */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
}

/* CONTAINER */
.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* HEADER */
header {
    background: #007bff;
    color: white;
    padding: 1rem 0;
}
header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
header nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}
header nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 600;
}
header nav ul li a.btn-nav {
    background: white;
    color: #007bff;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
}

/* HERO */
.hero {
    background: #f5f5f5;
    padding: 4rem 0;
    text-align: center;
}
.hero h2 { font-size: 2rem; margin-bottom: 1rem; }
.hero p { margin-bottom: 1rem; }
.hero .btn {
    background: #007bff;
    color: white;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 6px;
}

/* GRID GENERAL */
.grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin: 2rem 0;
}

/* CARDS */
.card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s;
}
.card:hover { transform: translateY(-5px); }
.card i.icon { font-size: 2rem; margin-bottom: 0.8rem; color: #007bff; }

/* SERVICIO TOOLTIP */
.servicio { position: relative; cursor: pointer; }
.servicio::after {
    content: attr(data-detalle);
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #007bff;
    color: white;
    padding: 0.7rem;
    border-radius: 6px;
    width: 250px;
    font-size: 0.9rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 10;
}
.servicio:hover::after { opacity: 1; }

/* MODAL */
.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.6);
}
.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 2rem;
    border-radius: 8px;
    max-width: 500px;
    position: relative;
    text-align: center;
}
.modal-content h3 { margin-bottom: 1rem; }
.modal-content p { font-size: 1rem; line-height: 1.4; }
.cerrar {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #333;
    font-size: 1.5rem;
    cursor: pointer;
}

/* PRUEBA SOCIAL */
.prueba-social h2 { text-align: center; margin-bottom: 2rem; }
.logos-clientes { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: center; align-items: center; margin-bottom: 2rem; }
.logos-clientes img { max-height: 50px; object-fit: contain; }
.testimonios { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.testimonios .card { background:#007bff; color:white; padding:1rem; border-radius:8px; text-align:center; }

/* BENEFICIOS */
.beneficios .grid { gap: 1.5rem; }
.cta-intermedia { margin-top: 2rem; text-align:center; }
.cta-intermedia .btn { background: #007bff; color: white; padding: 0.8rem 1.5rem; border-radius:6px; text-decoration:none; }

/* CONTACTO */
form { display:flex; flex-direction: column; gap:1rem; }
input, select, textarea { padding:0.8rem; border-radius:4px; border:1px solid #ccc; width:100%; }
button { background:#007bff; color:white; border:none; padding:0.8rem; border-radius:4px; cursor:pointer; transition:0.3s; }
button:hover { background:#0056b3; }
.pequeño { font-size:0.9rem; color:#555; }

/* FOOTER */
footer { text-align:center; padding:1.5rem 0; background:#f5f5f5; margin-top:2rem; }

/* WHATSAPP */
.whatsapp {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background:#25d366;
    color:white;
    font-size:1.8rem;
    padding:0.5rem 0.7rem;
    border-radius:50%;
    z-index:100;
}