/* assets/css/style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
    background-color: #F9F9F9;
    color: #333;
    line-height: 1.6;
}

a {
    color: #D32F2F;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: #B71C1C;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}
header img {
    height: 50px;
}
nav a {
    color: #fff;
    margin-left: 25px;
    font-weight: 500;
}
nav a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    background: #B71C1C;
    color: #fff;
    padding: 20px 0;
    margin-top: 40px;
    text-align: center;
}

/* Home */
.hero {
    text-align: center;
    padding: 60px 0 40px;
}
.hero h1 {
    font-size: 2.8rem;
    color: #B71C1C;
}
.hero p {
    font-size: 1.2rem;
    color: #555;
}
.search-box {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    max-width: 700px;
    margin: 30px auto;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}
.search-box select, .search-box button {
    padding: 12px 20px;
    border: 1px solid #ddd;
    border-radius: 30px;
    font-size: 1rem;
    min-width: 180px;
    background: #fff;
}
.search-box button {
    background: #D32F2F;
    color: #fff;
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s;
}
.search-box button:hover {
    background: #B71C1C;
}

#mapa {
    width: 100%;
    height: 400px;
    border-radius: 12px;
    margin: 20px 0;
    background: #e0e0e0;
}

/* Directorio grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}
.card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    overflow: hidden;
    transition: transform 0.15s;
}
.card:hover {
    transform: translateY(-5px);
}
.card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: #eee;
}
.card-body {
    padding: 18px;
}
.card-body h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: #B71C1C;
}
.card-body p {
    color: #555;
    font-size: 0.95rem;
    margin: 5px 0;
}
.card-body .rating {
    color: #F9A825;
    font-weight: bold;
}
.card-body .btn {
    display: inline-block;
    background: #D32F2F;
    color: #fff;
    padding: 8px 18px;
    border-radius: 30px;
    margin-top: 12px;
    font-weight: 500;
}
.card-body .btn:hover {
    background: #B71C1C;
    text-decoration: none;
}

/* Recetas */
.receta-item {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.receta-item h2 {
    color: #B71C1C;
}
.receta-item .meta {
    color: #777;
    font-size: 0.9rem;
}
.receta-detalle {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.receta-detalle img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

/* Responsive */
@media (max-width: 600px) {
    .search-box select, .search-box button {
        min-width: 100%;
    }
    header .container {
        flex-direction: column;
        gap: 10px;
    }
    nav a {
        margin: 0 10px;
    }
}