/* ============================================
   PRIETO ALIMENTOS - Component Styles
   Navbar, Footer, Buttons, Cards, Modals
   ============================================ */

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--navbar-height);
    z-index: var(--z-navbar);
    transition: all var(--transition-base);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    height: 65px;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--prieto-gray-200);
    box-shadow: var(--shadow-sm);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--container-wide);
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    z-index: 10;
}

.navbar-logo img {
    height: 50px;
    width: auto;
    transition: height var(--transition-base);
}

.navbar.scrolled .navbar-logo img {
    height: 40px;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: var(--space-2xl);
}

.navbar-menu a {
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--prieto-dark);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    padding: var(--space-xs) 0;
    transition: color var(--transition-fast);
}

.navbar-menu a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--prieto-red);
    transition: width var(--transition-base);
}

.navbar-menu a:hover {
    color: var(--prieto-red);
}

.navbar-menu a:hover::after,
.navbar-menu a.active::after {
    width: 100%;
}

.navbar-menu a.active {
    color: var(--prieto-red);
}

/* Hamburger */
.navbar-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 28px;
    cursor: pointer;
    z-index: 10;
    padding: 4px 0;
}

.navbar-hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--prieto-dark);
    transition: all var(--transition-base);
    border-radius: 2px;
}

.navbar-hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translateY(5px) translateX(5px);
}

.navbar-hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.navbar-hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-5px) translateX(5px);
}

/* Mobile Menu */
.navbar-mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    z-index: var(--z-navbar);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-xl);
    opacity: 0;
    transition: opacity var(--transition-slow);
}

.navbar-mobile-overlay.active {
    display: flex;
    opacity: 1;
}

.navbar-mobile-overlay a {
    font-family: var(--font-heading);
    font-size: var(--fs-2xl);
    font-weight: 600;
    color: var(--prieto-dark);
    transition: color var(--transition-fast);
}

.navbar-mobile-overlay a:hover {
    color: var(--prieto-red);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 14px 32px;
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: none;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: width 0.6s, height 0.6s, top 0.6s, left 0.6s;
    transform: translate(-50%, -50%);
}

.btn:active::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--prieto-red);
    color: var(--prieto-white);
}

.btn-primary:hover {
    background: var(--prieto-red-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(200, 16, 46, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--prieto-red);
    border: 2px solid var(--prieto-red);
}

.btn-secondary:hover {
    background: var(--prieto-red);
    color: var(--prieto-white);
    transform: translateY(-2px);
}

.btn-dark {
    background: var(--prieto-dark);
    color: var(--prieto-white);
}

.btn-dark:hover {
    background: var(--prieto-black);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.btn-gold {
    background: var(--prieto-gold);
    color: var(--prieto-white);
}

.btn-gold:hover {
    background: var(--prieto-gold-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(143, 119, 75, 0.3);
}

.btn-ghost {
    background: transparent;
    color: var(--prieto-white);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
}

.btn-sm {
    padding: 10px 20px;
    font-size: var(--fs-xs);
}

.btn-lg {
    padding: 18px 42px;
    font-size: var(--fs-base);
}

/* ============================================
   CARDS (Glassmorphism)
   ============================================ */
.card {
    position: relative;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition-slow);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 40px rgba(200, 200, 200, 0.25),
                0 20px 50px rgba(0, 0, 0, 0.06);
}

.card-image {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slower);
}

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

.card-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--prieto-gray-400);
}

.card-body {
    padding: var(--space-lg);
}

.card-badge {
    display: inline-block;
    padding: 4px 12px;
    font-size: var(--fs-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--radius-full);
    background: var(--prieto-red);
    color: var(--prieto-white);
    margin-bottom: var(--space-sm);
}

.card-title {
    font-family: var(--font-heading);
    font-size: var(--fs-lg);
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--prieto-dark);
}

.card-text {
    font-size: var(--fs-sm);
    color: var(--prieto-gray-500);
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

.card-footer {
    padding: var(--space-md) var(--space-lg);
    border-top: 1px solid var(--prieto-gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Card on dark/gradient background */
.card-glass {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.card-glass:hover {
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--prieto-dark);
    color: var(--prieto-white);
    padding: var(--space-4xl) 0 var(--space-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: var(--space-3xl);
    margin-bottom: var(--space-3xl);
}

.footer-brand img {
    height: 60px;
    margin-bottom: var(--space-lg);
}

.footer-brand p {
    font-size: var(--fs-sm);
    color: var(--prieto-gray-400);
    line-height: 1.8;
    max-width: 300px;
}

.footer-column h4 {
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: var(--space-lg);
    color: var(--prieto-white);
}

.footer-column ul li {
    margin-bottom: var(--space-sm);
}

.footer-column ul li a {
    font-size: var(--fs-sm);
    color: var(--prieto-gray-400);
    transition: color var(--transition-fast);
}

.footer-column ul li a:hover {
    color: var(--prieto-red);
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    font-size: var(--fs-sm);
    color: var(--prieto-gray-400);
}

.footer-contact-item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 3px;
    fill: var(--prieto-red);
}

.footer-bottom {
    padding-top: var(--space-xl);
    border-top: 1px solid var(--prieto-gray-700);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.footer-bottom p {
    font-size: var(--fs-xs);
    color: var(--prieto-gray-500);
}

.footer-social {
    display: flex;
    gap: var(--space-md);
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--prieto-gray-700);
    color: var(--prieto-gray-400);
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    border-color: var(--prieto-red);
    color: var(--prieto-red);
    background: rgba(200, 16, 46, 0.1);
}

.footer-social a svg {
    width: 18px;
    height: 18px;
}

/* ============================================
   ETIQUETA NEGRA BUTTON (Fixed)
   ============================================ */
.etiqueta-negra-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: var(--z-sticky);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 14px 24px;
    background: var(--prieto-black);
    color: var(--prieto-gold);
    border-radius: var(--radius-full);
    font-family: var(--font-accent);
    font-size: var(--fs-sm);
    font-weight: 500;
    font-style: italic;
    letter-spacing: 0.5px;
    border: 1px solid var(--prieto-gold-dark);
    cursor: pointer;
    transition: all var(--transition-base);
    overflow: hidden;
    text-decoration: none;
}

.etiqueta-negra-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(143, 119, 75, 0.15),
        transparent
    );
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.etiqueta-negra-btn:hover {
    background: var(--prieto-gold-dark);
    color: var(--prieto-white);
    border-color: var(--prieto-gold);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(143, 119, 75, 0.3);
}

.etiqueta-negra-btn svg {
    width: 18px;
    height: 18px;
}

/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-lg) 0;
    font-size: var(--fs-sm);
    color: var(--prieto-gray-500);
}

.breadcrumb a {
    color: var(--prieto-gray-500);
    transition: color var(--transition-fast);
}

.breadcrumb a:hover {
    color: var(--prieto-red);
}

.breadcrumb .separator {
    color: var(--prieto-gray-300);
}

.breadcrumb .current {
    color: var(--prieto-dark);
    font-weight: 500;
}

/* ============================================
   TOAST / NOTIFICATIONS
   ============================================ */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 16px 32px;
    background: var(--prieto-dark);
    color: var(--prieto-white);
    border-radius: var(--radius-md);
    font-size: var(--fs-sm);
    font-weight: 500;
    box-shadow: var(--shadow-xl);
    z-index: var(--z-modal);
    opacity: 0;
    transition: all var(--transition-slow);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast.success {
    border-left: 4px solid #22c55e;
}

/* ============================================
   RESPONSIVE COMPONENTS
   ============================================ */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .navbar-menu {
        display: none;
    }
    
    .navbar-hamburger {
        display: flex;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .etiqueta-negra-btn {
        bottom: 20px;
        right: 20px;
        padding: 12px 20px;
        font-size: var(--fs-xs);
    }
}

@media (max-width: 480px) {
    .btn {
        padding: 12px 24px;
        font-size: var(--fs-xs);
    }
    
    .btn-lg {
        padding: 14px 30px;
        font-size: var(--fs-sm);
    }
}
