:root {
    --bg-dark: #0a0a0a;
    --bg-card: #1a1a1a;
    --text-main: #f5f5f5;
    --text-muted: #a0a0a0;
    --accent-gold: #d4af37;
    --accent-hover: #b8952b;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 400;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: background-color 0.3s ease, padding 0.3s ease;
}

.navbar.scrolled {
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 5%;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-logo-img {
    height: 80px; /* Tamaño grande para el logo en la cabecera */
    width: auto;
    transition: transform 0.3s ease, height 0.3s ease;
}

.nav-logo-img:hover {
    transform: scale(1.05);
}

.navbar.scrolled .nav-logo-img {
    height: 60px; /* Se reduce un poco al hacer scroll */
}

nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

nav a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--accent-gold);
}

.cart-btn {
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.cart-btn:hover {
    color: var(--accent-gold);
}

#cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: var(--accent-gold);
    color: var(--bg-dark);
    font-size: 0.7rem;
    font-weight: 600;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Hero */
.hero {
    height: 100vh;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(10,10,10,1) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.hero-logo-wrapper {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
}

.hero-logo {
    max-width: 400px;
    width: 100%;
    border-radius: 50%;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
}

.hero-text-wrapper {
    flex: 1;
    min-width: 300px;
    text-align: left;
}

.hero-subtitle {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    line-height: 1.3;
    font-weight: 300;
}

.hero-subtitle .highlight {
    color: var(--accent-gold);
    font-weight: 600;
    font-size: 2.8rem;
    display: block;
    margin-top: 0.5rem;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    font-weight: 300;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background-color: transparent;
    color: var(--accent-gold);
    border: 1px solid var(--accent-gold);
    padding: 0.8rem 2rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.4s ease;
}

.btn-primary:hover {
    background-color: var(--accent-gold);
    color: var(--bg-dark);
}

.btn-block {
    width: 100%;
    text-align: center;
    padding: 1rem;
}

/* Nosotros */
.nosotros {
    padding: 5rem 5%;
    background-color: var(--bg-dark);
}

.nosotros-container {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.nosotros-img {
    flex: 1;
    min-width: 300px;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nosotros-img img {
    width: 48%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.05);
    object-fit: cover;
    aspect-ratio: 4/5;
}

.nosotros-text {
    flex: 1;
    min-width: 300px;
}

.nosotros-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent-gold);
}

.nosotros-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* Exposición Bacalao */
.exposicion {
    padding: 5rem 5%;
    background-color: #111;
    text-align: center;
}

.exposicion-desc {
    max-width: 800px;
    margin: 0 auto 4rem;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.video-container-fake {
    position: relative;
    width: 100%;
    max-width: 600px;
    aspect-ratio: 1 / 1;
    height: auto;
    margin: 0 auto 3rem;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.ken-burns-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: kenburns 20s infinite alternate linear;
}

@keyframes kenburns {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.15) translate(-2%, -2%); }
}

.video-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    padding: 4rem 2rem 2rem;
    text-align: center;
}

.video-overlay h3 {
    color: var(--accent-gold);
    font-size: 2.2rem;
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

.aviso-desalado {
    margin-top: 3rem;
    padding: 1.5rem;
    background-color: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--accent-gold);
    border-radius: 8px;
    display: inline-block;
}

.galeria-bacalao {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.galeria-item {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid rgba(212, 175, 55, 0.3);
    aspect-ratio: 4/5;
    background-color: #000;
}

.galeria-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.6s ease;
    display: block;
}

.galeria-item:hover img {
    transform: scale(1.05);
}

.aviso-desalado strong {
    font-weight: 600;
}

/* Catalog */
.catalogo {
    padding: 5rem 5%;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background-color: var(--accent-gold);
    margin: 1rem auto 0;
}

.grid-productos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 3rem;
}

.producto-card {
    background-color: var(--bg-card);
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid rgba(255,255,255,0.02);
}

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

.img-container {
    height: 300px;
    overflow: hidden;
    background-color: #0a0a0a; /* Dark background to blend in */
    display: flex;
    align-items: center;
    justify-content: center;
}

.img-container img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Para que no se corte la imagen */
    transition: transform 0.6s ease;
}

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

.producto-info {
    padding: 2rem;
    text-align: center;
}

.producto-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.producto-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.producto-precio {
    display: block;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
}

/* Próximamente */
.proximamente {
    padding: 5rem 5%;
    background-color: var(--bg-dark);
}

.proximamente-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.proximamente-card {
    background-color: rgba(212, 175, 55, 0.05);
    border: 1px dashed var(--accent-gold);
    border-radius: 8px;
    padding: 3rem 2rem;
    text-align: center;
    transition: transform 0.4s ease;
}

.proximamente-card:hover {
    transform: translateY(-5px);
    background-color: rgba(212, 175, 55, 0.1);
}

.proximamente-card h3 {
    color: var(--accent-gold);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.proximamente-card p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
}

.btn-add {
    background: none;
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--text-main);
    padding: 0.6rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-add:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    max-width: 100%;
    height: 100vh;
    background-color: var(--bg-card);
    z-index: 1000;
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 30px rgba(0,0,0,0.5);
}

.cart-sidebar.open {
    right: 0;
}

.cart-header {
    padding: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-cart {
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s;
}

.close-cart:hover {
    color: var(--accent-gold);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cart-item {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.cart-item img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
}

.item-info {
    flex: 1;
}

.item-info h4 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.item-price {
    color: var(--accent-gold);
    font-size: 0.9rem;
}

.item-qty {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.item-qty button {
    background: none;
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--text-main);
    width: 24px;
    height: 24px;
    cursor: pointer;
}

.cart-footer {
    padding: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.cart-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    border: 1px solid var(--accent-gold);
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-muted);
}

.bizum-info {
    margin-top: 2rem;
}

.bizum-info p {
    margin: 1rem 0;
    color: var(--text-muted);
}

.bizum-number {
    font-size: 2.5rem;
    color: var(--accent-gold);
    margin: 1.5rem 0;
    letter-spacing: 2px;
}

.bizum-concepto {
    background: rgba(255,255,255,0.05);
    padding: 1rem;
    border-radius: 4px;
}

.nota {
    font-size: 0.85rem;
    font-style: italic;
    margin-bottom: 2rem !important;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
        padding-top: 6rem;
    }
    .hero-text-wrapper {
        text-align: center;
    }
    .hero-subtitle {
        font-size: 1.8rem;
    }
    .hero-subtitle .highlight {
        font-size: 2.2rem;
    }
    .grid-productos { grid-template-columns: 1fr; }
    .cart-sidebar { width: 100%; right: -100%; }
}

/* Footer */
.footer {
    background-color: #050505;
    padding: 4rem 5% 2rem;
    text-align: center;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.footer-content h3 {
    color: var(--accent-gold);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.footer-content p {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 0.85rem;
    color: #666;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--accent-gold);
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    z-index: 2000;
    transition: bottom 0.5s ease-in-out;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.5);
}

.cookie-banner.show {
    bottom: 0;
}

.cookie-banner p {
    color: var(--text-main);
    font-size: 0.95rem;
    margin: 0;
    flex: 1;
}

@media (max-width: 768px) {
    .cookie-banner {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}
