/* --- VARIABLES Y BASES --- */
:root {
    --gold: #c5a059;
    --dark-bg: #0f0f0f;
    --card-bg: #1a1a1a;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --glass: rgba(15, 15, 15, 0.7);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- HEADER PREMIUM (Glassmorphism) --- */
header {
    background: var(--glass);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    margin-left: 25px;
    font-size: 0.9rem;
    transition: 0.3s;
    position: relative;
    padding-bottom: 5px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--gold);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gold);
}

/* --- HERO SECTION --- */
.hero {
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    position: relative;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 10px;
    max-width: 800px;
    font-weight: 700;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #e0e0e0;
}

/* --- GRID Y TARJETAS (Interacción 3D/Hover) --- */
.container {
    padding: 80px 5%;
}

.filter-bar {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.filter-btn {
    background: var(--card-bg);
    border: 1px solid rgba(197, 160, 89, 0.3);
    color: white;
    padding: 10px 25px;
    border-radius: 30px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--dark-bg);
    font-weight: 600;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 20px;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.product-card img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 15px;
    transition: transform 0.6s ease;
}

.product-card:hover {
    transform: translateY(-15px);
    border-color: var(--gold);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.product-card:hover img {
    transform: scale(1.08);
}

.product-card h3 {
    margin: 20px 0 8px;
    font-size: 1.2rem;
}

.product-card .price {
    color: var(--gold);
    font-weight: 700;
    font-size: 1.3rem;
}

/* --- MODAL PREMIUM --- */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(8px);
}

.modal-content {
    background: var(--card-bg);
    width: 90%;
    max-width: 950px;
    display: flex;
    border-radius: 25px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(197, 160, 89, 0.2);
}

.modal-left {
    width: 50%;
    background: #000;
}

.modal-right {
    width: 50%;
    padding: 50px;
    position: relative;
}

.btn-whatsapp {
    display: block;
    background: #25D366;
    color: white;
    padding: 18px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 30px;
    text-align: center;
    transition: 0.3s;
}

.btn-whatsapp:hover {
    transform: scale(1.02);
    background: #20ba5a;
}

/* --- SECCIONES EXTRA --- */
.section-title h2 {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 10px;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 60px;
    background: var(--card-bg);
    padding: 60px;
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
}

.contact-info {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 25px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    background: #222;
    border: 1px solid #333;
    padding: 18px;
    color: white;
    border-radius: 12px;
    outline: none;
}

.contact-form input:focus {
    border-color: var(--gold);
}

/* --- ANIMACIONES Y REVEAL --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1,
.hero p,
.hero a {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.hero h1 {
    animation-delay: 0.2s;
}

.hero p {
    animation-delay: 0.4s;
}

.hero a {
    animation-delay: 0.6s;
}

.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- BOTÓN WHATSAPP FLOTANTE --- */
.wa-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    width: 65px;
    height: 65px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    z-index: 999;
    transition: all 0.3s ease;
}

.wa-float:hover {
    transform: scale(1.1) rotate(10deg);
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .modal-content {
        flex-direction: column;
        height: 90vh;
        overflow-y: auto;
    }

    .modal-left,
    .modal-right {
        width: 100%;
    }

    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
}

/* Espaciado del footer */
footer {
    background: #080808;
    padding: 80px 5% 40px;
    text-align: center;
    border-top: 1px solid rgba(197, 160, 89, 0.1);
}

footer a:hover {
    color: var(--gold) !important;
    opacity: 1 !important;
}

/* Mejora al botón del formulario */
.btn-submit {
    background: var(--gold);
    color: var(--dark-bg);
    padding: 18px;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(197, 160, 89, 0.3);
}

/* Responsive para el grid del formulario */
@media (max-width: 600px) {
    .contact-form div {
        grid-template-columns: 1fr !important;
    }
}