/* ========================================
   RECIPES TEMPLATE - CUSTOM STYLES
   Bootstrap 5 + Custom CSS
   ======================================== */

:root {
    --primary-color: #212529;
    --secondary-color: #212529;
    --accent-color: #212529;
    --text-dark: #212529;
    --text-light: #6c757d;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #dee2e6;
    --shadow: 0 2px 10px rgba(33,37,41,0.1);
    --shadow-hover: 0 4px 20px rgba(33,37,41,0.15);
}

/* ========================================
   HEADER STYLES
   ======================================== */

/* Estilos personalizados para el logo */
.navbar-brand img {
    max-height: 39px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
}

/* Asegurar que el navbar no se vea afectado por el logo */
.navbar-brand {
    display: flex;
    align-items: center;
    height: auto;
    min-height: 40px;
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .navbar-brand img {
        max-height: 37px !important;
    }
}

/* ========================================
   GLOBAL STYLES
   ======================================== */

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

/* ========================================
   LAYOUT STYLES
   ======================================== */

/* Aumentar ancho máximo del container para aprovechar mejor el espacio */

/* ========================================
   HEADER STYLES
   ======================================== */


.navbar-brand {
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--primary-color) !important;
    padding: 0.75rem 0;
}

/* Logo styles are handled in header.php */

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    transition: color 0.3s ease;
    font-size: 1.1rem;
    padding: 1rem 1.25rem;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

/* Responsive menu font sizes */
@media (max-width: 768px) {
    .navbar {
        min-height: 85px;
        padding: 1rem 0;
    }
    
    .navbar-nav .nav-link {
        font-size: 1.1rem;
        padding: 0.75rem 1rem;
    }
    
    .navbar-brand {
        font-size: 1.5rem;
        padding: 0.5rem 0;
    }
}

/* ========================================
   HERO BANNER SECTION
   ======================================== */

.hero-banner-section {
    position: relative;
    height: 50vh;
    min-height: 350px;
    overflow: hidden;
}

.hero-banner-image {
    position: relative;
    height: 50vh;
    min-height: 350px;
    overflow: hidden;
}

/* ========================================
   HERO BANNER HOME - HEIGHT INCREASE
   ======================================== */

/* Aumentar altura específicamente para la página de inicio */
body.home .hero-banner-section {
    height: 60vh;
    min-height: 450px;
}

body.home .hero-banner-image {
    height: 60vh;
    min-height: 450px;
}

/* Ajustes responsive para home banner */
@media (max-width: 768px) {
    body.home .hero-banner-section {
        height: 50vh;
        min-height: 350px;
    }
    
    body.home .hero-banner-image {
        height: 50vh;
        min-height: 350px;
    }
}

@media (max-width: 576px) {
    body.home .hero-banner-section {
        height: 45vh;
        min-height: 300px;
    }
    
    body.home .hero-banner-image {
        height: 45vh;
        min-height: 300px;
    }
}

/* Banner más pequeño para páginas específicas (Nosotros y Contactanos) */
.hero-banner-section.small-banner {
    height: 30vh;
    min-height: 200px;
}

.hero-banner-image.small-banner {
    height: 30vh;
    min-height: 200px;
}

.hero-banner-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.hero-banner-image:hover img {
    transform: scale(1.05);
}

.hero-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(33, 37, 41, 0.8) 0%, rgba(33, 37, 41, 0.6) 100%);
    display: flex;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   CAROUSEL CONTROLS
   ======================================== */

.hero-banner-section .carousel-indicators {
    bottom: 30px;
    z-index: 3;
}

.hero-banner-section .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid transparent;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.hero-banner-section .carousel-indicators button.active {
    background-color: white;
    border-color: var(--primary-color);
    transform: scale(1.2);
}

.hero-banner-section .carousel-control-prev,
.hero-banner-section .carousel-control-next {
    width: 60px;
    height: 60px;
    background-color: rgba(33, 37, 41, 0.7);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    transition: all 0.3s ease;
}

.hero-banner-section .carousel-control-prev {
    left: 30px;
}

.hero-banner-section .carousel-control-next {
    right: 30px;
}

.hero-banner-section .carousel-control-prev:hover,
.hero-banner-section .carousel-control-next:hover {
    background-color: white;
    transform: translateY(-50%) scale(1.1);
}

.hero-banner-section .carousel-control-prev-icon,
.hero-banner-section .carousel-control-next-icon {
    width: 20px;
    height: 20px;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.btn-hero {
    background: white;
    color: var(--primary-color);
    border: 2px solid white;
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(33, 37, 41, 0.3);
    text-decoration: none;
    display: inline-block;
    animation: fadeInUp 1s ease-out 0.6s both;
    font-size: 1.1rem;
}

.btn-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(33, 37, 41, 0.4);
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* ========================================
   RECIPE CARDS
   ======================================== */

.recipe-card {
    background: var(--bg-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    height: 100%;
}

.recipe-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.recipe-image {
    position: relative;
    overflow: hidden;
    height: 380px;
}

.recipe-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.recipe-card:hover .recipe-image img {
    transform: scale(1.05);
}

.recipe-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.recipe-content {
    padding: 0.75rem;
}

.recipe-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.recipe-description {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.recipe-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.recipe-time {
    display: flex;
    align-items: center;
    gap: 0.15rem;
}

.recipe-time i,
.recipe-meta i {
    color: var(--primary-color);
}

.recipe-difficulty {
    display: flex;
    align-items: center;
    gap: 0.15rem;
}

.recipe-difficulty i {
    color: var(--primary-color);
}

.recipe-footer {
    border-top: 1px solid #e9ecef;
    padding-top: 0.75rem;
    margin-top: 0.75rem;
}

.recipe-footer small {
    font-size: 0.75rem;
    color: var(--text-light);
}

.recipe-rating {
    display: flex;
    align-items: center;
    gap: 0.15rem;
}

.recipe-rating .text-warning {
    color: #ffc107 !important;
}

.recipe-rating i.fa-star {
    color: #ffc107 !important;
}

.recipe-rating i.fas.fa-star {
    color: #ffc107 !important;
}

/* Estrellas en todas las tarjetas de recetas */
.recipe-card .fa-star,
.recipe-card .fas.fa-star,
.recipe-card .far.fa-star {
    color: #ffc107 !important;
}

/* Estrellas en sección de recetas relacionadas */
.recipe-article .fa-star,
.recipe-article .fas.fa-star,
.recipe-article .far.fa-star {
    color: #ffc107 !important;
}

/* ========================================
   CATEGORY GRID - RESPONSIVE
   ======================================== */

.category-card {
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    padding: 1.5rem 1rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.category-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.category-icon {
    font-size: 3rem;
    color: #ed7c04;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.category-card:hover .category-icon {
    transform: scale(1.1);
}

.category-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.category-count {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 0;
}

/* ========================================
   NOTES STYLES - Similar to Recipes
   ======================================== */

.note-card {
    background: var(--bg-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.note-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.note-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.note-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.note-card:hover .note-image img {
    transform: scale(1.05);
}

.note-category {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(33, 37, 41, 0.9);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.note-content {
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.note-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    line-height: 1.4;
    flex-grow: 1;
}

.note-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.note-title a:hover {
    color: var(--primary-color);
}

.note-excerpt {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.note-meta {
    margin-top: auto;
    font-size: 0.85rem;
    color: var(--text-light);
}

.note-meta i {
    margin-right: 0.25rem;
}

/* Note Header Styles */
.note-header-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid var(--border-color);
}

.note-content-section {
    background: var(--bg-white);
}

.note-title1 {
    font-size: 2.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    line-height: 1.3;
    text-align: center;
}

.note-meta-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 1.5rem;
}

.note-meta-info .meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.note-meta-info i {
    color: var(--primary-color);
    width: 16px;
}

.note-image-container {
    margin: 1.5rem 0;
    text-align: center;
}

.note-main-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.note-image-caption {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
}

.note-html-content {
    font-size: 1rem;
    line-height: 1.6;
    color: #2c3e50;
}

.note-html-content h2,
.note-html-content h3,
.note-html-content h4,
.note-html-content h5,
.note-html-content h6 {
    color: #2c3e50;
    margin: 1.25rem 0 0.5rem;
    font-weight: 600;
}

.note-html-content h2 {
    font-size: 1.5rem;
    border-bottom: 2px solid #2c3e50;
    padding-bottom: 0.25rem;
}

.note-html-content h3 {
    font-size: 1.3rem;
}

.note-html-content h4 {
    font-size: 1.2rem;
}

.note-html-content h5 {
    font-size: 1.1rem;
}

.note-html-content h6 {
    font-size: 1rem;
}

.note-html-content p {
    margin-bottom: 0.75rem;
    text-align: justify;
    font-size: 1rem;
}

.note-html-content ul,
.note-html-content ol {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
}

.note-html-content li {
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.note-html-content img {
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    margin: 0.75rem 0;
    max-width: 100%;
    height: auto;
}

.note-html-content blockquote {
    border-left: 4px solid #2c3e50;
    padding-left: 1rem;
    margin: 0.75rem 0;
    font-style: italic;
    color: #555;
}

.note-html-content strong {
    font-weight: 600;
}

.note-html-content em {
    font-style: italic;
}

/* Estilos específicos para elementos de notas que no están en .note-html-content */
.note-content h2,
.note-content h3,
.note-content h4,
.note-content h5,
.note-content h6 {
    color: #2c3e50;
    margin: 1.25rem 0 0.5rem;
    font-weight: 600;
}

.note-content h2 {
    font-size: 1.5rem;
    border-bottom: 2px solid #2c3e50;
    padding-bottom: 0.25rem;
}

/* Note Sidebar Styles */
.note-sidebar {
    padding-left: 2rem;
    position: sticky;
    top: 100px;
}

.sidebar-card {
    background: var(--bg-white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    overflow: hidden;
}

.sidebar-card-header {
    background: var(--primary-color);
    color: white;
    padding: 1rem 1.5rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.sidebar-card-body {
    padding: 1.5rem;
}

.related-note-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.related-note-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.related-note-image {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
    flex-shrink: 0;
}

.related-note-content {
    flex-grow: 1;
}

.related-note-content h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.related-note-link {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-note-link:hover {
    color: var(--primary-color);
}

.related-note-meta {
    font-size: 0.8rem;
    color: var(--text-light);
}

.related-note-meta i {
    margin-right: 0.25rem;
}

/* Note Details Grid */
.note-details {
    background: var(--bg-light);
    border-radius: 10px;
    padding: 2rem;
    margin-top: 3rem;
}

.note-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-white);
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.detail-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    width: 30px;
    text-align: center;
}

.detail-content {
    flex-grow: 1;
}

.detail-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.detail-value {
    display: block;
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 600;
}

/* Categories List in Sidebar */
.categories-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.category-tag {
    display: inline-block;
    background: var(--bg-light);
    color: var(--text-dark);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.category-tag:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Responsive Design for Notes */
@media (max-width: 768px) {
    .note-title1 {
        font-size: 2rem;
    }
    
    .note-meta-info {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    .note-sidebar {
        padding-left: 0;
        margin-top: 2rem;
        position: static;
    }
    
    .note-details-grid {
        grid-template-columns: 1fr;
    }
    
    .related-note-item {
        flex-direction: column;
        text-align: center;
    }
    
    .related-note-image {
        width: 100%;
        height: 120px;
    }
}

/* ========================================
   SECTIONS
   ======================================== */

.section-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Título sin línea debajo */
.section-title-no-line {
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0rem;
    text-align: center;
    position: relative;
    line-height: 1.2;
}

.section-title-no-line::after {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    background-color: #dee2e6;
    margin: 1.5rem auto 1rem;
    border: none;
}

/* ========================================
   NEWSLETTER SECTION
   ======================================== */

.newsletter-section {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    padding: 3rem 0;
    color: white;
}

.newsletter-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.newsletter-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .newsletter-title {
        font-size: 1.8rem;
    }
    
    .newsletter-subtitle {
        font-size: 1rem;
    }
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    background: var(--primary-color);
    color: white;
    padding: 2rem 0 1rem;
}



/* Agregar espacio entre columnas del footer */
.footer .row > [class*="col-"] {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    margin-bottom: 1.5rem;
}

/* Responsive footer padding */
@media (max-width: 768px) {
    .footer {
        padding: 1.5rem 0 1rem;
    }
    
    .footer .container {
        padding-left: 0.3rem;
        padding-right: 0.3rem;
    }
    
    .footer .row > [class*="col-"] {
        padding-left: 0.3rem;
        padding-right: 0.3rem;
        margin-bottom: 2rem;
    }
}

.footer h5 {
    color: white;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    font-size: 1.3rem;
}

.footer a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer p {
    margin-bottom: 1rem;
}

.footer .contact-info p {
    margin-bottom: 0.8rem;
}

.footer .list-unstyled li {
    margin-bottom: 0.5rem;
}

/* Centrar todos los subtítulos del footer */
.footer h5 {
    justify-content: center;
    text-align: center;
}

/* Centrar solo la sección de información de contacto */
.footer .contact-info {
    text-align: center;
}

/* ========================================
   FOOTER RESPONSIVE IMPROVEMENTS
   ======================================== */

/* Mobile footer optimizations */
@media (max-width: 576px) {
    .footer {
        padding: 1.5rem 0 1rem;
        text-align: center;
    }
    
    .footer .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .footer .row > [class*="col-"] {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        margin-bottom: 2rem;
        text-align: center;
    }
    
    .footer h5 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
        justify-content: center;
    }
    
    .footer p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .footer a {
        font-size: 0.9rem;
        display: inline-block;
        margin-bottom: 0.5rem;
    }
    
    .social-links {
        justify-content: center;
        gap: 0.75rem;
        margin-top: 1rem;
    }
    
    .social-links a {
        width: 40px;
        height: 40px;
        line-height: 40px;
        font-size: 1.1rem;
    }
    
    .footer .list-unstyled {
        text-align: center;
    }
    
    .footer .list-unstyled li {
        margin-bottom: 0.75rem;
    }
}

/* Tablet footer adjustments */
@media (min-width: 577px) and (max-width: 768px) {
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .footer .row > [class*="col-"] {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        margin-bottom: 1.5rem;
    }
    
    .footer h5 {
        font-size: 1.2rem;
    }
    
    .social-links a {
        width: 42px;
        height: 42px;
        line-height: 42px;
    }
}

.footer a:hover {
    color: white;
}

.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: white;
    transform: translateY(-2px);
}

/* ========================================
   NEWSLETTER SECTION
   ======================================== */

.newsletter-section {
    background: var(--primary-color) !important;
}

.newsletter-section .btn-light:hover {
    background: var(--primary-color) !important;
    color: white !important;
}

.newsletter-section h2 {
    font-size: 2.2rem;
    font-weight: 700;
}

.newsletter-section p {
    font-size: 1.1rem;
}

/* ========================================
   FEATURED SECTION
   ======================================== */

.featured-content i {
    color: var(--primary-color) !important;
}

.featured-content i.fa-star,
.featured-content i.fas.fa-star {
    color: #ffc107 !important;
}

.featured-content .badge {
    background-color: var(--primary-color) !important;
}

/* ========================================
   BUTTON OVERRIDES
   ======================================== */

.btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.btn-primary:hover {
    background-color: white !important;
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
}

.btn-outline-primary {
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: white !important;
}

/* ========================================
   CATEGORY GRID OPTIMIZATION
   ======================================== */

/* ========================================
   CATEGORY RESPONSIVE BREAKPOINTS
   ======================================== */

/* Mobile First - Base styles for all devices */
.category-card {
    min-height: 140px;
}

/* Small mobile devices */
@media (max-width: 480px) {
    .category-card {
        padding: 1.25rem 0.75rem;
        min-height: 120px;
        margin-bottom: 1rem;
    }
    
    .category-icon {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }
    
    .category-title {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .category-count {
        font-size: 0.85rem;
    }
}

/* Mobile devices */
@media (min-width: 481px) and (max-width: 576px) {
    .category-card {
        padding: 1.5rem 1rem;
        min-height: 140px;
        margin-bottom: 1rem;
    }
    
    .category-icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .category-title {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .category-count {
        font-size: 0.9rem;
    }
}

/* Tablet devices */
@media (min-width: 577px) and (max-width: 768px) {
    .category-card {
        padding: 1.75rem 1.25rem;
        min-height: 160px;
        margin-bottom: 1.25rem;
    }
    
    .category-icon {
        font-size: 2.75rem;
        margin-bottom: 1.25rem;
    }
    
    .category-title {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }
    
    .category-count {
        font-size: 1rem;
    }
}

/* Desktop devices */
@media (min-width: 769px) and (max-width: 1199px) {
    .category-card {
        padding: 1.5rem 1rem;
        min-height: 150px;
        margin-bottom: 1.5rem;
    }
    
    .category-icon {
        font-size: 3rem;
        margin-bottom: 1rem;
    }
    
    .category-title {
        font-size: 1.3rem;
        margin-bottom: 0.5rem;
    }
    
    .category-count {
        font-size: 1rem;
    }
}

/* Large desktop devices */
@media (min-width: 1200px) {
    .category-card {
        padding: 1.75rem 1.25rem;
        min-height: 160px;
        margin-bottom: 1.5rem;
    }
    
    .category-icon {
        font-size: 3.25rem;
        margin-bottom: 1.25rem;
    }
    
    .category-title {
        font-size: 1.4rem;
        margin-bottom: 0.75rem;
    }
    
    .category-count {
        font-size: 1.1rem;
    }
}

/* Extra large desktop devices */
@media (min-width: 1400px) {
    .category-card {
        padding: 2rem 1.5rem;
        min-height: 180px;
        margin-bottom: 2rem;
    }
    
    .category-icon {
        font-size: 3.5rem;
        margin-bottom: 1.5rem;
    }
    
    .category-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .category-count {
        font-size: 1.2rem;
    }
}

/* ========================================
   CATEGORY ICONS
   ======================================== */

.category-icon i {
    font-size: 3rem;
    transition: all 0.3s ease;
}

.category-icon i:hover {
    transform: scale(1.1);
    color: #d46a03 !important; /* Color más oscuro en hover */
}

/* Color único para todos los iconos de categorías */
.category-icon i {
    color: #ed7c04 !important;
}

/* ========================================
   CATEGORY BADGES
   ======================================== */

.dropdown-item .badge {
    font-size: 0.7rem;
    padding: 0.25em 0.5em;
}

.footer .badge {
    font-size: 0.7rem;
    padding: 0.25em 0.5em;
}

/* Iconos en dropdown y footer */
.dropdown-item i,
.footer a i {
    font-size: 1.2rem;
    margin-right: 0.5rem;
}

/* Color único para iconos en dropdown y footer */
.dropdown-item i,
.footer a i {
    color: #ed7c04 !important;
    transition: color 0.3s ease;
}

.dropdown-item:hover i,
.footer a:hover i {
    color: #d46a03 !important; /* Color más oscuro en hover */
}

/* ========================================
   STAR RATINGS
   ======================================== */

.fa-star,
.fas.fa-star,
.far.fa-star,
.fa-star-half-alt,
.fas.fa-star-half-alt {
    color: #ffc107 !important;
}

.text-warning {
    color: #ffc107 !important;
}

/* ========================================
   STATS SECTION
   ======================================== */

.stats-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.stat-card {
    background: white;
    padding: 2rem 1rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

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

.stat-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 0;
}

/* ========================================
   FEATURES SECTION
   ======================================== */

.features-section {
    background: white;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    height: 100%;
    text-align: center;
}

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

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.feature-card h4 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* ========================================
   GALLERY SECTION
   ======================================== */

.gallery-section {
    background: #f8f9fa;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.gallery-item img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 2rem 1.5rem 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h5 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.gallery-overlay p {
    font-size: 0.9rem;
    margin-bottom: 0;
    opacity: 0.9;
}

/* ========================================
   ENHANCED ABOUT CONTENT
   ======================================== */

.about-content {
    line-height: 1.8;
}

.about-content h2, .about-content h3, .about-content h4 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    position: relative;
}

.about-content h2::after, .about-content h3::after, .about-content h4::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), #ed7c04);
    border-radius: 2px;
}

.about-content p {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    font-size: 1.1rem;
}

.about-content ul {
    margin-bottom: 1.5rem;
}

.about-content li {
    margin-bottom: 0.8rem;
    color: var(--text-dark);
    position: relative;
    padding-left: 1.5rem;
}

.about-content li::before {
    content: '🍴';
    position: absolute;
    left: 0;
    top: 0;
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Animation classes */
.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out;
}

.animate-fadeInLeft {
    animation: fadeInLeft 0.6s ease-out;
}

.animate-fadeInRight {
    animation: fadeInRight 0.6s ease-out;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

.animate-bounce {
    animation: bounce 2s infinite;
}

/* Hover effects */
.hover-lift {
    transition: transform 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
}

.hover-glow {
    transition: box-shadow 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 20px rgba(33, 37, 41, 0.3);
}

/* ========================================
   SCROLL TO TOP BUTTON
   ======================================== */

.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.scroll-to-top:hover {
    background-color: white;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.scroll-to-top i {
    font-size: 1.2rem;
}

/* ========================================
   SEARCH EXPANDED STYLES
   ======================================== */

/* Formulario de búsqueda expandido */
.search-expanded {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: white;
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-100%);
    transition: all 0.3s ease;
    border-bottom: 1px solid #e9ecef;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.search-expanded.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-expanded-content {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.search-expanded-input {
    flex: 1;
    height: 50px;
    border: none;
    outline: none;
    font-size: 18px;
    background: transparent;
    color: #333;
    padding: 0 20px;
}

.search-expanded-input::placeholder {
    color: #999;
    font-size: 16px;
}

.search-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-close-btn:hover {
    background-color: #f8f9fa;
    color: #333;
}

/* Responsive para el formulario expandido */
@media (max-width: 768px) {
    .search-expanded {
        height: 70px;
    }
    
    .search-expanded-content {
        padding: 0 15px;
    }
    
    .search-expanded-input {
        font-size: 16px;
        padding: 0 15px;
    }
    
    .search-expanded-input::placeholder {
        font-size: 14px;
    }
    
    .search-close-btn {
        font-size: 20px;
        width: 40px;
        height: 40px;
    }
}

/* ========================================
   PÁGINA NOSOTROS - ESTILOS MEJORADOS
   ======================================== */

/* Hero Banner Section para Nosotros - Solo para páginas específicas */
.hero-banner-section.about-banner {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.hero-banner-section.about-banner .hero-banner-image {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-banner-section.about-banner .hero-banner-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-banner-section.about-banner .hero-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.7), rgba(0,0,0,0.4));
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-banner-section.about-banner .hero-banner-content {
    text-align: center;
    color: white;
    z-index: 2;
    position: relative;
}

.hero-banner-section.about-banner .hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    color: #ffffff;
    letter-spacing: 2px;
}

.hero-banner-content .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.hero-banner-content .breadcrumb-item a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    transition: all 0.3s ease;
}

.hero-banner-content .breadcrumb-item a:hover {
    color: #f8f9fa;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.9);
}

.hero-banner-content .breadcrumb-item.active {
    color: #ffffff;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.hero-banner-content .breadcrumb-item + .breadcrumb-item::before {
    color: #ffffff;
    content: ">";
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

/* Responsive para hero banner */
@media (max-width: 768px) {
    .hero-banner-section {
        height: 300px;
    }
    
    .hero-title {
        font-size: 2.5rem;
        letter-spacing: 1px;
    }
}

@media (max-width: 576px) {
    .hero-banner-section {
        height: 250px;
    }
    
    .hero-title {
        font-size: 2rem;
        letter-spacing: 0.5px;
    }
}

/* Contenido de la página */
.about-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #2c3e50;
}

.about-content h2, 
.about-content h3, 
.about-content h4, 
.about-content h5, 
.about-content h6 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    margin-top: 2.5rem;
    font-weight: 700;
    position: relative;
}

.about-content h2::before,
.about-content h3::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 30px;
    background: linear-gradient(135deg, #2c3e50, #000000);
    border-radius: 2px;
}

.about-content h2 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
}

.about-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.about-content h4 {
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

.about-content p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.about-content ul, 
.about-content ol {
    padding-left: 2rem;
    margin-bottom: 1.5rem;
}

.about-content li {
    margin-bottom: 0.75rem;
    position: relative;
}

.about-content ul li::marker {
    color: #2c3e50;
    font-weight: bold;
}

/* Blockquotes mejorados */
.about-content blockquote {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-left: 5px solid #2c3e50;
    border-radius: 0 10px 10px 0;
    padding: 2rem;
    margin: 2.5rem 0;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.about-content blockquote::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: #2c3e50;
    font-family: serif;
    line-height: 1;
}

.about-content blockquote p {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 0;
    color: #495057;
}

.about-content blockquote footer {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #6c757d;
}

/* Imágenes en el contenido */
.about-content img {
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
    max-width: 100%;
    height: auto;
}

.about-content img:hover {
    transform: scale(1.02);
}

/* Stats Section mejorada */
.stats-section {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23ddd" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%23ddd" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="%23ddd" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="%23ddd" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="%23ddd" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.stat-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #2c3e50, #000000);
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.stat-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #2c3e50, #000000);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    transition: all 0.3s ease;
}

.stat-card:hover .stat-icon {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(44, 62, 80, 0.3);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #2c3e50, #000000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: #6c757d;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Features Section mejorada */
.features-section {
    background: white;
    position: relative;
}

.feature-card {
    background: white;
    border-radius: 15px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #2c3e50, #000000);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: #2c3e50;
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2c3e50;
    font-size: 1.8rem;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    background: linear-gradient(135deg, #2c3e50, #000000);
    color: white;
    transform: scale(1.1);
}

.feature-card h4 {
    color: #2c3e50;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Section titles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #2c3e50, #000000);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #6c757d;
    margin-bottom: 0;
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out;
}

.animate-fadeInLeft {
    animation: fadeInLeft 0.6s ease-out;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

.hover-lift {
    transition: transform 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
}

/* Responsive para página Nosotros */
@media (max-width: 768px) {
    .about-content {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .about-content h2 {
        font-size: 1.8rem;
    }
    
    .about-content h3 {
        font-size: 1.5rem;
    }
    
    .about-content h2::before,
    .about-content h3::before {
        left: -15px;
        width: 3px;
        height: 25px;
    }
    
    .about-content blockquote {
        padding: 1.5rem;
        margin: 2rem 0;
    }
    
    .about-content blockquote::before {
        font-size: 3rem;
        left: 15px;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .stat-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .feature-card {
        padding: 2rem 1.5rem;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .about-content h2 {
        font-size: 1.6rem;
    }
    
    .about-content h3 {
        font-size: 1.3rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .feature-card {
        padding: 1.5rem 1rem;
    }
}

/* ========================================
   RECIPE POSTS STYLES - MEJORADO
   ======================================== */

/* Recipe Header Section */
.recipe-header-section {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-bottom: 1px solid #dee2e6;
}

.recipe-header-section .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.recipe-header-section .breadcrumb-item a {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.recipe-header-section .breadcrumb-item a:hover {
    color: #2c3e50;
}

.recipe-header-section .breadcrumb-item.active {
    color: #2c3e50;
    font-weight: 600;
}

/* Recipe Content Section */
.recipe-content-section {
    background: white;
}

/* Recipe Header */
.recipe-header {
    text-align: center;
    margin-bottom: 3rem;
}

.recipe-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    line-height: 1.3;
    background: linear-gradient(135deg, #2c3e50, #000000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.recipe-title1 {
    font-size: 2.3rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    line-height: 1.3;
    background: linear-gradient(135deg, #2c3e50, #000000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.recipe-meta-info {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6c757d;
    font-size: 0.95rem;
}

.meta-item i {
    color: #2c3e50;
    font-size: 1.1rem;
}

.meta-item strong {
    color: #2c3e50;
    font-weight: 600;
}

/* Recipe Image */
.recipe-image-container {
    position: relative;
    margin-bottom: 2rem;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.recipe-main-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.recipe-image-container:hover .recipe-main-image {
    transform: scale(1.02);
}

.recipe-image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 2rem 1.5rem 1rem;
    font-size: 0.9rem;
    font-style: italic;
}

/* Recipe Intro */
.recipe-intro {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}

.recipe-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #495057;
    margin: 0;
    max-width: 800px;
    margin: 0 auto;
}

/* Recipe Content */

.recipe-html-content {
    font-size: 1rem;
    line-height: 1.6;
    color: #2c3e50;
}

.recipe-html-content h2,
.recipe-html-content h3,
.recipe-html-content h4,
.recipe-html-content h5,
.recipe-html-content h6 {
    color: #2c3e50;
    margin: 1.5rem 0 0.75rem;
    font-weight: 600;
}

.recipe-html-content h2 {
    font-size: 1.5rem;
    border-bottom: 2px solid #2c3e50;
    padding-bottom: 0.25rem;
}

.recipe-html-content h3 {
    font-size: 1.3rem;
}

.recipe-html-content h4 {
    font-size: 1.2rem;
}

.recipe-html-content h5 {
    font-size: 1.1rem;
}

.recipe-html-content h6 {
    font-size: 1rem;
}

.recipe-html-content p {
    margin-bottom: 1rem;
    text-align: justify;
    font-size: 1rem;
}

.recipe-html-content ul,
.recipe-html-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.recipe-html-content li {
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.recipe-html-content img {
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    margin: 1rem 0;
    max-width: 100%;
    height: auto;
}

.recipe-html-content blockquote {
    border-left: 4px solid #2c3e50;
    padding-left: 1rem;
    margin: 1rem 0;
    font-style: italic;
    color: #555;
}

.recipe-html-content strong {
    font-weight: 600;
}

.recipe-html-content em {
    font-style: italic;
}

/* Video Section */
.recipe-video-section {
    margin: 3rem 0;
    padding: 2rem 0;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}

.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Recipe Details */
.recipe-details {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 2rem;
    border-radius: 15px;
    margin: 3rem 0;
}

/* Recipe Additional Info */
.recipe-additional-info {
    background: linear-gradient(135deg, #fff, #f8f9fa);
    padding: 2rem;
    border-radius: 15px;
    margin: 3rem 0;
    border: 1px solid #e9ecef;
}

.additional-info-item {
    background: #fff;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.additional-info-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.additional-info-content {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.95rem;
}

.recipe-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.detail-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.detail-item i {
    font-size: 1.5rem;
    color: #2c3e50;
    width: 30px;
    text-align: center;
}

.detail-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.detail-label {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 500;
}

.detail-value {
    font-size: 1.1rem;
    color: #2c3e50;
    font-weight: 700;
}

/* Sidebar */
.recipe-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.sidebar-card-header {
    background: linear-gradient(135deg, #2c3e50, #000000);
    color: white;
    padding: 1.5rem;
    margin: 0;
}

.sidebar-card-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
}

.sidebar-card-body {
    padding: 1.5rem;
}

/* Related Recipes */
.related-recipe-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.related-recipe-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.related-recipe-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.related-recipe-content {
    flex: 1;
}

.related-recipe-link {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.related-recipe-link:hover {
    color: #000000;
}

.related-recipe-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: #6c757d;
}

.related-recipe-meta i {
    font-size: 0.75rem;
}

/* Categories */
.categories-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.category-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #f8f9fa;
    color: #2c3e50;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.category-tag:hover {
    background: #2c3e50;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(44, 62, 80, 0.3);
}

/* Section Titles */
.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(135deg, #2c3e50, #000000);
    border-radius: 2px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .recipe-title {
        font-size: 1.2rem;
    }
    
    .recipe-meta-info {
        flex-direction: column;
        gap: 1rem;
    }
    
    .recipe-main-image {
        height: 300px;
    }
    
    .recipe-details-grid {
        grid-template-columns: 1fr;
    }
    
    .related-recipe-item {
        flex-direction: column;
        text-align: center;
    }
    
    .related-recipe-image {
        width: 100%;
        height: 150px;
    }
}

@media (max-width: 576px) {
    .recipe-title {
        font-size: 1.2rem;
    }
    
    .recipe-main-image {
        height: 250px;
    }
    
    .recipe-details {
        padding: 1rem;
    }
    
    .recipe-additional-info {
        padding: 1rem;
    }
    
    .additional-info-item {
        padding: 1rem;
    }
    
    .sidebar-card-body {
        padding: 1rem;
    }
}

/* ========================================
   SEARCH RESULTS STYLES
   ======================================== */

/* Header de resultados de búsqueda */
.search-results-header {
    padding: 2rem 0;
}

.search-results-header h1 {
    background: linear-gradient(135deg, #2c3e50, #000000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Tarjetas de resultados en grid */
.search-result-card-grid {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.search-result-card-grid:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #2c3e50;
}

/* Imagen de resultado en grid */
.search-result-image-grid {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.search-result-image-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.search-result-card-grid:hover .search-result-image-grid img {
    transform: scale(1.05);
}

/* Badge de categoría */
.search-result-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-text {
    font-size: 0.7rem;
}

/* Overlay de imagen */
.search-result-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.search-result-card:hover .search-result-overlay {
    opacity: 1;
}

.search-result-overlay .btn {
    border-radius: 25px;
    padding: 12px 24px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.search-result-overlay .btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255,255,255,0.3);
}

/* Contenido de resultado en grid */
.search-result-content-grid {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.search-result-title-grid {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    color: #2c3e50;
}

.search-result-title-grid a {
    color: #2c3e50;
    transition: color 0.3s ease;
    text-decoration: none;
}

.search-result-title-grid a:hover {
    color: #2c3e50;
}

.search-result-description-grid {
    color: #6c757d;
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    flex-grow: 1;
}

/* Meta información en grid */
.search-result-meta-grid {
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search-meta-item-grid {
    display: flex;
    align-items: center;
    font-size: 0.8rem;
}

.search-meta-item-grid i {
    font-size: 0.85rem;
}

/* Meta información horizontal (mantener para compatibilidad) */
.search-result-meta-horizontal {
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search-meta-item-horizontal {
    display: flex;
    align-items: center;
    font-size: 0.8rem;
}

.search-meta-item-horizontal i {
    font-size: 0.85rem;
}

/* Meta información original (mantener para compatibilidad) */
.search-result-meta {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

.search-meta-item {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
}

.search-meta-item i {
    font-size: 0.9rem;
}

/* Estado sin resultados */
.search-no-results {
    padding: 4rem 2rem;
}

.search-no-results-icon {
    opacity: 0.6;
}

.search-no-results .btn {
    border-radius: 25px;
    padding: 12px 24px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive para resultados de búsqueda */
@media (max-width: 768px) {
    .search-results-header h1 {
        font-size: 2rem;
    }
    
    .search-result-image-grid {
        height: 180px;
    }
    
    .search-result-content-grid {
        padding: 0.75rem;
    }
    
    .search-result-title-grid {
        font-size: 0.95rem;
    }
    
    .search-result-description-grid {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .search-results-header {
        padding: 1rem 0;
    }
    
    .search-results-header h1 {
        font-size: 1.75rem;
    }
    
    .search-result-image-grid {
        height: 160px;
    }
    
    .search-no-results .d-flex {
        flex-direction: column;
        gap: 1rem !important;
    }
}

/* Scrollbar personalizado para el contenedor horizontal */
.search-results-container::-webkit-scrollbar {
    height: 8px;
}

.search-results-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.search-results-container::-webkit-scrollbar-thumb {
    background: #007bff;
    border-radius: 4px;
}

.search-results-container::-webkit-scrollbar-thumb:hover {
    background: #0056b3;
}

/* ========================================
   MOBILE TOUCH INTERACTIONS
   ======================================== */

/* Touch-friendly button sizes */
@media (max-width: 768px) {
    .btn {
        min-height: 44px;
        min-width: 44px;
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .btn-sm {
        min-height: 40px;
        min-width: 40px;
        padding: 0.5rem 1rem;
    }
    
    /* Touch-friendly links */
    a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
    
    /* Touch-friendly form elements */
    .form-control {
        min-height: 44px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .form-select {
        min-height: 44px;
        font-size: 16px;
    }
    
    /* Touch-friendly navigation */
    .navbar-nav .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
        padding: 0.75rem 1rem;
    }
    
    /* Touch-friendly cards */
    .recipe-card,
    .category-card,
    .sidebar-card {
        cursor: pointer;
        -webkit-tap-highlight-color: rgba(0,0,0,0.1);
        transition: all 0.2s ease;
    }
    
    .recipe-card:active,
    .category-card:active,
    .sidebar-card:active {
        transform: scale(0.98);
    }
    
    /* Touch-friendly carousel controls */
    .carousel-control-prev,
    .carousel-control-next {
        min-width: 50px;
        min-height: 50px;
    }
    
    /* Touch-friendly search */
    .search-expanded-input {
        min-height: 44px;
        font-size: 16px;
    }
    
    .search-close-btn {
        min-width: 44px;
        min-height: 44px;
    }
    
    /* Mobile navigation improvements */
    .navbar-toggler {
        border: none;
        padding: 0.5rem;
        font-size: 1.2rem;
    }
    
    .navbar-toggler:focus {
        box-shadow: none;
    }
    
    .navbar-collapse {
        background: white;
        border-radius: 0.5rem;
        margin-top: 0.5rem;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        padding: 1rem;
    }
    
    /* Mobile search improvements */
    .search-expanded {
        height: 60px;
        z-index: 1060;
    }
    
    .search-expanded-content {
        padding: 0 1rem;
    }
    
    .search-expanded-input {
        font-size: 16px;
        padding: 0 1rem;
    }
    
    .search-close-btn {
        font-size: 1.5rem;
        width: 44px;
        height: 44px;
    }
    
    /* Mobile breadcrumb improvements */
    .breadcrumb {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }
    
    .breadcrumb-item + .breadcrumb-item::before {
        content: "›";
        font-size: 1.2rem;
        vertical-align: middle;
    }
}

/* ========================================
   MOBILE IMAGE OPTIMIZATION
   ======================================== */

/* Optimize images for mobile loading */
@media (max-width: 768px) {
    /* Lazy loading styles */
    img[data-src] {
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    img[data-src].loaded {
        opacity: 1;
    }
    
    /* Image loading placeholder */
    .recipe-image,
    .recipe-main-image,
    .related-recipe-image {
        background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
        background-size: 200% 100%;
        animation: loading 1.5s infinite;
    }
    
    @keyframes loading {
        0% {
            background-position: 200% 0;
        }
        100% {
            background-position: -200% 0;
        }
    }
    
    /* Responsive images */
    img {
        max-width: 100%;
        height: auto;
        display: block;
    }
    
    /* Video optimization */
    .video-container {
        margin: 1rem 0;
        border-radius: 8px;
    }
    
    .video-container iframe {
        border-radius: 8px;
    }
}

/* ========================================
   RESPONSIVE DESIGN - MOBILE FIRST
   ======================================== */

/* Mobile First - Base styles for mobile devices */
@media (max-width: 576px) {
    /* Container adjustments for mobile */

    
    /* Typography adjustments */
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.2;
        margin-bottom: 0.75rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }
    
    /* Hero banner mobile */
    .hero-banner-section {
        height: 30vh;
        min-height: 200px;
    }
    
    .hero-banner-image {
        height: 30vh;
        min-height: 200px;
    }
    
    .hero-banner-section.small-banner {
        height: 20vh;
        min-height: 120px;
    }
    
    .hero-banner-image.small-banner {
        height: 20vh;
        min-height: 120px;
    }
    
    /* Navigation mobile */
    .navbar {
        min-height: 70px;
        padding: 0.75rem 0;
    }
    
    .navbar-brand {
        font-size: 1.3rem;
    }
    
    .navbar-nav .nav-link {
        font-size: 1rem;
        padding: 0.5rem 0.75rem;
    }
    
    /* Recipe cards mobile */
    .recipe-card {
        margin-bottom: 1rem;
    }
    
    .recipe-image {
        height: 200px;
    }
    
    .recipe-content {
        padding: 0.75rem;
    }
    
    .recipe-title {
        font-size: 0.95rem;
        line-height: 1.2;
    }
    
    .recipe-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
        font-size: 0.75rem;
    }
    
    /* Category cards mobile - Grid adjustments only */
    .row .col-12 .category-card {
        margin-bottom: 1.5rem;
    }
    
    /* Recipe posts mobile */
    .recipe-title {
        font-size: 1.1rem;
        line-height: 1.2;
    }
    
    .recipe-meta-info {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
    
    .meta-item {
        font-size: 0.85rem;
    }
    
    .recipe-main-image {
        height: 200px;
    }
    
    .recipe-details-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .detail-item {
        padding: 0.75rem;
    }
    
    .detail-item i {
        font-size: 1.2rem;
    }
    
    .detail-label {
        font-size: 0.75rem;
    }
    
    .detail-value {
        font-size: 0.95rem;
    }
    
    /* Sidebar mobile */
    .recipe-sidebar {
        position: static;
        margin-top: 2rem;
    }
    
    .sidebar-card {
        margin-bottom: 1.5rem;
    }
    
    .sidebar-card-header {
        padding: 1rem;
    }
    
    .sidebar-card-header h3 {
        font-size: 1rem;
    }
    
    .sidebar-card-body {
        padding: 1rem;
    }
    
    .related-recipe-item {
        flex-direction: column;
        text-align: center;
        margin-bottom: 1rem;
        padding-bottom: 1rem;
    }

    
    .related-recipe-content h4 {
        font-size: 0.9rem;
    }
    
    .related-recipe-meta {
        justify-content: center;
        font-size: 0.75rem;
    }
    
    /* Categories mobile */
    .categories-list {
        justify-content: center;
    }
    
    .category-tag {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
    
    /* Video mobile */
    .video-container {
        margin: 1rem 0;
    }
    
    /* Search results mobile */
    .search-result-image-grid {
        height: 140px;
    }
    
    .search-result-content-grid {
        padding: 0.75rem;
    }
    
    .search-result-title-grid {
        font-size: 0.9rem;
    }
    
    .search-result-description-grid {
        font-size: 0.8rem;
    }
    
    /* Footer mobile */
    .footer {
        padding: 1.5rem 0 1rem;
    }
    
    .footer h5 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .social-links {
        gap: 0.75rem;
    }
    
    .social-links a {
        width: 35px;
        height: 35px;
        line-height: 35px;
    }
    
    /* Mobile typography improvements */
    body {
        font-size: 16px;
        line-height: 1.6;
        -webkit-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
    }
    
    h1, h2, h3, h4, h5, h6 {
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    p {
        margin-bottom: 1rem;
        line-height: 1.6;
    }
    
    /* Mobile content readability */
    .recipe-html-content {
        font-size: 16px;
        line-height: 1.7;
    }
    
    .recipe-html-content h2 {
        font-size: 1.4rem;
        margin-top: 2rem;
        margin-bottom: 1rem;
    }
    
    .recipe-html-content h3 {
        font-size: 1.2rem;
        margin-top: 1.5rem;
        margin-bottom: 0.75rem;
    }
    
    .recipe-html-content p {
        margin-bottom: 1.25rem;
        text-align: left;
    }
    
    .recipe-html-content ul,
    .recipe-html-content ol {
        padding-left: 1.5rem;
        margin-bottom: 1.25rem;
    }
    
    .recipe-html-content li {
        margin-bottom: 0.5rem;
        line-height: 1.6;
    }
    
    /* Mobile spacing improvements */
    
    /* Mobile content readability for notes */
    .note-html-content {
        font-size: 16px;
        line-height: 1.7;
    }
    
    .note-html-content h2 {
        font-size: 1.4rem;
        margin-top: 1.5rem;
        margin-bottom: 0.75rem;
    }
    
    .note-html-content h3 {
        font-size: 1.2rem;
        margin-top: 1.25rem;
        margin-bottom: 0.5rem;
    }
    
    .note-html-content p {
        margin-bottom: 0.75rem;
        text-align: left;
    }
    
    .note-html-content ul,
    .note-html-content ol {
        padding-left: 1.5rem;
        margin-bottom: 0.75rem;
    }
    
    .note-html-content li {
        margin-bottom: 0.25rem;
        line-height: 1.6;
    }
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    .py-4 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
    
    .mb-5 {
        margin-bottom: 2rem !important;
    }
    
    .mb-4 {
        margin-bottom: 1.5rem !important;
    }
    
    .mt-5 {
        margin-top: 2rem !important;
    }
    
    .mt-4 {
        margin-top: 1.5rem !important;
    }
}

/* Tablet adjustments */
@media (min-width: 577px) and (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-banner-section {
        height: 35vh;
        min-height: 220px;
    }
    
    .hero-banner-image {
        height: 35vh;
        min-height: 220px;
    }
    
    .recipe-image {
        height: 250px;
    }
    
    .recipe-main-image {
        height: 300px;
    }
    
    .recipe-details-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .related-recipe-item {
        flex-direction: row;
        text-align: left;
    }
    
    .related-recipe-image {
        width: 80px;
        height: 80px;
        margin-bottom: 0;
    }
}

/* Desktop adjustments */
@media (min-width: 769px) {
    .hero-banner-section {
        height: 40vh;
        min-height: 250px;
    }
    
    .hero-banner-image {
        height: 40vh;
        min-height: 250px;
    }
    
    .hero-banner-section.small-banner {
        height: 25vh;
        min-height: 150px;
    }
    
    .hero-banner-image.small-banner {
        height: 25vh;
        min-height: 150px;
    }
    
    .hero-title {
        font-size: 2.6rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-banner-section .carousel-control-prev,
    .hero-banner-section .carousel-control-next {
        width: 50px;
        height: 50px;
    }
    
    .hero-banner-section .carousel-control-prev {
        left: 15px;
    }
    
    .hero-banner-section .carousel-control-next {
        right: 15px;
    }
    
    .section-title {
        font-size: 2.3rem;
    }

    
    .category-card {
        padding: 1.5rem 1rem;
    }
    
    .recipe-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .recipe-time,
    .recipe-difficulty,
    .recipe-rating {
        margin-bottom: 0.25rem;
    }
}

@media (max-width: 576px) {
    .hero-banner-section {
        height: 35vh;
        min-height: 200px;
    }
    
    .hero-banner-image {
        height: 35vh;
        min-height: 200px;
    }
    
    .hero-banner-section.small-banner {
        height: 20vh;
        min-height: 120px;
    }
    
    .hero-banner-image.small-banner {
        height: 20vh;
        min-height: 120px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .btn-hero {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .hero-banner-section .carousel-control-prev,
    .hero-banner-section .carousel-control-next {
        width: 40px;
        height: 40px;
    }
    
    .hero-banner-section .carousel-control-prev {
        left: 10px;
    }
    
    .hero-banner-section .carousel-control-next {
        right: 10px;
    }
}
