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

body {
    font-family: Arial, sans-serif;
    background: #f4fff4;
    color: #222;
}

/* HERO */

.hero {
    height: 80vh;
    background:
    linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
    url('https://images.unsplash.com/photo-1466692476868-aef1dfb1e735?q=80&w=1600&auto=format&fit=crop');

    background-size: cover;
    background-position: center;

    display: flex;
    justify-content: center;
    align-items: center;

    text-align: center;
    color: white;
}

.overlay h1 {
    font-size: 70px;
    margin-bottom: 20px;
    animation: fadeDown 1s ease;
}

.overlay p {
    font-size: 24px;
    margin-bottom: 25px;
    animation: fadeUp 1s ease;
}

.logo {
    width: 140px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 15px rgba(255,255,255,0.7));
    animation: float 3s ease-in-out infinite;
}

/* HEADER */

.small-header {
    background: linear-gradient(135deg, #43a047, #2e7d32);
    color: white;
    text-align: center;
    padding: 40px;
}

/* NAV */

nav {
    background: #1b5e20;
    padding: 18px;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav a {
    color: white;
    margin: 15px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
    font-size: 17px;
}

nav a:hover {
    color: #c8e6c9;
    transform: scale(1.1);
}

/* BOTONES */

.btn,
button {
    background: #43a047;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    transition: 0.3s;
}

.btn:hover,
button:hover {
    background: #2e7d32;
    transform: scale(1.05);
}

/* CONTENIDO */

.container {
    width: 90%;
    margin: auto;
    padding: 40px 0;
}

/* CARDS */

.card {
    background: white;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    animation: fadeUp 1s ease;
}

.card h2,
.card h3 {
    margin-bottom: 15px;
    color: #2e7d32;
}

.card p {
    line-height: 1.7;
}

/* GRID */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

/* MINI CARDS */

.mini-card {
    background: white;
    padding: 25px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: 0.3s;
}

.mini-card:hover {
    transform: translateY(-10px);
}

/* ESTADISTICAS */

.stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 40px;
    flex-wrap: wrap;
}

.stat-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    width: 220px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.stat-card h2 {
    color: #2e7d32;
    font-size: 40px;
}

/* ESTADOS */

.good {
    color: green;
    font-weight: bold;
}

.bad {
    color: red;
    font-weight: bold;
}

/* BARRAS */

.progress {
    width: 100%;
    background: #ddd;
    border-radius: 20px;
    overflow: hidden;
    margin: 10px 0;
}

.progress-green {
    background: green;
    height: 15px;
}

.progress-red {
    background: red;
    height: 15px;
}

/* FORMULARIOS */

input,
textarea {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    margin-bottom: 20px;
    border-radius: 10px;
    border: 1px solid #ccc;
    font-size: 15px;
}

textarea {
    height: 120px;
}

/* TESTIMONIOS */

.testimonials p {
    margin-bottom: 20px;
}

/* FOOTER */

footer {
    background: #1b5e20;
    color: white;
    text-align: center;
    padding: 30px;
    margin-top: 50px;
}

/* ANIMACIONES */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* RESPONSIVE */

@media(max-width:768px){

    .overlay h1 {
        font-size: 45px;
    }

    .overlay p {
        font-size: 18px;
    }

    nav a {
        display: block;
        margin: 10px;
    }

}

@keyframes float {

    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }

}
