/* =========================================
   1. Variables y Configuración Global
   ========================================= */
:root {
    /* Paleta de Colores Elegante */
    --primary-dark: #1a1a2e;    /* Azul noche profundo para fondos oscuros */
    --primary-light: #2a2a4e;   /* Un tono más claro para hover/acentos */
    --accent-gold: #c5a47e;     /* Dorado Champán metálico, no amarillo */
    --accent-gold-dark: #a38560;
    
    --text-main: #2d3436;       /* Gris oscuro casi negro para texto principal */
    --text-muted: #636e72;      /* Gris para descripciones */
    --text-light: #f9f9f9;      /* Blanco roto para texto sobre fondos oscuros */
    
    --bg-body: #fcfcfc;         /* Fondo casi blanco */
    --bg-white: #ffffff;
    
    /* Sombras y Efectos modernos */
    --shadow-soft: 0 10px 30px rgba(0,0,0,0.08);
    --shadow-hover: 0 20px 40px rgba(0,0,0,0.12);
    --gradient-gold: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-dark));
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset básico moderno */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Tipografía elegante para títulos */
h1, h2, h3, h4, .logo {
    font-family: 'Playfair Display', serif;
    color: var(--primary-dark);
}

/* Utilidades */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-padding {
    padding: 5rem 0; /* Más espacio en blanco = más elegancia */
}

.accent-text {
    color: var(--accent-gold);
}

/* =========================================
   2. Header y Navegación
   ========================================= */
.main-header {
    background-color: var(--primary-dark);
    padding: 1.2rem 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.2);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: 1px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-nav a {
    text-decoration: none;
    color: rgba(255,255,255,0.7);
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-smooth);
    position: relative;
}

.main-nav a:hover, .main-nav a.active {
    color: var(--accent-gold);
}

/* Efecto de subrayado elegante al pasar el mouse */
.main-nav a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-gold);
    transition: var(--transition-smooth);
}

.main-nav a:hover::after {
    width: 100%;
}

/* =========================================
   3. Hero Section (Portada)
   ========================================= */
.hero {
    /* Fondo con un degradado sutil y quizás un patrón muy fino */
    background: linear-gradient(to right, #fcfcfc, #f0f2f5);
    padding: 6rem 0;
    text-align: center;
}

.hero h5 {
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-gold-dark);
    font-weight: 600;
    margin-bottom: 1rem;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.accent-text-gradient {
    /* Texto con degradado dorado */
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* =========================================
   4. Catálogo y Tarjetas (Cards)
   ========================================= */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.separator {
    height: 3px;
    width: 80px;
    background: var(--accent-gold);
    margin: 0 auto;
}

.catalogo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
}

.card {
    background: var(--bg-white);
    border-radius: 20px; /* Bordes más redondeados */
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    border: 1px solid rgba(0,0,0,0.03);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.card-image-container {
    height: 240px;
    overflow: hidden;
    position: relative;
}

.card-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.card:hover .card-image-container img {
    transform: scale(1.08); /* Zoom suave al pasar el mouse */
}

.category-tag {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-dark);
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.card-body {
    padding: 2rem;
}

.card-body h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
}

.card-body .description {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    min-height: 45px;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
    padding-top: 1.2rem;
}

.price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.price small {
    font-size: 0.8rem;
    font-weight: 400;
}

/* Botón de compra elegante */
.btn-leery {
    display: inline-flex;
    align-items: center;
    padding: 0.7rem 1.2rem;
    background: var(--primary-dark);
    color: var(--accent-gold);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.btn-leery .arrow {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.btn-leery:hover {
    background: var(--primary-light);
    padding-right: 1.5rem; /* Efecto de expansión */
}

.btn-leery:hover .arrow {
    transform: translateX(5px);
}

/* =========================================
   5. Footer
   ========================================= */
.main-footer {
    background-color: var(--primary-dark);
    color: rgba(255,255,255,0.7);
    padding-top: 5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    padding-bottom: 4rem;
}

.footer-col h4 {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--accent-gold);
    padding-left: 5px;
}

.footer-bottom {
    background: rgba(0,0,0,0.2);
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.9rem;
}

/* =========================================
   6. Responsive
   ========================================= */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .main-nav ul {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
}