/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Encabezado */
header {
    background: #0077b6;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

header .logo {
    font-size: 1.5rem;
    font-weight: bold;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1rem;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

nav a:hover {
    text-decoration: underline;
}

/* Hero */
.hero {
    background: url('https://images.unsplash.com/photo-1507525428034-b723cf961d3e') no-repeat center center/cover;
    color: white;
    text-align: center;
    padding: 5rem 2rem;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero .btn {
    background: #00b4d8;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
}

.hero .btn:hover {
    background: #0096c7;
}

/* Secciones */
.content {
    padding: 3rem 2rem;
    text-align: center;
}

.cards {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    flex: 1 1 250px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Formulario */
form {
    display: flex;
    flex-direction: column;
    max-width: 500px;
    margin: auto;
}

form label {
    margin: 0.5rem 0 0.2rem;
    font-weight: bold;
}

form input, form textarea, form button {
    padding: 0.8rem;
    margin-bottom: 1rem;
    border-radius: 5px;
    border: 1px solid #ccc;
}

form button {
    background: #0077b6;
    color: white;
    border: none;
    cursor: pointer;
}

form button:hover {
    background: #005f87;
}

#formMessage {
    margin-top: 1rem;
    font-weight: bold;
}

/* Footer */
footer {
    background: #023e8a;
    color: white;
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
}

/* Responsivo */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        text-align: center;
    }

    .hero h1 {
        font-size: 2rem;
    }
}
