
body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background: #f4f6f9;
}

/* HEADER */
header {
    background: linear-gradient(135deg, #0b3d91, #1c6ed5);
    color: white;
    text-align: center;
    padding: 60px 20px;
}

/* NAV */
nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    background: #111;
}

nav a {
    color: white;
    padding: 15px;
    text-decoration: none;
}

/* SECTIONS */
section {
    padding: 40px 20px;
}

/* GRID RESPONSIVE */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

/* CARDS */
.card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* FORM */
.formulario {
    max-width: 500px;
    margin: auto;
    display: flex;
    flex-direction: column;
}

.formulario input,
.formulario textarea {
    margin: 10px 0;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
}

.formulario button {
    background: #0b3d91;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    cursor: pointer;
}

/* FOOTER */
footer {
    text-align: center;
    padding: 20px;
    background: #0b3d91;
    color: white;
}

/* ANIMACIONES */
.fade-in {
    animation: fadeIn 1.5s ease-in;
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: 0.8s;
}

.whatsapp {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25D366;
    color: white;
    font-size: 28px;
    padding: 15px;
    border-radius: 50%;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: transform 0.3s;
}

.whatsapp:hover {
    transform: scale(1.1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* MOBILE */
@media (max-width: 600px) {
    header {
        padding: 40px 10px;
    }
}