/* 1. Limpieza total */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #f4f4f4;
    color: #333;
}

/* 2. Header arreglado (Sin puntos y en línea) */
header {
    background: #1a1a1a;
    color: white;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header ul {
    display: flex;
    list-style: none; /* Esto quita los puntos negros */
}

header ul li {
    margin-left: 20px;
}

header ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

/* 3. Hero (La parte de la frase principal) */
#hero {
    background: #333; /* Color sólido por si falla la imagen */
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.btn-main {
    background: #fbc02d;
    color: #1a1a1a;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
    display: inline-block; /* Evita que se estire a todo lo ancho */
}

/* 4. Tarjetas (Lo que ya te salía bien) */
.container {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 40px;
    flex-wrap: wrap;
}

.card {
    background: white;
    width: 300px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.card h3, .card p {
    padding: 10px 15px;
}
.card-body {
    padding: 20px; /* Esto crea el espacio para que el texto no toque los bordes */
    background-color: white;
}

.card-body h3 {
    color: #2e7d32; /* Un verde oscuro para los títulos */
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.card-body p {
    color: #666; /* Un gris suave para la descripción */
    font-size: 0.95rem;
    line-height: 1.5;
}