/* Estilos generales (mantenemos los anteriores y añadimos) */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f9f7f3;
    color: #333;
    line-height: 1.6;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 40px;
}

header h1 {
    font-size: 2.5rem;
    color: #b85a2c;
    margin-bottom: 10px;
}

header p {
    font-size: 1.2rem;
    color: #666;
}

header a {
    color: #b85a2c;
    text-decoration: none;
}

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

/* Grid de recetas */
.recetas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Tarjetas */
.card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: #ddd;
}

.card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 200px;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #b85a2c;
}

.card .btn-ver {
    background-color: #b85a2c;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
    text-decoration: none;
    display: inline-block;
    margin-top: auto;
}

.card .btn-ver:hover {
    background-color: #9e4a24;
}

/* Página de detalle */
.detalle-receta {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.detalle-receta img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 15px;
    margin: 20px 0;
    background-color: #eee;
}

.detalle-receta h2 {
    color: #b85a2c;
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.detalle-receta h3 {
    margin: 20px 0 10px;
    color: #b85a2c;
    font-size: 1.5rem;
}

.detalle-receta ul {
    margin-left: 30px;
    margin-bottom: 20px;
}

.detalle-receta li {
    margin-bottom: 5px;
}

.detalle-receta .preparacion {
    line-height: 1.8;
    color: #444;
}

/* Responsive */
@media (max-width: 600px) {
    header h1 {
        font-size: 2rem;
    }

    .recetas-grid {
        grid-template-columns: 1fr;
    }

    .detalle-receta {
        padding: 20px;
    }
}