/* style.css */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&family=Lora:ital,wght@0,400;0,700;1,400&display=swap');

:root {
    --bg-dark: #0f0f15;
    --gold: #d4af37;
    --text-light: #e0e0e0;
    --card-bg: #1a1a24;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: 'Lora', serif;
    line-height: 1.6;
}

h1, h2, h3, .nav-logo {
    font-family: 'Cinzel', serif;
    color: var(--gold);
    font-weight: 700;
}

/* Navegación */
header {
    background-color: rgba(15, 15, 21, 0.95);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #333;
}

/* Ajuste específico para que el menú principal sea horizontal, pero el submenú no se deforme */
.nav-links { 
    display: flex; 
    gap: 2rem; 
    list-style: none; 
    align-items: center;
}

/* Quitamos viñetas de todos los niveles de lista en el menú */
.nav-links li {
    list-style: none;
}

/* Estilo general para los enlaces del menú principal */
.nav-links > li > a { 
    color: var(--text-light); 
    text-decoration: none; 
    transition: color 0.3s; 
    padding: 10px 0; /* Área de clic más cómoda */
    display: block;
}

.nav-links > li > a:hover { 
    color: var(--gold); 
}
/* --- Estilos para Menús Desplegables --- */
.dropdown {
    position: relative; /* Necesario para que el submenú se posicione respecto a este elemento */
}

.dropdown-menu {
    display: none; /* Oculto por defecto */
    position: absolute;
    top: 100%; /* Se coloca justo debajo del enlace principal */
    left: 0;
    background-color: var(--card-bg); /* Fondo oscuro */
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.5);
    z-index: 1000;
    list-style: none;
    border: 1px solid #333;
    border-radius: 4px;
    padding: 0;
}

/* Mostrar el menú al pasar el ratón por encima del elemento de la lista (.dropdown) */
.dropdown:hover .dropdown-menu {
    display: block;
}

/* Estilos de los enlaces dentro del submenú */
.dropdown-menu li {
    border-bottom: 1px solid #2a2a36; /* Línea separadora tenue */
}

.dropdown-menu li:last-child {
    border-bottom: none; /* Quita la línea al último elemento */
}

.dropdown-menu li a {
    display: block;
    padding: 12px 20px;
    color: var(--text-light);
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
}

/* Efecto hover en los enlaces del submenú */
.dropdown-menu li a:hover {
    background-color: #2a2a36;
    color: var(--gold);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 100px 20px;
    background: radial-gradient(circle, rgba(34,34,50,1) 0%, rgba(15,15,21,1) 100%);
}

.hero p { max-width: 600px; margin: 20px auto; font-size: 1.1rem; }

.btn {
    display: inline-block;
    padding: 10px 25px;
    background-color: transparent;
    border: 2px solid var(--gold);
    color: var(--gold);
    text-decoration: none;
    font-family: 'Cinzel', serif;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn:hover { background-color: var(--gold); color: var(--bg-dark); }

/* Grid para Productos y Servicios */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 4rem 5%;
}

.card {
    background-color: var(--card-bg);
    border: 1px solid #333;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.card:hover { transform: translateY(-5px); border-color: var(--gold); }
.card h3 { margin-bottom: 1rem; }

/* Responsive */
@media (max-width: 768px) {
    header { flex-direction: column; gap: 1rem; }
    .nav-links { gap: 1rem; }
}
/* Estilos Específicos para Páginas de Servicios */
.hero-service {
    text-align: center;
    padding: 60px 20px 40px;
    border-bottom: 1px solid #333;
}

.instructions {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 20px;
    text-align: center;
}

.instructions h2 {
    margin-bottom: 2rem;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.step {
    background-color: var(--card-bg);
    padding: 2rem;
    border: 1px dashed #555;
    border-radius: 5px;
}

.step h3 {
    color: var(--gold);
    margin-bottom: 1rem;
}

/* Botón de WhatsApp */
.cta-container {
    margin-top: 2rem;
}

.btn-whatsapp {
    display: inline-block;
    padding: 15px 35px;
    background-color: #25D366; /* Verde oficial de WhatsApp */
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background-color: #1ebe57;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}
/* Estilos del Catálogo de Productos */
.catalog-page {
    padding-bottom: 4rem;
}

/* Barra de Filtros */
.filter-bar {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 2rem 5%;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    color: var(--text-light);
    border: 1px solid #555;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Lora', serif;
    transition: all 0.3s;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--gold);
    color: var(--bg-dark);
    border-color: var(--gold);
}

/* Grid de Productos */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    padding: 0 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    background: var(--card-bg);
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
    border-color: #555;
}

.product-image {
    width: 100%;
    height: 300px;
    background: #2a2a36;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #333;
}

.image-placeholder {
    color: #777;
    font-size: 1.2rem;
    font-family: 'Cinzel', serif;
}

.product-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.publisher {
    font-size: 0.8rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.product-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.description {
    font-size: 0.9rem;
    color: #bbb;
    margin-bottom: 1.5rem;
    flex-grow: 1; /* Empuja el precio al fondo */
}

.price-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #333;
    padding-top: 1rem;
}

.price {
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--gold);
}

.btn-buy {
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
    padding: 6px 15px;
    text-decoration: none;
    border-radius: 4px;
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.btn-buy:hover {
    background: var(--gold);
    color: var(--bg-dark);
}