/* IMPORTAR FUENTES MODERNAS */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&family=Montserrat:wght@300;400;600&display=swap');

:root {
    --bg-dark: #0a0a0a;
    --bg-panel: rgba(25, 25, 25, 0.9);
    --accent: #D4AF37;
    --accent-light: #FEDC5E;
    --text-main: #ffffff;
    --text-muted: #c0c0c0;
    --danger: #ff3b3b;
    --success: #00c853;
    
    --glass-border: 1px solid rgba(212, 175, 55, 0.3);
    --glass-blur: blur(12px);
    --gold-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    --nav-height: 70px; /* Reducido un poco para estética */
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
    background-image: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    background-attachment: fixed; 
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-height) + 20px); }

/* --- GLOBAL LAYOUT --- */
section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.section-title {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    color: var(--accent);
    text-align: center;
    margin-bottom: 50px;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
    position: relative;
}

.section-title::after {
    content: ''; display: block; width: 100px; height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    margin: 15px auto 0;
}

.row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }

.glass-panel {
    background: var(--bg-panel);
    border: var(--glass-border);
    backdrop-filter: var(--glass-blur);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    margin-bottom: 30px;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* --- FORMULARIOS --- */
input, select { margin-bottom: 20px; }
.row input, .row select { margin-bottom: 0; }

input[type="text"], input[type="number"], input[type="date"], input[type="time"], input[type="password"], select, textarea {
    width: 100%; padding: 15px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.2);
    color: var(--text-main); border-radius: 8px; font-size: 1rem;
    transition: 0.3s; outline: none; font-family: 'Montserrat', sans-serif;
}

/* Fix iPhone Zoom */
@media screen and (max-width: 768px) {
    input, select, textarea { font-size: 16px !important; }
}

input::placeholder, textarea::placeholder { color: rgba(255,255,255,0.4); }
input:focus, select:focus, textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
    background: rgba(255, 255, 255, 0.1);
}
select option { background-color: #1a1a1a; color: var(--accent); padding: 10px; }

/* --- BOTONES --- */
.btn-gold {
    display: block; width: 100%; padding: 18px 20px;
    background: linear-gradient(45deg, #aa8f2f, var(--accent), #aa8f2f);
    background-size: 200% auto; border: none; color: #000;
    border-radius: 8px; cursor: pointer; transition: 0.5s; 
    text-align: center; text-decoration: none; font-weight: 700;
    font-family: 'Montserrat', sans-serif; text-transform: uppercase;
    letter-spacing: 2px; box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.btn-gold:hover {
    background-position: right center; box-shadow: 0 0 25px rgba(212, 175, 55, 0.6); color: white;
}
.btn-gold:disabled { opacity: 0.7; cursor: not-allowed; filter: grayscale(1); }

.btn-danger { background: rgba(255, 59, 59, 0.1); border: 1px solid var(--danger); color: var(--danger); }
.btn-danger:hover { background: var(--danger); color: white; box-shadow: 0 0 20px rgba(255, 59, 59, 0.4); }

/* --- PRODUCTOS --- */
.products-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 30px; }
.product-card {
    background: rgba(20, 20, 20, 0.95); border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 12px; overflow: hidden; transition: 0.3s;
    display: flex; flex-direction: column; height: 100%;
}
.product-card:hover { transform: translateY(-5px); border-color: var(--accent); box-shadow: var(--gold-shadow); }

.product-img-container { width: 100%; aspect-ratio: 4/3; overflow: hidden; background: #000; position: relative; }
.product-img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.product-card:hover .product-img { transform: scale(1.1); }

.product-info { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between; }
.p-title { font-family: 'Cinzel', serif; font-size: 1.1rem; color: var(--accent); margin-bottom: 10px; font-weight: 700; line-height: 1.3;}
.p-desc { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 15px; flex-grow: 1; line-height: 1.5; }
.p-footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 15px; border-top: 1px solid rgba(255,255,255,0.1); }
.p-price { color: white; font-weight: bold; font-size: 1.2rem; font-family: 'Cinzel', serif; }

.btn-prod-whatsapp {
    padding: 8px 12px; background: rgba(212, 175, 55, 0.1); border: 1px solid var(--accent);
    color: var(--accent); border-radius: 5px; text-decoration: none;
    font-size: 0.8rem; font-weight: 600; transition: 0.3s; display: flex; align-items: center; gap: 6px;
}
.btn-prod-whatsapp:hover { background: var(--accent); color: black; }

/* --- ASESORAMIENTO --- */
.consulting-content { display: flex; flex-direction: column; align-items: center; text-align: center; }
.consulting-icon { font-size: 3rem; color: var(--accent); margin-bottom: 20px; }

/* --- HERO SECTION --- */
.hero {
    position: relative;
    width: 100%; 
    height: 100vh;
    min-height: 600px;
    display: flex; align-items: center; justify-content: center;
    background: #000;
    overflow: hidden;
    padding-top: var(--nav-height);
}
.hero-slider {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0;
}
.slide {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center;
    opacity: 0; transition: opacity 1.5s ease-in-out;
    filter: brightness(0.4) sepia(0.2);
}
.slide.active { opacity: 1; }

.hero-content {
    position: relative; z-index: 2; width: 100%; max-width: 800px; 
    padding: 20px; text-align: center; margin-top: 80px; /* Espacio para el logo flotante */
}
.hero h1 {
    font-family: 'Cinzel', serif; font-size: 4rem; line-height: 1.1; margin-bottom: 20px;
    color: white; text-shadow: 0 4px 20px rgba(0,0,0,0.8);
}
.hero h1 span { color: var(--accent); }
.hero p {
    font-size: 1.2rem; color: #ddd; margin-bottom: 30px;
    font-family: 'Montserrat', sans-serif; letter-spacing: 1px;
}

/* --- NAVBAR (Rediseñado) --- */
.navbar {
    background: rgba(10, 10, 10, 0.95); backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    display: flex; justify-content: space-between; /* Extremos separados */
    align-items: center;
    padding: 0 20px; height: var(--nav-height);
}

/* Logo oculto en la navbar para mobile (se usa el flotante), visible en desktop si quieres */
.nav-logo-text { display: none; } 

.menu-toggle { display: flex; flex-direction: column; cursor: pointer; z-index: 2000; width: 30px; }
.bar { height: 3px; width: 100%; background-color: var(--accent); margin: 4px 0; transition: 0.4s; border-radius: 2px;}

/* --- BRAND FLOTANTE (NUEVO) --- */
.floating-brand {
    position: absolute;
    top: calc(var(--nav-height) + 15px); /* Justo debajo de la navbar */
    left: 50%;
    transform: translateX(-50%);
    background: rgba(20, 20, 20, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 10px 25px;
    border-radius: 50px; /* Píldora */
    z-index: 900; /* Debajo del overlay del menú pero encima del video */
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
    width: max-content;
    max-width: 90%;
}
.brand-main {
    font-family: 'Cinzel', serif; font-size: 1.4rem; color: white; letter-spacing: 2px;
}
.brand-main span { color: var(--accent); font-weight: bold; }
.brand-sub {
    font-size: 0.7rem; color: #ccc; letter-spacing: 3px; text-transform: uppercase; margin-top: 2px;
}

.nav-overlay {
    height: 100vh; width: 0; position: fixed; z-index: 1500; top: 0; left: 0;
    background-color: rgba(5,5,5,0.98); overflow-x: hidden; transition: 0.4s ease;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
}
.nav-overlay.active { width: 100%; }
.nav-links { display:flex; flex-direction: column; gap: 30px; text-align: center; opacity: 0; transform: translateY(20px); transition: 0.5s; }
.nav-overlay.active .nav-links { opacity: 1; transform: translateY(0); transition-delay: 0.2s; }
.nav-links a {
    text-decoration: none; font-size: 1.5rem; color: #aaa; transition: 0.3s;
    font-family: 'Cinzel', serif; text-transform: uppercase; letter-spacing: 2px;
}
.nav-links a:hover { color: var(--accent); }

.nav-icon-link { 
    color: rgba(255,255,255,0.8); transition: 0.3s; z-index: 1001; 
    border: 1px solid rgba(255,255,255,0.1); padding: 8px; border-radius: 50%;
}
.nav-icon-link:hover { color: var(--accent); border-color: var(--accent); background: rgba(212,175,55,0.1); }

/* --- FOOTER & HELPERS --- */
.hidden { display: none !important; }
.text-center { text-align: center; }
.loader { 
    position: fixed; inset: 0; background: #000; z-index: 5000; 
    display: flex; justify-content: center; align-items: center; 
    color: var(--accent); font-family: 'Cinzel'; font-size: 1.2rem; letter-spacing: 4px; 
}
.footer { padding: 40px 20px; background: #050505; border-top: 1px solid rgba(212, 175, 55, 0.1); text-align: center; }
.social-links { display: flex; justify-content: center; gap: 15px; margin-bottom: 25px; flex-wrap: wrap; }
.social-btn {
    text-decoration: none; color: var(--accent); font-size: 0.8rem; font-weight: 600;
    padding: 10px 20px; border: 1px solid var(--accent); border-radius: 4px; transition: 0.3s;
    font-family: 'Montserrat', sans-serif; letter-spacing: 1px; text-transform: uppercase;
}
.social-btn:hover { background: var(--accent); color: #000; }

/* --- MEDIA QUERIES --- */
@media(max-width: 768px) {
    .row { grid-template-columns: 1fr; gap: 15px; margin-bottom: 15px; }
    .glass-panel { padding: 25px 20px; margin-bottom: 20px; }
    
    section { padding: 60px 15px; }
    .section-title { font-size: 1.8rem; margin-bottom: 40px; }
    
    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1rem; padding: 0 10px; }
    
    .products-grid { grid-template-columns: 1fr; gap: 25px; }
    .btn-gold { padding: 15px; font-size: 1rem; }
}

@media(min-width: 900px) {
    /* En PC podemos mostrar el logo en la navbar si se prefiere, o dejar el flotante */
    .nav-logo-text { display: block; font-family: 'Cinzel', serif; font-size: 1.5rem; color: white; letter-spacing: 2px; }
    .nav-logo-text span { color: var(--accent); font-weight: bold; }
    /* Ocultamos el flotante en PC si queremos, o lo dejamos */
    .floating-brand { display: none; }
    .navbar { justify-content: space-between; }
    .menu-toggle { display: none; } /* O usar menú desktop */
    /* Para este ejemplo mantengo el toggle siempre funcional, pero en PC se ve bien */
}