:root {
    --primary-color: #0A0A0A;
    --secondary-color: #D4AF37;
    --text-color: #f5f5f5;
    --text-muted: #aaaaaa;
    --bg-dark: #121212;
    --font-heading: 'Cinzel', serif;
    --font-body: 'Open Sans', sans-serif;
}

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

body {
    background-color: var(--primary-color);
    background-image: url('../images/crown-pattern.png');
    background-repeat: repeat;
    background-size: 300px;
    background-attachment: fixed;
    /* Tamaño reducido para que sea más denso y elegante */
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 700;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #fff;
}

/* Header */
header {
    background-color: var(--primary-color);
    padding: 20px 0;
    border-bottom: 1px solid #333;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: bold;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-links {
    display: flex;
    gap: 20px;
    list-style: none;
}

.nav-links a {
    color: var(--text-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1.5px;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

.nav-icons {
    display: flex;
    gap: 15px;
}

.nav-icons a {
    color: var(--text-color);
    font-size: 18px;
}

.nav-icons a:hover {
    color: var(--secondary-color);
}

/* Hero Section */
.hero {
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 1;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
}

.hero-content h1 {
    font-size: 64px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 5px;
    font-weight: 800;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
    color: var(--text-muted);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: transparent;
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 14px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--secondary-color);
}

/* Products */
.section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    display: none;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: var(--bg-dark);
    padding: 20px;
    text-align: center;
    border: 1px solid #222;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.1);
    border-color: var(--secondary-color);
}

.product-img {
    width: 100%;
    height: 400px;
    object-fit: contain;
    /* Asegura que se vea la foto completa sin recortar */
    background: rgba(255, 255, 255, 0.02);
    /* Fondo suave para fotos verticales */
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
    display: block;
}

.product-title {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-color);
    font-family: var(--font-body);
}

.product-price {
    font-size: 20px;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

/* Footer */
footer {
    background-color: rgb(5, 5, 5);
    padding: 60px 20px 20px;
    border-top: 1px solid #222;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    margin-bottom: 20px;
    font-size: 22px;
}

.footer-section p,
.footer-section a {
    color: var(--text-muted);
    margin-bottom: 10px;
    display: block;
}

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

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

.social-links a {
    font-size: 20px;
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    padding-top: 20px;
    border-top: 1px solid #222;
}

/* Custom Select Styling */
.custom-select {
    appearance: none;
    -webkit-appearance: none;
    background-color: #0c0b09;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23D4AF37' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 15px) center;
    border: 1px solid #333;
    color: #fff;
    padding: 12px 40px 12px 15px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0;
    min-width: 200px;
}

.custom-select:focus {
    border-color: var(--secondary-color);
    outline: none;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.custom-select optgroup {
    background: #1a1a1a;
    color: var(--secondary-color);
    font-weight: bold;
    font-style: normal;
    text-transform: uppercase;
}


.custom-select option {
    background: #0c0b09;
    color: #fff;
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: #fff;
}

/* Responsive Queries */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 48px;
    }
}

@media (max-width: 768px) {
    header {
        padding: 5px 0;
    }

    .nav-container {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "logo icons"
            "links links"
            "search search";
        gap: 10px;
        align-items: center;
        padding: 0 15px;
    }

    .logo {
        grid-area: logo;
        font-size: 16px !important;
        justify-content: flex-start;
    }

    .nav-icons {
        grid-area: icons;
        display: flex !important;
        gap: 15px !important;
        justify-content: flex-end;
        width: auto !important;
    }

    .nav-icons a {
        font-size: 16px;
    }

    .search-form {
        grid-area: search;
        width: 100% !important;
        max-width: none !important;
        margin: 5px 0 0;
    }

    .nav-links {
        grid-area: links;
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px 15px;
        background: none;
        padding: 8px 0;
        border: none;
        border-top: 1px solid #222;
        border-bottom: 1px solid #222;
        list-style: none;
    }

    .nav-links li {
        width: auto;
    }

    .nav-links a {
        font-size: 10px;
        letter-spacing: 1px;
    }

    .hero {
        height: 40vh;
        min-height: 300px;
    }

    .hero-content h1 {
        font-size: 32px;
        letter-spacing: 1px;
    }

    .hero-content p {
        font-size: 14px;
        padding: 0 20px;
    }

    .section {
        padding: 30px 10px;
    }

    .section-title {
        font-size: 24px;
        margin-bottom: 25px;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .product-img {
        height: 200px;
    }

    .product-title {
        font-size: 14px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .social-links {
        justify-content: center;
    }

    /* Fix flex layouts */
    .flex-responsive {
        flex-direction: column !important;
        gap: 20px !important;
    }

    .flex-responsive>div {
        width: 100% !important;
        min-width: 0 !important;
    }

    /* Checkout & Contact fixes */
    .checkout-form div[style*="display: flex"] {
        flex-direction: column !important;
        gap: 0 !important;
    }

    .sticky-mobile-fix {
        position: static !important;
        width: 100% !important;
        margin-top: 20px !important;
    }

    /* About page fixes */
    div[style*="padding: 100px 20px"] {
        padding: 60px 15px !important;
    }

    div[style*="font-size: 48px"] {
        font-size: 32px !important;
    }
}

@media (max-width: 480px) {
    .nav-icons {
        flex-wrap: wrap;
    }

    .nav-icons form {
        order: 3;
        width: 100%;
        margin-top: 10px;
        max-width: none;
    }

    .logo {
        font-size: 20px;
    }

    .hero-content h1 {
        font-size: 24px;
    }
}