/* 
   =========================================
   Variables y Configuración Base
   Paleta extraída e inspirada en Joyería Rimini 
   (#A88F59 - Dorado principal, #212529 oscuro)
   ========================================= 
*/
:root {
    --primary-color: #A88F59;       /* Dorado Rímini */
    --primary-hover: #8f7847;       /* Dorado Oscuro */
    --secondary-color: #212529;     /* Gris oscuro casi negro */
    --text-color: #333333;          /* Texto general */
    --light-bg: #f9f9f9;            /* Fondo claro */
    --white: #ffffff;
    --border-color: #e5e5e5;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
    --font-elegant: 'Cormorant Garamond', serif;
    
    --transition-fast: 0.3s ease;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--secondary-color);
    font-weight: 600;
}

a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: color var(--transition-fast);
}

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

ul {
    list-style: none;
}

.section-padding {
    padding: 80px 0;
}

/* 
   =========================================
   Botones
   ========================================= 
*/
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 0 !important; /* Force sharp corners on all Bootstrap buttons */
    transition: all var(--transition-fast);
    text-align: center;
}

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

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

.btn-outline {
    background-color: transparent !important;
    border: 1px solid var(--secondary-color) !important;
    color: var(--secondary-color) !important;
}

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

.btn-outline-light {
    background-color: transparent !important;
    border: 1px solid var(--white) !important;
    color: var(--white) !important;
}

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

.btn-large {
    padding: 16px 36px !important;
    font-size: 1rem !important;
}

/* 
   =========================================
   Top Bar & Header
   ========================================= 
*/
.top-bar {
    background-color: #000000;
    color: var(--white);
    padding: 10px 0;
    font-size: 0.8rem;
    letter-spacing: 2px;
    position: relative;
    z-index: 1001;
    overflow: hidden;
    white-space: nowrap;
}

.top-bar .container {
    overflow: hidden; /* Ensure text doesn't overflow container */
}

.top-bar p {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 25s linear infinite;
    margin: 0;
}

@keyframes marquee {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-100%, 0); }
}

/* Dynamic Header */
.main-header {
    background-color: transparent;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    position: absolute;
    width: 100%;
    top: 35px; /* Below top-bar */
    z-index: 1000;
    transition: all 0.4s ease;
}

.main-header.scrolled {
    position: fixed;
    top: 0;
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    transition: height 0.3s ease;
}

.main-header.scrolled .header-container {
    height: 65px;
}

/* Logo Colors */
.logo a {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 2px;
    transition: color 0.3s ease;
}

.main-header.scrolled .logo a {
    color: var(--secondary-color);
}

/* Nav Colors & Dropdowns */
/* Navigation styling utilizing Bootstrap classes */
.navbar-nav {
    margin-left: auto;
    margin-right: auto;
    gap: 15px;
}

.navbar-nav .nav-link {
    font-family: var(--font-elegant);
    font-size: 1.15rem;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0.5px;
    color: var(--white) !important;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    padding: 10px 15px !important;
}

.main-header.scrolled .navbar-nav .nav-link {
    color: var(--secondary-color) !important;
}

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

/* Dropdown Menu (Bootstrap Override) */
.dropdown-menu {
    background-color: var(--white) !important;
    min-width: 210px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 0 !important;
    padding: 12px 0 !important;
}

.dropdown-menu .dropdown-item {
    color: var(--secondary-color) !important;
    font-family: var(--font-elegant) !important;
    font-size: 1.05rem !important;
    font-weight: 400 !important;
    text-transform: capitalize !important;
    letter-spacing: 0.5px !important;
    padding: 8px 20px !important;
    transition: background-color 0.2s ease, color 0.2s ease !important;
    background-color: transparent !important;
}

.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus {
    background-color: var(--light-bg) !important;
    color: var(--primary-color) !important;
}

/* Desktop Hover Interaction for Bootstrap Dropdown */
@media (min-width: 992px) {
    .navbar-nav .nav-item.dropdown:hover .dropdown-menu {
        display: block !important;
        margin-top: 0;
        opacity: 1;
        visibility: visible;
    }
}

/* Action Buttons Colors */
.header-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

.action-btn {
    font-size: 1.2rem;
    color: var(--white);
    position: relative;
    transition: color 0.3s ease;
}

.main-header.scrolled .action-btn {
    color: var(--secondary-color);
}

.cart-btn .cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: var(--primary-color);
    color: var(--white);
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--white);
}
.main-header.scrolled .mobile-menu-toggle {
    color: var(--secondary-color);
}

/* 
   =========================================
   Hero Carousel
   ========================================= 
*/
.hero-carousel {
    position: relative;
    height: 85vh;
    min-height: 600px;
    overflow: hidden;
}

.carousel-inner {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-item {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.carousel-item.active {
    opacity: 1;
    z-index: 1;
}

/* Hero Carousel Bootstrap Customizations */
.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 800px;
    padding: 0 20px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.8s ease 0.3s;
}

.carousel-item.active .hero-content {
    transform: translateY(0);
    opacity: 1;
}

.hero-content h1 {
    color: var(--white);
    font-size: 4.5rem;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    font-weight: 300;
}

/* Match layout alignment during slide transition in Bootstrap */
.hero-carousel .carousel-item-next,
.hero-carousel .carousel-item-prev,
.hero-carousel .carousel-item.active {
    display: flex !important;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255,255,255,0.2) !important;
    color: var(--white) !important;
    border: none;
    width: 50px; height: 50px;
    border-radius: 50% !important;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background 0.3s ease;
    opacity: 1 !important; /* Override Bootstrap default 0.5 */
}

.hero-carousel .carousel-control-prev:hover,
.hero-carousel .carousel-control-next:hover {
    background: rgba(255,255,255,0.4) !important;
}

.hero-carousel .carousel-control-prev { left: 20px; }
.hero-carousel .carousel-control-next { right: 20px; }

.hero-carousel .carousel-control-prev-icon,
.hero-carousel .carousel-control-next-icon {
    background-image: none !important; /* Remove Bootstrap default SVG */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Custom Dots for Bootstrap Indicators */
.hero-carousel .carousel-indicators [data-bs-target] {
    width: 12px !important;
    height: 12px !important;
    border-radius: 50% !important;
    background-color: rgba(255, 255, 255, 0.5) !important;
    border: none !important;
    opacity: 1 !important;
    transition: background 0.3s ease;
    margin: 0 5px;
}

.hero-carousel .carousel-indicators .active {
    background-color: var(--white) !important;
}

/* 
   =========================================
   Instagram Feed Carousel
   ========================================= 
*/
.instagram-carousel-section {
    background-color: var(--light-bg);
    overflow: hidden;
    padding: 60px 0;
}

.instagram-carousel-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 10px 0;
}

.instagram-carousel-track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: instaMarquee 35s linear infinite;
}

.instagram-carousel-track:hover {
    animation-play-state: paused;
}

.instagram-post-card {
    flex: 0 0 290px;
    width: 290px;
}

/* Crop Instagram standard frame */
.instagram-iframe-container {
    position: relative;
    width: 100%;
    height: 290px; /* Square container matching the image aspect ratio */
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    background-color: var(--white);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.instagram-iframe-container:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.instagram-iframe-container iframe {
    position: absolute;
    /* Offset top to crop the Instagram header (~54px) */
    top: -54px;
    left: 0;
    width: 100%;
    /* Standard embed height is larger, this crops the bottom footer */
    height: 480px; 
    border: none;
    pointer-events: auto;
}

@keyframes instaMarquee {
    0% {
        transform: translateX(0);
    }
    100% {
        /* Translates exactly half of the duplicated track width */
        transform: translateX(calc(-50% - 10px));
    }
}

/* 
   =========================================
   Best Sellers
   ========================================= 
*/
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.section-header p {
    color: #666;
    font-size: 1rem;
}



.product-card {
    text-align: center;
    group: hover;
}

.product-image {
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
    border-radius: 4px;
    aspect-ratio: 1 / 1;
    background-color: var(--light-bg);
}

.img-placeholder {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

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

.product-actions {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    transition: bottom 0.3s ease;
    padding: 10px;
}

.product-card:hover .product-actions {
    bottom: 0;
}

.product-actions .btn {
    width: 100%;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.product-info h3 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 5px;
}

.product-info .price {
    font-weight: 600;
    color: var(--primary-color);
}

/* 
   =========================================
   Categories (Split Section)
   ========================================= 
*/
.categories-section {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

.category-block {
    flex: 1 1 33.333%;
    min-height: 420px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-block::before {
    content: '';
    position: absolute;
    top:0; left:0; right:0; bottom:0;
    background: rgba(0,0,0,0.3);
    transition: background 0.3s ease;
}

.category-block:hover::before {
    background: rgba(0,0,0,0.5);
}

.category-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
}

.category-content h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

/* 
   =========================================
   Features Section
   ========================================= 
*/
.features-section {
    background-color: var(--light-bg);
}



.feature-item i {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.feature-item p {
    color: #666;
    font-size: 0.95rem;
}

/* 
   =========================================
   Custom Banner
   ========================================= 
*/
.custom-jewelry-banner {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.custom-jewelry-banner h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.custom-jewelry-banner p {
    max-width: 700px;
    margin: 0 auto 30px;
    font-weight: 300;
}

/* 
   =========================================
   Footer
   ========================================= 
*/
.main-footer {
    background-color: var(--secondary-color);
    color: #cccccc;
    padding: 60px 0 0;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h4 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul a {
    color: #cccccc;
    font-size: 0.9rem;
}

.footer-column ul a:hover {
    color: var(--primary-color);
}

.footer-column p {
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    color: var(--white);
    font-size: 1.2rem;
    background: rgba(255,255,255,0.1);
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.social-links a:hover {
    background: var(--primary-color);
}

.newsletter-form {
    display: flex;
    margin-top: 15px;
}

.newsletter-form input {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 0;
    font-family: var(--font-body);
}

.newsletter-form .btn {
    border-radius: 0;
    padding: 10px 15px;
}

.footer-bottom {
    background-color: #1a1d20;
    padding: 20px 0;
    text-align: center;
    font-size: 0.8rem;
}

/* 
   =========================================
   Responsive
   ========================================= 
*/
/* Responsive adjustments utilizing Bootstrap 5 */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: var(--white);
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        max-height: 80vh;
        overflow-y: auto;
        z-index: 1000;
    }
    
    .navbar-nav {
        gap: 5px;
        width: 100%;
    }

    .navbar-nav .nav-link {
        color: var(--secondary-color) !important;
        width: 100%;
        justify-content: center;
        padding: 10px 0 !important;
        border-bottom: 1px solid var(--border-color);
    }
    
    .main-header.scrolled .navbar-nav .nav-link {
        color: var(--secondary-color) !important;
    }

    /* Mobile Dropdown Styling override for Bootstrap */
    .navbar-nav .dropdown-menu {
        position: static !important;
        transform: none !important;
        box-shadow: none !important;
        border: none !important;
        background-color: var(--light-bg) !important;
        width: 100%;
        padding: 5px 0 !important;
        margin-top: 5px !important;
        border-radius: 4px !important;
    }

    .navbar-nav .dropdown-item {
        padding: 8px 0 !important;
        text-align: center;
        justify-content: center;
        border-bottom: none !important;
    }

    .mobile-menu-toggle {
        display: block !important;
        order: -1;
        border: none;
        background: transparent;
        color: var(--white);
        font-size: 1.5rem;
        padding: 5px;
    }

    .main-header.scrolled .mobile-menu-toggle {
        color: var(--secondary-color);
    }

    .header-container {
        justify-content: space-between;
    }

    .hero-content h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .hero-carousel {
        min-height: 400px;
        height: 60vh;
    }
}

/* 
   =========================================
   Appointment Modal & Captcha Stylings
   ========================================= 
*/
.modal-content-custom {
    background-color: #FFFFFF !important;
    border: 2px solid var(--primary-color) !important;
    border-radius: 0 !important; /* Sharp corners */
}
.modal-header-custom {
    border-bottom: 1px solid rgba(168, 143, 89, 0.15) !important;
    padding: 20px 30px !important;
}
.modal-header-custom h5 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--secondary-color);
}
.modal-body-custom {
    padding: 30px !important;
    background-color: #FCFAF6; /* Soft champagne background inside */
}
.modal-footer-custom {
    border-top: 1px solid rgba(168, 143, 89, 0.15) !important;
    padding: 20px 30px !important;
}

.form-group-custom {
    margin-bottom: 20px;
}
.form-group-custom label {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--secondary-color);
    margin-bottom: 8px;
    display: block;
}
.form-control-custom {
    background-color: #FFFFFF !important;
    border: 1px solid rgba(168, 143, 89, 0.3) !important;
    border-radius: 0 !important;
    padding: 12px 15px !important;
    color: var(--text-color) !important;
    font-family: var(--font-body);
    font-size: 0.95rem;
}
.form-control-custom:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 0.2rem rgba(168, 143, 89, 0.15) !important;
    outline: none;
}

/* Captcha Options */
.captcha-wrapper {
    margin-top: 15px;
}
.captcha-label {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 8px;
}
.captcha-options-container {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 10px;
}
.captcha-option {
    flex: 1;
    max-width: 70px;
    height: 70px;
    border: 1px solid rgba(168, 143, 89, 0.3);
    background-color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}
.captcha-option i {
    font-size: 1.5rem;
    color: var(--text-color);
    transition: color 0.3s ease;
}
.captcha-option:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}
.captcha-option.active {
    border-color: var(--primary-color) !important;
    background-color: #FCF9F3 !important;
    box-shadow: 0 0 0 3px rgba(168, 143, 89, 0.2);
}
.captcha-option.active i {
    color: var(--primary-color) !important;
}

/* Modal Overlay shadow */
.modal-backdrop {
    background-color: rgba(33, 37, 41, 0.6) !important; /* Soft luxury dark background overlay */
}

