/* RESET */
html, body {
    height: 100%;
    margin: 0;
    font-family: Arial, sans-serif;
}

/* FLEX PARA FOOTER ABAJO */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

/* HEADER */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 10%;
    background-color: #f5f5f5;
}

header h2 {
    color: #1b5e20;
}

nav a {
    margin-left: 20px;
    text-decoration: none;
    color: #333;
}

nav a:hover {
    color: #1b5e20;
}

/* HERO */
.hero {
    height: 400px;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)),
                url('https://images.unsplash.com/photo-1501004318641-b39e6451bec6') center/cover no-repeat;
    display: flex;
    align-items: center;
    padding-left: 10%;
    color: white;
}

.hero h1 {
    font-size: 3rem;
    margin: 0;
}

.hero p {
    font-size: 1.2rem;
}

/* CONTENIDO */
.contenido {
    padding: 60px 10%;
}

.contenido h2 {
    color: #1b5e20;
    font-size: 2rem;
}

/* FOOTER */
footer {
    background-color: #1b5e20;
    color: white;
    text-align: center;
    padding: 15px;
}


main {
    padding: 40px 20px;   /* antes seguro estaba en 80px o más */
}

.contenido {
    max-width: 800px;
    margin: auto;
}

.contenido h3 {
    margin-top: 25px;   /* reduce el espacio entre títulos */
}

.contenido p {
    margin: 10px 0;   /* reduce espacio entre párrafos */
}

section {
    padding: 30px 0;
}

h3 {
    margin-bottom: 10px;
}

p {
    line-height: 1.6;
}
