@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

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

body {
    font-family: 'Poppins', sans-serif;
    background: #f4f7f5;
}

/* HEADER */
.header {
    display: flex;
    justify-content: space-between;
    padding: 15px 60px;
    background: #1b5e20;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    height: 85px;
    background: white;
    padding: 8px;
    border-radius: 10px;
}

.logo span {
    color: white;
    font-weight: bold;
    font-size: 32px;
}

.btn-login {
    background: #dcac1c;
    color: white;
    padding: 10px 18px;
    border-radius: 20px;
    text-decoration: none;
}

/* NAV */
.nav {
    background: #2e7d32;
    text-align: center;
    padding: 12px;
}

.nav a {
    color: white;
    margin: 0 15px;
    text-decoration: none;
}

/* HERO */
.hero {
    display: flex;
    justify-content: space-between;
    padding: 70px 10%;
    background: linear-gradient(135deg, #1b5e20, #66bb6a);
    color: white;
}

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

.hero span {
    color: #ffeb3b;
}

/* CARDS MODERNAS */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
    gap: 30px;
    padding: 50px 10%;
}

.card {
    background: white;
    padding: 25px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    transition: 0.4s;
}

/* EFECTO MODERNO */
.card::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #c9a227, #1b5e20);
    top: 0;
    left: 0;
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.card h3 {
    margin-bottom: 10px;
    color: #1b5e20;
}

/* IMPACTO */
.impacto {
    background: #1b5e20;
    color: white;
    text-align: center;
    padding: 60px 10%;
}

.impacto-texto {
    font-size: 20px;
    margin-bottom: 50px;
}

.impacto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 40px;
}

.impacto-item {
    transition: 0.3s;
}

.impacto-item:hover {
    transform: scale(1.1);
}

.impacto-item h2 {
    font-size: 45px;
}

.icono {
    font-size: 40px;
}

/* FOOTER */
.footer {
    background: #1b5e20;
    color: white;
    text-align: center;
    padding: 20px;
}
/* CONTACTO */
.contacto {
    padding: 50px 10%;
    text-align: center;
}

.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.info-contacto {
    background: white;
    padding: 25px;
    border-radius: 12px;
    text-align: left;
    border-left: 4px solid #c9a227;
}

.nota {
    margin-top: 15px;
    font-size: 14px;
    color: #666;
}

/* FORMULARIOS */
.formulario,
.formulario-cursos {
    background: white;
    padding: 25px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

input, textarea, select {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
}

textarea {
    resize: none;
    height: 100px;
}

button {
    background: #1b5e20;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
}

button:hover {
    background: #145a1f;
}

/* SECCIÓN CURSOS */
.cursos {
    padding: 50px 10%;
    text-align: center;
}

.formulario-cursos {
    max-width: 500px;
    margin: auto;
}
/* HERO con fondo */
.hero {
    position: relative;
    overflow: hidden;
}

/* Fondo con imágenes */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background-size: cover;
    background-position: center;
    z-index: 0;

    animation: slider 15s infinite;
    filter: brightness(0.5);
}

/* Texto encima */
.hero-text,
.hero-bot {
    position: relative;
    z-index: 2;
    color: white;
}

/* Animación */
@keyframes slider {

    0% {
        background-image: url('../images/ayuda1a.jpg');
    }

    33% {
        background-image: url('../images/ayuda1.jpg');
    }

    66% {
        background-image: url('../images/ayuda2.jpg');
    }

    100% {
        background-image: url('../images/ayuda1a.jpg');
    }
}
.impacto h2 {
    font-size: 40px;
    color: #d32f2f;
}