/* ===================================================
   COCINA.PRO — Estilos principales
   Paleta: naranja cálido + azul oscuro + verde
   =================================================== */

/* ---- Variables CSS ---- */
:root {
    --primary:        #e67e22;
    --primary-dark:   #cf6d17;
    --primary-light:  #f39c12;
    --secondary:      #2c3e50;
    --accent:         #27ae60;
    --accent-dark:    #1e8449;
    --danger:         #e74c3c;
    --warning:        #f1c40f;
    --fondo:          #fafafa;
    --card-bg:        #ffffff;
    --texto:          #2d3748;
    --texto-light:    #718096;
    --borde:          #e2e8f0;
    --sombra:         0 4px 20px rgba(0,0,0,.08);
    --sombra-hover:   0 12px 40px rgba(230,126,34,.20);
    --radius:         14px;
    --radius-sm:      8px;
    --trans:          all .28s ease;
    --font-base:      'Nunito', sans-serif;
    --font-heading:   'Playfair Display', serif;
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: var(--font-base);
    background-color: var(--fondo);
    color: var(--texto);
    font-size: 1rem;
    line-height: 1.65;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    color: var(--secondary);
}

a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; }

/* ---- Botones ---- */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #fff;
    font-weight: 700;
    border-radius: 50px;
    padding: .5rem 1.4rem;
    transition: var(--trans);
}
.btn-primary:hover, .btn-primary:focus {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(230,126,34,.35);
}
.btn-outline-primary {
    border-color: var(--primary);
    color: var(--primary);
    border-radius: 50px;
    font-weight: 600;
    transition: var(--trans);
}
.btn-outline-primary:hover {
    background-color: var(--primary);
    color: #fff;
}
.btn-accent {
    background-color: var(--accent);
    border-color: var(--accent);
    color: #fff;
    font-weight: 700;
    border-radius: 50px;
    transition: var(--trans);
}
.btn-accent:hover {
    background-color: var(--accent-dark);
    border-color: var(--accent-dark);
    color: #fff;
}

/* ===================================================
   NAVBAR
   =================================================== */
#mainNav {
    border-bottom: 2px solid var(--borde);
    z-index: 1030;
    transition: box-shadow .3s;
}
#mainNav.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,.12) !important; }

/* Logo */
.logo-icon {
    width: 42px; height: 42px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-size: 1.15rem;
    box-shadow: 0 4px 12px rgba(230,126,34,.3);
    flex-shrink: 0;
}
.logo-icon-footer { width: 38px; height: 38px; }

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--secondary);
}
.logo-dot { color: var(--primary); }

/* Nav links */
.navbar-nav .nav-link {
    font-weight: 600;
    color: var(--texto) !important;
    padding: .6rem .9rem !important;
    border-radius: var(--radius-sm);
    transition: var(--trans);
    position: relative;
}
.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%; right: 50%;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: left .25s, right .25s;
}
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after { left: .9rem; right: .9rem; }
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active { color: var(--primary) !important; }

/* Dropdown categorías */
.dropdown-menu-categories {
    min-width: 220px;
    border-radius: var(--radius);
    padding: .5rem;
}
.dropdown-menu-categories .dropdown-item {
    border-radius: var(--radius-sm);
    padding: .5rem .9rem;
    font-weight: 600;
    transition: var(--trans);
}
.dropdown-menu-categories .dropdown-item:hover {
    background-color: rgba(230,126,34,.08);
    color: var(--primary);
}
.cat-icon-sm { width: 20px; text-align: center; font-size: .95rem; }

/* Search navbar */
.search-form-nav { position: relative; min-width: 240px; }
.search-nav-input {
    border-radius: 50px 0 0 50px !important;
    border-color: var(--borde);
    background: var(--fondo);
    font-size: .875rem;
}
.search-nav-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(230,126,34,.12);
}
.search-form-nav .btn { border-radius: 0 50px 50px 0 !important; }

.nav-search-results {
    position: absolute;
    top: calc(100% + 6px); left: 0; right: 0;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--sombra);
    border: 1px solid var(--borde);
    z-index: 2000;
    display: none;
    max-height: 340px;
    overflow-y: auto;
}
.nav-search-results.show { display: block; }
.nav-search-result-item {
    display: flex; align-items: center; gap: .75rem;
    padding: .6rem .9rem;
    text-decoration: none; color: var(--texto);
    transition: background .2s;
    border-bottom: 1px solid var(--borde);
}
.nav-search-result-item:last-child { border-bottom: none; }
.nav-search-result-item:hover { background: rgba(230,126,34,.06); color: var(--primary); }
.nav-search-result-item img {
    width: 44px; height: 44px; object-fit: cover; border-radius: var(--radius-sm);
}
.nav-search-result-item .result-title { font-weight: 700; font-size: .875rem; }
.nav-search-result-item .result-cat  { font-size: .75rem; color: var(--texto-light); }

/* ===================================================
   HERO SECTION
   =================================================== */
.hero-section {
    position: relative;
    min-height: 92vh;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    background: var(--secondary);
}
.hero-bg {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
    opacity: .45;
    transform: scale(1.05);
    transition: transform 8s ease;
}
.hero-section:hover .hero-bg { transform: scale(1); }
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(
        160deg,
        rgba(44,62,80,.85) 0%,
        rgba(230,126,34,.35) 100%
    );
}
.hero-content {
    position: relative; z-index: 2;
    text-align: center;
    padding: 2rem 1rem;
}
.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 6vw, 4.2rem);
    color: #fff;
    font-weight: 700;
    line-height: 1.15;
    text-shadow: 0 2px 20px rgba(0,0,0,.35);
    margin-bottom: 1rem;
}
.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: rgba(255,255,255,.88);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto; margin-right: auto;
}
.hero-search-box {
    max-width: 620px;
    margin: 0 auto 2.5rem;
}
.hero-search-box .input-group {
    border-radius: 60px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,.25);
}
.hero-search-box input {
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1.05rem;
    background: #fff;
}
.hero-search-box input:focus { box-shadow: none; }
.hero-search-box .btn {
    padding: .9rem 2rem;
    border-radius: 0 60px 60px 0 !important;
    font-weight: 700;
    font-size: 1rem;
}

/* Stats hero */
.hero-stats {
    display: flex; justify-content: center;
    gap: 2.5rem; flex-wrap: wrap;
}
.hero-stat {
    text-align: center; color: #fff;
}
.hero-stat .stat-num {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1;
    color: var(--primary-light);
}
.hero-stat .stat-label {
    font-size: .85rem;
    color: rgba(255,255,255,.75);
    text-transform: uppercase;
    letter-spacing: .05em;
}

/* ===================================================
   SECCIÓN: ENCABEZADOS
   =================================================== */
.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    color: var(--secondary);
    margin-bottom: .5rem;
}
.section-subtitle {
    color: var(--texto-light);
    font-size: 1rem;
    margin-bottom: 2.5rem;
}
.section-divider {
    width: 60px; height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 4px;
    margin: .75rem auto 1.5rem;
}
.section-divider.left { margin-left: 0; }

/* ===================================================
   TARJETA DE CATEGORÍA
   =================================================== */
.category-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--sombra);
    transition: var(--trans);
    cursor: pointer;
    text-decoration: none;
    display: block;
    background: #fff;
    aspect-ratio: 4/3;
}
.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 45px rgba(0,0,0,.15);
    text-decoration: none;
}
.category-card-bg {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    opacity: .12;
    font-size: 5rem;
    color: inherit;
}
.category-card-body {
    position: relative; z-index: 2;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    height: 100%; padding: 1.5rem;
    text-align: center;
}
.category-icon-wrap {
    width: 72px; height: 72px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 1rem;
    box-shadow: 0 6px 20px rgba(0,0,0,.2);
}
.category-card-name {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: .3rem;
}
.category-card-count {
    font-size: .82rem;
    color: var(--texto-light);
    font-weight: 600;
}

/* ===================================================
   TARJETA DE RECETA
   =================================================== */
.recipe-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--sombra);
    transition: var(--trans);
    height: 100%;
    display: flex; flex-direction: column;
    border: 1px solid var(--borde);
}
.recipe-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--sombra-hover);
    border-color: rgba(230,126,34,.2);
}
.recipe-card-img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
    flex-shrink: 0;
}
.recipe-card-img-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.recipe-card:hover .recipe-card-img-wrap img {
    transform: scale(1.06);
}
/* Overlay gradient al hacer hover */
.recipe-card-img-wrap::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(
        180deg,
        transparent 40%,
        rgba(44,62,80,.55) 100%
    );
    opacity: 0;
    transition: opacity .35s;
}
.recipe-card:hover .recipe-card-img-wrap::after { opacity: 1; }

/* Badges sobre la imagen */
.recipe-card-badges {
    position: absolute; top: .7rem; left: .7rem; right: .7rem;
    display: flex; justify-content: space-between; align-items: flex-start;
    z-index: 2;
}

/* Badge categoría */
.badge-categoria {
    background: rgba(255,255,255,.92);
    color: var(--secondary);
    font-size: .72rem;
    font-weight: 700;
    padding: .25rem .65rem;
    border-radius: 50px;
    backdrop-filter: blur(4px);
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* Badge dificultad */
.badge-dificultad {
    font-size: .72rem;
    font-weight: 700;
    padding: .25rem .65rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.badge-facil   { background: rgba(39,174,96,.9);  color: #fff; }
.badge-medio   { background: rgba(241,196,15,.9);  color: #fff; }
.badge-dificil { background: rgba(231,76,60,.9);   color: #fff; }

/* Cuerpo de la tarjeta */
.recipe-card-body {
    padding: 1.1rem 1.2rem 1rem;
    flex: 1; display: flex; flex-direction: column;
}
.recipe-card-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: .4rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.recipe-card-title a { color: inherit; }
.recipe-card-title a:hover { color: var(--primary); }

.recipe-card-desc {
    font-size: .86rem;
    color: var(--texto-light);
    margin-bottom: .75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

/* Rating en tarjeta */
.recipe-card-rating {
    display: flex; align-items: center; gap: .4rem;
    margin-bottom: .7rem;
    font-size: .82rem;
    color: var(--texto-light);
}
.rating-stars i { font-size: .8rem; }

/* Info tiempo/porciones */
.recipe-card-meta {
    display: flex; gap: 1rem;
    flex-wrap: wrap;
    padding-top: .7rem;
    border-top: 1px solid var(--borde);
    font-size: .8rem;
    color: var(--texto-light);
}
.recipe-card-meta span {
    display: flex; align-items: center; gap: .3rem;
}
.recipe-card-meta i { color: var(--primary); }

/* ===================================================
   FILTER BAR / PILLS
   =================================================== */
.filter-bar {
    display: flex; flex-wrap: wrap; gap: .5rem;
    margin-bottom: 1.5rem;
}
.filter-pill {
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .35rem .9rem;
    border-radius: 50px;
    border: 2px solid var(--borde);
    background: #fff;
    font-size: .82rem;
    font-weight: 700;
    color: var(--texto-light);
    cursor: pointer;
    transition: var(--trans);
    white-space: nowrap;
}
.filter-pill:hover,
.filter-pill.active {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(230,126,34,.06);
}
.filter-pill input[type="checkbox"],
.filter-pill input[type="radio"] { display: none; }

/* ===================================================
   SIDEBAR FILTROS
   =================================================== */
.filter-sidebar {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--sombra);
    border: 1px solid var(--borde);
    position: sticky; top: 80px;
}
.filter-sidebar .filter-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--secondary);
    border-bottom: 2px solid var(--primary);
    padding-bottom: .5rem;
    margin-bottom: 1rem;
}
.filter-check-label {
    display: flex; align-items: center; gap: .5rem;
    cursor: pointer;
    font-size: .88rem;
    padding: .3rem 0;
    color: var(--texto);
    transition: color .2s;
}
.filter-check-label:hover { color: var(--primary); }

/* Estrellas de filtro */
.star-filter { cursor: pointer; font-size: 1.1rem; color: var(--borde); transition: color .15s; }
.star-filter:hover, .star-filter.active { color: var(--warning); }

/* ===================================================
   PAGINACIÓN
   =================================================== */
.pagination .page-link {
    border-radius: var(--radius-sm) !important;
    margin: 0 2px;
    border-color: var(--borde);
    color: var(--texto);
    font-weight: 600;
    transition: var(--trans);
}
.pagination .page-link:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #fff;
}
.pagination .page-item.active .page-link {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* ===================================================
   PÁGINA DE RECETA
   =================================================== */
.recipe-header {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--sombra);
    margin-bottom: 2rem;
}
.recipe-hero-img {
    width: 100%; max-height: 480px;
    object-fit: cover;
    display: block;
}
.recipe-header-body { padding: 2rem; }

.recipe-main-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: var(--secondary);
    margin-bottom: 1rem;
    line-height: 1.2;
}
.recipe-meta-strip {
    display: flex; flex-wrap: wrap; gap: .75rem;
    margin-bottom: 1.25rem;
}
.recipe-meta-item {
    display: flex; align-items: center; gap: .4rem;
    font-size: .9rem;
    color: var(--texto-light);
}
.recipe-meta-item i { color: var(--primary); font-size: 1rem; }
.recipe-meta-item strong { color: var(--texto); font-weight: 700; }

.recipe-rating-bar {
    display: flex; align-items: center; gap: .75rem;
    margin-bottom: 1.5rem;
}
.rating-stars-lg i { font-size: 1.3rem; }
.rating-count { font-size: .9rem; color: var(--texto-light); }

.recipe-action-btns { display: flex; flex-wrap: wrap; gap: .6rem; }

/* Breadcrumb */
.breadcrumb-item a { color: var(--primary); }
.breadcrumb-item.active { color: var(--texto-light); }

/* ---- TABS ---- */
.recipe-tabs .nav-tabs {
    border-bottom: 2px solid var(--borde);
    gap: .25rem;
}
.recipe-tabs .nav-link {
    border: none;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    color: var(--texto-light);
    font-weight: 700;
    padding: .7rem 1.2rem;
    transition: var(--trans);
}
.recipe-tabs .nav-link:hover { color: var(--primary); }
.recipe-tabs .nav-link.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: transparent;
}
.tab-content-box {
    background: var(--card-bg);
    border-radius: 0 var(--radius) var(--radius) var(--radius);
    padding: 2rem;
    box-shadow: var(--sombra);
    border: 1px solid var(--borde);
    border-top: none;
}

/* ---- AJUSTADOR DE PORCIONES ---- */
.portion-adjuster {
    display: inline-flex; align-items: center;
    border: 2px solid var(--primary);
    border-radius: 50px;
    overflow: hidden;
    margin-bottom: 1.25rem;
}
.portion-adjuster button {
    width: 36px; height: 36px;
    border: none; background: transparent;
    color: var(--primary);
    font-size: 1.2rem; font-weight: 700;
    cursor: pointer; transition: background .2s;
    display: flex; align-items: center; justify-content: center;
}
.portion-adjuster button:hover { background: rgba(230,126,34,.12); }
.portion-adjuster .portion-count {
    min-width: 48px; text-align: center;
    font-weight: 700; font-size: 1rem;
    color: var(--secondary);
}

/* ---- LISTA DE INGREDIENTES ---- */
.ingredient-list { list-style: none; padding: 0; margin: 0; }
.ingredient-item {
    display: flex; align-items: flex-start; gap: .75rem;
    padding: .6rem 0;
    border-bottom: 1px dashed var(--borde);
    transition: background .2s;
}
.ingredient-item:last-child { border-bottom: none; }
.ingredient-check {
    width: 22px; height: 22px; flex-shrink: 0;
    border: 2px solid var(--primary);
    border-radius: 6px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: var(--trans);
    margin-top: 2px;
}
.ingredient-check.checked {
    background: var(--primary);
    border-color: var(--primary);
}
.ingredient-check.checked::after {
    content: '✓';
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
}
.ingredient-name { font-size: .95rem; color: var(--texto); flex: 1; }
.ingredient-name.tachado { text-decoration: line-through; color: var(--texto-light); }
.ingredient-cantidad {
    font-weight: 700; color: var(--primary);
    min-width: 90px; text-align: right;
    font-size: .9rem;
}
.ingredient-nota {
    font-style: italic; font-size: .8rem; color: var(--texto-light); display: block;
}
/* Alternativo */
.ingredient-alt-row {
    padding-left: 2.2rem;
    background: rgba(39,174,96,.04);
    border-left: 3px solid var(--accent);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin-left: .75rem;
}
.badge-alt {
    background: var(--accent);
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    padding: .15rem .5rem;
    border-radius: 50px;
    margin-right: .4rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* ---- PASOS ---- */
.step-card {
    display: flex; gap: 1.2rem;
    padding: 1.25rem;
    background: var(--card-bg);
    border-radius: var(--radius);
    border: 1px solid var(--borde);
    margin-bottom: 1rem;
    transition: var(--trans);
}
.step-card.done { background: rgba(39,174,96,.05); border-color: rgba(39,174,96,.3); }
.step-card.done .step-text { text-decoration: line-through; color: var(--texto-light); }

.step-number-wrap {
    flex-shrink: 0; width: 44px; height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700; font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(39,174,96,.3);
    cursor: pointer;
    transition: var(--trans);
}
.step-card.done .step-number-wrap {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    box-shadow: none;
}
.step-content { flex: 1; }
.step-text { font-size: .97rem; color: var(--texto); margin-bottom: .5rem; }
.step-time-badge {
    display: inline-flex; align-items: center; gap: .3rem;
    font-size: .78rem; color: var(--texto-light);
    background: var(--fondo);
    padding: .2rem .6rem;
    border-radius: 50px;
    border: 1px solid var(--borde);
}
.step-img { margin-top: .75rem; border-radius: var(--radius-sm); max-height: 200px; object-fit: cover; }

/* ---- VIDEO ---- */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0; overflow: hidden;
    border-radius: var(--radius);
    background: #000;
}
.video-container iframe,
.video-container video {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    border: none;
    border-radius: var(--radius);
}

/* ---- CALIFICACIÓN INTERACTIVA ---- */
.rating-interactive {
    display: flex; flex-direction: row-reverse;
    gap: .2rem; width: fit-content;
}
.rating-interactive input { display: none; }
.rating-interactive label {
    font-size: 2rem; color: #ddd;
    cursor: pointer; transition: color .15s;
}
.rating-interactive label:hover,
.rating-interactive label:hover ~ label,
.rating-interactive input:checked ~ label { color: var(--warning); }

/* ---- COMENTARIOS ---- */
.comment-card {
    display: flex; gap: 1rem;
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 1.25rem;
    border: 1px solid var(--borde);
    margin-bottom: 1rem;
    transition: var(--trans);
}
.comment-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); }

.comment-avatar {
    width: 48px; height: 48px; flex-shrink: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700; font-size: 1.2rem;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 3px 10px rgba(230,126,34,.3);
}
.comment-body { flex: 1; }
.comment-meta {
    display: flex; align-items: center; flex-wrap: wrap;
    gap: .5rem; margin-bottom: .4rem;
}
.comment-name { font-weight: 700; color: var(--secondary); }
.comment-date { font-size: .8rem; color: var(--texto-light); }
.comment-text { font-size: .93rem; color: var(--texto); }

/* ===================================================
   RECETARIO
   =================================================== */
.recetario-header {
    background: linear-gradient(135deg, var(--secondary), #34495e);
    color: #fff;
    border-radius: var(--radius);
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--sombra);
}
.recetario-code {
    display: inline-block;
    background: rgba(255,255,255,.1);
    padding: .25rem .75rem;
    border-radius: 50px;
    font-family: monospace;
    font-size: .88rem;
    color: rgba(255,255,255,.8);
    letter-spacing: .05em;
    margin-bottom: 1rem;
}

/* ===================================================
   SECCIÓN: CÓMO FUNCIONA
   =================================================== */
.how-step {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--sombra);
    border: 1px solid var(--borde);
    transition: var(--trans);
    height: 100%;
}
.how-step:hover { transform: translateY(-4px); box-shadow: var(--sombra-hover); }
.how-icon {
    width: 80px; height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    font-size: 1.8rem;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.25rem;
    box-shadow: 0 8px 24px rgba(230,126,34,.3);
}
.how-step h5 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: .5rem;
}

/* ===================================================
   FOOTER
   =================================================== */
.site-footer {
    background: linear-gradient(180deg, #1a252f 0%, #0f1923 100%);
    color: rgba(255,255,255,.7);
}
.footer-main { }
.footer-heading {
    color: #fff;
    font-weight: 700;
    font-size: .95rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 1.25rem;
    padding-bottom: .5rem;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}
.footer-links li { margin-bottom: .5rem; }
.footer-links a {
    color: rgba(255,255,255,.6);
    font-size: .9rem;
    transition: color .2s;
}
.footer-links a:hover { color: var(--primary-light); }
.footer-desc { font-size: .9rem; line-height: 1.7; }

.social-btn {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.75);
    display: flex; align-items: center; justify-content: center;
    font-size: .95rem;
    transition: var(--trans);
    text-decoration: none;
    border: 1px solid rgba(255,255,255,.12);
}
.social-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(230,126,34,.4);
}
.footer-bottom { border-top: 1px solid rgba(255,255,255,.07); }
.text-primary-light { color: var(--primary-light); }

/* ===================================================
   CTA SECTION
   =================================================== */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: var(--radius);
    padding: 4rem 2rem;
    text-align: center;
    color: #fff;
    box-shadow: 0 12px 40px rgba(230,126,34,.35);
}
.cta-section h2 { font-family: var(--font-heading); color: #fff; }
.cta-section .btn {
    background: #fff; color: var(--primary);
    font-weight: 700; border-radius: 50px;
    padding: .75rem 2rem;
    border: none;
    transition: var(--trans);
}
.cta-section .btn:hover {
    background: var(--secondary);
    color: #fff;
    transform: translateY(-2px);
}

/* ===================================================
   BÚSQUEDA — NO RESULTS
   =================================================== */
.no-results-box {
    text-align: center; padding: 4rem 2rem;
    background: var(--card-bg);
    border-radius: var(--radius);
    border: 1px dashed var(--borde);
}
.no-results-icon { font-size: 4rem; color: var(--borde); margin-bottom: 1rem; }
.no-results-box h4 { font-family: var(--font-heading); color: var(--secondary); }

/* ===================================================
   MODAL RECETARIO
   =================================================== */
.modal-content { border-radius: var(--radius); border: none; }
.modal-header { border-bottom: 2px solid var(--borde); }
.recetario-item-check {
    display: flex; align-items: center;
    background: var(--fondo);
    border-radius: var(--radius-sm);
    padding: .75rem 1rem;
    margin-bottom: .5rem;
    cursor: pointer;
    transition: var(--trans);
    border: 2px solid transparent;
}
.recetario-item-check:hover { border-color: var(--primary); background: rgba(230,126,34,.05); }
.recetario-item-check.selected { border-color: var(--accent); background: rgba(39,174,96,.06); }

/* ===================================================
   UTILIDADES
   =================================================== */
.text-primary  { color: var(--primary) !important; }
.bg-primary    { background-color: var(--primary) !important; }
.text-accent   { color: var(--accent) !important; }
.fw-black      { font-weight: 900; }
.rounded-pill  { border-radius: 50px !important; }

.divider-light { border-color: var(--borde); }

.section-padding { padding: 5rem 0; }
.section-padding-sm { padding: 3rem 0; }

/* Lazy loading skeleton */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-shine 1.4s infinite;
    border-radius: var(--radius-sm);
}
@keyframes skeleton-shine {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Scroll to top */
#scrollTop {
    position: fixed; bottom: 1.5rem; right: 1.5rem;
    width: 46px; height: 46px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    border: none;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(230,126,34,.4);
    opacity: 0; pointer-events: none;
    transition: var(--trans);
    z-index: 999;
}
#scrollTop.show { opacity: 1; pointer-events: all; }
#scrollTop:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* ===================================================
   MEDIA QUERIES
   =================================================== */

/* md — tablet */
@media (max-width: 991px) {
    .hero-section { min-height: 75vh; }
    .section-padding { padding: 3.5rem 0; }
    .filter-sidebar { position: static; }
    .tab-content-box { padding: 1.25rem; }
    .recipe-header-body { padding: 1.5rem; }
    .hero-stats { gap: 1.5rem; }
    .hero-stat .stat-num { font-size: 1.8rem; }
}

/* sm — mobile */
@media (max-width: 767px) {
    .hero-section { min-height: 65vh; }
    .hero-search-box .btn { padding: .8rem 1.2rem; }
    .recipe-meta-strip { gap: .5rem; }
    .recipe-card-badges { flex-direction: column; gap: .35rem; }
    .recipe-action-btns .btn { font-size: .85rem; padding: .4rem .9rem; }
    .section-padding { padding: 2.5rem 0; }
    .how-icon { width: 64px; height: 64px; font-size: 1.4rem; }
    .cta-section { padding: 2.5rem 1rem; }
}

/* xs — small mobile */
@media (max-width: 480px) {
    .hero-title { font-size: 1.85rem; }
    .recipe-main-title { font-size: 1.6rem; }
    .portion-adjuster { width: 100%; justify-content: center; }
    .hero-stats { gap: 1rem; }
    .hero-stat .stat-num { font-size: 1.5rem; }
}
