/* ============================================
   ESTILOS GENERALES - Feria Campesina 2025
   ============================================ */

:root {
    --color-primary: #2d6a4f;
    --color-primary-light: #40916c;
    --color-secondary: #d4a373;
    --color-accent: #f4a261;
    --color-dark: #1b4332;
    --color-light: #f8f9fa;
    --color-warm: #fefae0;
    --color-text: #2d3436;
    --shadow: 0 10px 30px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--color-text);
    background-color: var(--color-light);
    overflow-x: hidden;
}

/* ============================================
   NAVBAR PERSONALIZADA
   ============================================ */

.navbar-custom {
    background: linear-gradient(135deg, var(--color-primary), var(--color-dark));
    padding: 1rem 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1050;
}

.navbar-custom .navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: white !important;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-custom .navbar-brand img {
    height: 45px;
    width: auto;
}

.navbar-custom .nav-link {
    color: rgba(255,255,255,0.85) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: var(--transition);
    border-radius: 8px;
    position: relative;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
    color: white !important;
    background-color: rgba(255,255,255,0.15);
}

.navbar-custom .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--color-secondary);
    transition: var(--transition);
    border-radius: 3px;
}

.navbar-custom .nav-link:hover::after,
.navbar-custom .nav-link.active::after {
    width: 60%;
}

.navbar-toggler {
    border-color: rgba(255,255,255,0.3);
}

.navbar-toggler-icon {
    filter: invert(1);
}

/* ============================================
   BOTONES PERSONALIZADOS
   ============================================ */

.btn-primary-custom {
    background: linear-gradient(135deg, var(--color-primary), var(--color-dark));
    color: white;
    border: none;
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(45, 106, 79, 0.3);
}

.btn-primary-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(45, 106, 79, 0.4);
    color: white;
}

.btn-secondary-custom {
    background: var(--color-secondary);
    color: white;
    border: none;
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-secondary-custom:hover {
    background: #b8895e;
    transform: translateY(-3px);
    color: white;
}

.btn-outline-custom {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    padding: 10px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-outline-custom:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-3px);
}

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

.hero {
    min-height: 80vh;
    background: linear-gradient(135deg, rgba(27, 67, 50, 0.85), rgba(45, 106, 79, 0.7)), 
                url('../img/home/banner_2.webp') center/cover no-repeat;
    display: flex;
    align-items: center;
    padding: 6rem 0;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to top, var(--color-light), transparent);
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    color: white;
    text-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.9);
    max-width: 600px;
}

.hero .badge-event {
    background: var(--color-secondary);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1.5rem;
}

/* ============================================
   TARJETAS / CARDS
   ============================================ */

.card-custom {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    border: none;
}

.card-custom:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.card-custom .card-img-top {
    height: 250px;
    object-fit: cover;
}

.card-custom .card-body {
    padding: 1.75rem;
}

.card-custom .card-title {
    color: var(--color-primary);
    font-weight: 700;
}

/* ============================================
   SECCIONES GENERALES
   ============================================ */

.section-title {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--color-dark);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

.divider-custom {
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
    margin: 1rem auto 2rem auto;
    border-radius: 4px;
}

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

.bg-warm {
    background-color: var(--color-warm);
}

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

.footer-custom {
    background: linear-gradient(135deg, var(--color-dark), #0d1f18);
    color: rgba(255,255,255,0.8);
    padding: 3rem 0 1.5rem 0;
}

.footer-custom h5 {
    color: white;
    font-weight: 700;
}

.footer-custom a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-custom a:hover {
    color: var(--color-secondary);
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: white;
    transition: var(--transition);
    margin-right: 10px;
}

.social-links a:hover {
    background: var(--color-secondary);
    transform: translateY(-3px);
}

/* ============================================
   ANIMACIONES
   ============================================ */

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

.animate-on-scroll {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.animate-on-scroll:nth-child(2) { animation-delay: 0.2s; }
.animate-on-scroll:nth-child(3) { animation-delay: 0.4s; }
.animate-on-scroll:nth-child(4) { animation-delay: 0.6s; }

/* ============================================
   PÁGINA MASTER CHEF - RECETAS
   ============================================ */

.recipe-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    margin-bottom: 2rem;
}

.recipe-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.recipe-card .recipe-image {
    height: 220px;
    object-fit: cover;
    width: 100%;
}

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

.recipe-card .chef-name {
    color: var(--color-secondary);
    font-weight: 600;
    font-size: 0.9rem;
}

.recipe-card .recipe-title {
    color: var(--color-primary);
    font-weight: 700;
    font-size: 1.3rem;
}

.recipe-card .recipe-ingredients {
    background: var(--color-warm);
    padding: 1rem;
    border-radius: 12px;
    margin: 1rem 0;
    font-size: 0.95rem;
}

.recipe-card .badge-plaza {
    background: var(--color-primary-light);
    color: white;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
}

/* ============================================
   PÁGINA ESCENARIO CULTURAL - ARTISTAS
   ============================================ */

.artist-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    height: 100%;
}

.artist-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.artist-card .artist-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 1.5rem auto 1rem auto;
    border: 4px solid var(--color-secondary);
}

.artist-card .artist-name {
    font-weight: 700;
    color: var(--color-dark);
    font-size: 1.2rem;
}

.artist-card .artist-genre {
    color: var(--color-secondary);
    font-weight: 600;
    font-size: 0.9rem;
}

.artist-card .social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-primary);
    color: white;
    transition: var(--transition);
    margin: 0 4px;
}

.artist-card .social-icons a:hover {
    background: var(--color-secondary);
    transform: scale(1.1);
}

/* ============================================
   PÁGINA JUEGOS TRADICIONALES
   ============================================ */

.game-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.game-card .game-image {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-padding {
        padding: 3rem 0;
    }
    
    .navbar-custom .navbar-brand {
        font-size: 1.2rem;
    }
    
    .navbar-custom .navbar-brand img {
        height: 35px;
    }
    
    .artist-card .artist-image {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 576px) {
    .hero {
        min-height: 70vh;
        padding: 4rem 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .card-custom .card-img-top {
        height: 180px;
    }
}