/* Fine Cigars Bayahibe - Cigars Page Styles */

:root {
    --primary-brown: #8B4513;
    --dark-brown: #654321;
    --light-brown: #D2B48C;
    --gold: #DAA520;
    --cream: #F5F5DC;
    --dark-gold: #B8860B;
}

body {
    font-family: 'Libre Baskerville', serif;
    background: linear-gradient(135deg, var(--cream) 0%, #FFF8DC 100%);
    color: #333;
    padding-top: 100px;
}

.hero-section {
    min-height: 60vh; /* Mobile: altura mínima más generosa */
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), 
                url('../image/fine-cigars-bayahibe-01.jpg');
    background-size: cover;
    background-position: center center; /* Móvil: centrado */
    background-repeat: no-repeat;
    background-attachment: scroll; /* Mejor performance en móvil */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 2rem 1rem;
    position: relative;
}

/* Tablet adjustments */
@media (min-width: 768px) {
    .hero-section {
        min-height: 70vh;
        background-position: center 30%; /* Desktop: enfoque en parte superior */
        background-attachment: fixed; /* Parallax effect en desktop */
        padding: 3rem 2rem;
    }
}

/* Large desktop optimization */
@media (min-width: 1200px) {
    .hero-section {
        min-height: 75vh;
        background-position: center 25%; /* Mejor posición en pantallas grandes */
    }
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    margin-bottom: 1rem;
    line-height: 1.2;
}

/* Mobile title adjustment */
@media (max-width: 768px) {
    .hero-title {
        font-size: 1.8rem;
        letter-spacing: 0.05em;
        line-height: 1.3;
    }
    
    .hero-description {
        font-size: 1.1rem !important;
        line-height: 1.5 !important;
        text-align: center !important;
    }
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--gold);
    margin-bottom: 2rem;
    letter-spacing: 0.1em;
}

.navbar {
    background: linear-gradient(90deg, var(--primary-brown) 0%, var(--dark-brown) 100%);
    padding: 0.5rem 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: white !important;
    text-decoration: none;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.navbar-brand:hover {
    color: var(--gold) !important;
    transform: scale(1.05);
}

/* Responsive adjustments for navbar brand */
@media (max-width: 480px) {
    .navbar {
        padding: 0.3rem 0;
    }

    .navbar-brand {
        font-size: 1.2rem;
        letter-spacing: 0.02em;
    }

    .container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

@media (min-width: 481px) and (max-width: 576px) {
    .navbar-brand {
        font-size: 1.4rem;
        letter-spacing: 0.05em;
    }
}

@media (min-width: 577px) and (max-width: 768px) {
    .navbar-brand {
        font-size: 1.6rem;
        letter-spacing: 0.06em;
    }
}

@media (min-width: 769px) and (max-width: 992px) {
    .navbar-brand {
        font-size: 1.8rem;
        letter-spacing: 0.08em;
    }
}

.navbar-nav .nav-link {
    color: white !important;
    font-weight: 500;
    margin: 0 0.8rem;
    transition: all 0.3s ease;
    position: relative;
    font-size: 0.95rem;
}

.navbar-nav .nav-link:hover {
    color: var(--gold) !important;
    transform: translateY(-2px);
}

.navbar-nav .nav-link.active {
    color: var(--gold) !important;
}

/* Responsive nav-link adjustments */
@media (max-width: 991px) {
    .navbar-nav .nav-link {
        margin: 0.5rem 0;
        padding: 0.5rem 1rem;
        border-radius: 5px;
        transition: all 0.3s ease;
    }
    
    .navbar-nav .nav-link:hover {
        background: rgba(218, 165, 32, 0.1);
        transform: none;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .navbar-nav .nav-link {
        margin: 0 0.6rem;
        font-size: 0.9rem;
    }
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-brown), var(--dark-brown));
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(139, 69, 19, 0.4);
    background: linear-gradient(45deg, var(--dark-brown), var(--primary-brown));
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-brown);
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--gold);
}

.cigar-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    margin-bottom: 2rem;
    height: 100%;
}

.cigar-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.cigar-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.cigar-card-body {
    padding: 1.5rem;
}

.brand-logo {
    width: 80px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.filter-section {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 3rem;
}

.filter-btn {
    background: var(--cream);
    border: 2px solid var(--light-brown);
    color: var(--dark-brown);
    padding: 8px 20px;
    margin: 5px;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary-brown);
    border-color: var(--primary-brown);
    color: white;
}

.process-section {
    background: var(--primary-brown);
    color: white;
    padding: 5rem 0;
}

.process-step {
    text-align: center;
    margin-bottom: 3rem;
}

.process-icon {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

/* Language selector styles */
.language-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    flex-shrink: 0;
}

.language-selector img {
    width: 28px;
    height: 21px;
    margin: 0 5px;
    cursor: pointer;
    transition: transform 0.3s ease;
    border-radius: 3px;
}

.language-selector img:hover {
    transform: scale(1.1);
}

/* Language selector mobile styles */
.language-selector-mobile img {
    width: 25px;
    height: 25px;
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 3px;
    border: 1px solid rgba(255,255,255,0.3);
}

.language-selector-mobile img:hover {
    transform: scale(1.1);
    border-color: var(--gold);
}

/* WhatsApp Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: white;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #20ba5a;
    color: white;
    transform: scale(1.1);
    box-shadow: 2px 2px 10px #999;
}

/* Mobile Section Separation Fix */
@media (max-width: 768px) {
    .hero-section {
        padding-top: 120px !important;
        padding-bottom: 80px !important;
        min-height: 80vh !important; /* Más altura en móvil para mejor proporción */
        background-position: center 40% !important; /* Ajuste específico para móvil */
    }
    
    .hero-section .container {
        position: relative;
        z-index: 2;
        max-width: 90%;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* Desktop content positioning */
@media (min-width: 769px) {
    .hero-section .container {
        position: relative;
        z-index: 2;
        margin-top: -5vh; /* Ajuste sutil hacia arriba en desktop */
    }
}

.footer {
    background: linear-gradient(135deg, var(--dark-brown) 0%, var(--primary-brown) 100%);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 5rem;
}

.fade-in {
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Screen reader only class for accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--primary-brown);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Mobile Menu */
.navbar-toggler {
    margin-left: 15px;
    border: 1px solid var(--gold);
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28218, 165, 32, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Scroll Progress Indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(139, 69, 19, 0.2);
    z-index: 9998;
}

.scroll-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--gold) 0%, var(--dark-gold) 100%);
    width: 0%;
    transition: width 0.3s ease;
}

/* Simple Progress Bar */
.progress-bar-top {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(0, 0, 0, 0.1);
    z-index: 9999;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold) 0%, #FFD700 100%);
    width: 0%;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px rgba(218, 165, 32, 0.3);
}

/* Section Navigation Dots */
.section-navigator {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid var(--gold);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.nav-dot.active {
    background: var(--gold) !important;
    transform: scale(1.3) !important;
    box-shadow: 0 0 15px rgba(218, 165, 32, 0.6) !important;
}

.nav-dot:hover {
    background: var(--gold);
    transform: scale(1.2);
}

/* Tooltip for navigation dots */
.nav-dot::after {
    content: attr(data-tooltip);
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 1001;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.nav-dot:hover::after {
    opacity: 1;
    visibility: visible;
    right: 30px;
}

.nav-dot:hover::after {
    opacity: 1;
    visibility: visible;
    right: 30px;
}

/* Hide section navigator on mobile */
@media (max-width: 768px) {
    .section-navigator {
        display: none;
    }
}

/* Section fade-in animations */
.section-animate {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.section-animate.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Error States */
.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #f5c6cb;
    margin: 1rem 0;
    display: none;
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #c3e6cb;
    margin: 1rem 0;
    display: none;
}

/* Language Selector Enhancement */
.language-selector .current-language {
    border: 2px solid var(--gold);
    border-radius: 4px;
    padding: 2px;
    background: rgba(218, 165, 32, 0.1);
}

.language-selector-mobile .current-language {
    border: 2px solid var(--gold);
    border-radius: 4px;
    padding: 2px;
    background: rgba(218, 165, 32, 0.1);
}

/* Make non-current language flags slightly more subdued */
.language-selector a:not(.current-language) img,
.language-selector-mobile a:not(.current-language) img {
    opacity: 0.8;
}

.language-selector a:not(.current-language) img:hover,
.language-selector-mobile a:not(.current-language) img:hover {
    opacity: 1;
}
