

/* Recipe section */
body {
    background-image: url("images/paper-back.png");
}

/* --- Hero Container --- */
.recipe-hero-container {
    position: relative;
    width: 100%;
    height: 550px; /* Altura del banner según prototipo */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

/* --- Tarjeta de Información --- */
.recipe-info-card {
    background-color: rgba(255, 255, 255, 0.726); /* Fondo semi-transparente sutil */
    padding: 40px;
    border-radius: 20px;
}

.recipe-main-title {
    font-family: 'MuseoSansRounded700', sans-serif;
    color: #333;
    font-size: 42px;
    line-height: 1.1;
    margin-bottom: 20px;
    text-align: center;
}

.recipe-tagline {
    padding: 0 55px;
    font-family: 'MuseoSansRounded700', sans-serif;
    font-size: 24px;
    color: #555;
    line-height: 1.5;
    margin-bottom: 30px;
    text-align: center;
}

/* --- Métricas (Tiempo, Porción, Tipo) --- */
.recipe-metrics {
    background-color: rgba(255, 255, 255, 0.7);
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 15px 0;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centra las filas horizontalmente */
    width: 100%;
}

/* Contenedor de la primera fila */
.metrics-top-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding-bottom: 10px;
    width: 100%;
}

/* Contenedor de la segunda fila con línea divisoria superior sutil */
.metrics-bottom-row {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80%; /* Para que la línea no toque los bordes */
    padding-top: 10px;
    border-top: 1px solid rgba(0,0,0,0.08);
}

/* La unidad básica: Icono + Texto */
.metric-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px; /* Espacio exacto entre icono y texto */
}

.metric-box i {
    font-size: 18px;
    color: #8cb85c; /* Verde característico */
}

.metric-box span {
    font-family: 'MuseoSansRounded400', sans-serif;
    font-size: 16px;
    color: #444;
}

.metric-divider {
    color: #ccc;
    font-size: 18px;
    font-weight: 300;
}

/* Responsivo */
@media (max-width: 768px) {
    .recipe-hero-container { height: auto; padding: 40px 0; }
    .recipe-main-title { font-size: 32px; }
}


/* =========================================
   LAYOUT PRINCIPAL DE RECETA
   ========================================= */
.recipe-detail-section {
    padding: 30px 5%;
}

.recipe-grid {
    display: grid;
    /* La primera columna (textos) es un poco más ancha */
    grid-template-columns: 1fr 0.5fr;
    gap: 50px;
    align-items: start;
}

/* =========================================
   COLUMNA IZQUIERDA: TEXTOS
   ========================================= */
.recipe-section-title {
    font-family: 'MuseoSansRounded700', sans-serif;
    color: #333;
    font-size: 28px;
    margin-bottom: 25px;
}

.ingredients-block {
    margin-bottom: 50px;
}

.recipe-list {
    list-style: none;
    font-family: 'MuseoSansRounded300', sans-serif;
    font-size: 16px;
    color: #444;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 20px;
}

/* --- Lista de Ingredientes (Checks) --- */
.check-list li {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.check-list li i {
    color: #8cb85c; /* Verde suave característico */
    font-size: 16px;
}

.check-list li .quantity {
    color: #888;
    font-size: 16px;
}

/* --- Lista de Preparación (Números) --- */
.numbered-list {
    counter-reset: step;
}

.numbered-list li {
    counter-increment: step;
    display: flex;
    gap: 12px;
    align-items: baseline;
}

.numbered-list li::before {
    content: counter(step) ". ";
    font-family: 'MuseoSansRounded700', sans-serif;
    color: #333;
}

/* =========================================
   COLUMNA DERECHA: SIDEBAR
   ========================================= */
/* --- Contenedor del Sidebar --- */
.recipe-sidebar {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Espaciado entre tarjetas */
}

/* --- Tarjeta de Producto (Dimensiones Corregidas) --- */
.product-recipe-card {
    background-color: #ffffff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 15px; /* Bordes muy redondeados */
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03); /* Sombra suave de fondo */
    transition: transform 0.2s ease;
}

.product-recipe-card:hover {
    transform: translateY(-3px);
}

/* --- Información del Producto --- */
.product-recipe-info {
    flex: 1;
}

.product-recipe-name {
    font-family: 'MuseoSansRounded700', sans-serif;
    color: #333;
    font-size: 22px; /* Tamaño según prototipo */
    margin: 0 0 8px 0;
}

.product-recipe-weight {
    font-family: 'MuseoSansRounded300', sans-serif;
    color: #666;
    font-size: 16px;
    margin-bottom: 30px;
}

/* --- Imagen del Producto --- */
.product-recipe-image img {
    height: 140px; /* Tamaño compacto para la tarjeta lateral */
    width: auto;
    object-fit: contain;
}

/* --- Bloque CTA (Invitación a Comprar) --- */
.recipe-cta-box {
    background-color: rgba(255, 255, 255, 0.5); /* Fondo más ligero */
    border: 1px solid #e0e0e0;
    border-radius: 15px;
    padding: 25px 20px;
    text-align: center;
    margin-top: 10px;
}

.cta-box-title {
    font-family: 'MuseoSansRounded700', sans-serif;
    font-size: 18px;
    color: #333;
    margin-bottom: 20px;
}

.btn-buy-full {
    display: block;
    background: linear-gradient(180deg, #8cb85c 0%, #6a9641 100%);
    color: white;
    text-decoration: none;
    padding: 12px;
    border-radius: 8px;
    font-family: 'MuseoSansRounded700', sans-serif;
    margin-bottom: 15px;
}

.whatsapp-trigger a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #444;
    text-decoration: none;
    font-family: 'MuseoSansRounded300', sans-serif;
    font-size: 15px;
}

.whatsapp-trigger i {
    color: #25d366; /* Verde oficial de WhatsApp */
    font-size: 18px;
}

.whatsapp-trigger a:hover {
    color: var(--green-brand);
}

a:hover {
    color: #ffffff;
}

/* =========================================
   RESPONSIVO
   ========================================= */
@media (max-width: 992px) {
    .recipe-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .recipe-sidebar {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .related-product-card, 
    .recipe-purchase-invite {
        flex-basis: calc(50% - 10px);
    }
}

@media (max-width: 768px) {
    .recipe-sidebar {
        flex-direction: column;
    }
    
    .related-product-card, 
    .recipe-purchase-invite {
        flex-basis: 100%;
    }
}