/**
 * ============================================================
 * HOME GOLD FRAMES — Bordes dorados oro para todas las secciones
 * Verde Encanto · Lujo y elegancia visual
 * ============================================================
 */

/* ═══════════════════════════════════════════════════════
   BORDES DORADOS PARA SECCIONES PRINCIPALES
   ═══════════════════════════════════════════════════════ */

/* 1. SECCIÓN HERO PRINCIPAL */
.ve-hero-main {
    position: relative;
    border: 3px solid var(--color-gold);
    border-radius: 0;
    box-shadow: 0 8px 32px rgba(212, 175, 55, 0.15),
                inset 0 0 0 1px rgba(212, 175, 55, 0.1);
    overflow: hidden;
    margin-bottom: var(--space-8);
    transition: border-color 0.3s ease;
}

/* 2. SECCIÓN CATEGORÍAS DE JOYERÍA */
.ve-jewelry-categories {
    border: 2px solid var(--color-gold);
    border-radius: 0;
    box-shadow: 0 4px 24px rgba(212, 175, 55, 0.1),
                inset 0 0 0 1px rgba(212, 175, 55, 0.08);
    overflow: hidden;
    margin-bottom: var(--space-8);
    position: relative;
}

/* 3. BARRA DE MATERIALES */
.ve-materials-bar {
    border-top: 2px solid var(--color-gold);
    border-bottom: 2px solid var(--color-gold);
    position: relative;
    background: rgba(212, 175, 55, 0.03);
    margin: var(--space-6) 0;
}

.ve-materials-bar::before,
.ve-materials-bar::after {
    content: '';
    position: absolute;
    top: 0;
    width: 20px;
    height: 100%;
    background: linear-gradient(90deg, var(--color-gold), transparent);
    opacity: 0.3;
}

.ve-materials-bar::before {
    left: 0;
    background: linear-gradient(90deg, transparent, var(--color-gold));
}

.ve-materials-bar::after {
    right: 0;
    background: linear-gradient(90deg, var(--color-gold), transparent);
}

/* 4. SECCIÓN OFERTAS */
.ve-offers-section {
    border: 3px solid var(--color-gold);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(212, 175, 55, 0.2),
                inset 0 0 0 1px rgba(255, 215, 0, 0.2);
    overflow: hidden;
    margin-bottom: var(--space-8);
    position: relative;
}

.ve-offers-section::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 23px;
    background: linear-gradient(45deg, 
        transparent, 
        rgba(255, 215, 0, 0.05), 
        transparent);
    pointer-events: none;
    animation: gold-shimmer 8s infinite linear;
}

/* 5. SECCIÓN COLECCIÓN (NUEVOS PRODUCTOS) */
.ve-jewelry-index {
    border: 2px solid var(--color-gold);
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(212, 175, 55, 0.15),
                inset 0 0 0 1px rgba(212, 175, 55, 0.1);
    overflow: hidden;
    margin-bottom: var(--space-8);
    position: relative;
}

/* 6. SECCIÓN EXPERIENCIAS */
.ve-experiences {
    border: 3px solid var(--color-gold);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(212, 175, 55, 0.15),
                inset 0 0 0 1px rgba(212, 175, 55, 0.1);
    overflow: hidden;
    position: relative;
}

/* 7. CONTENEDORES PRINCIPALES TIPO CARD */
.ve-benefit-item {
    border: 1px solid var(--color-gold);
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.1);
    position: relative;
}

.ve-testimonial-card {
    border: 1px solid var(--color-gold);
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.1);
}

.ve-trust-item {
    border: 1px solid var(--color-gold);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.08);
}

/* 8. CARDS DE PRODUCTOS EN OFFERS/NEW */
.ve-offer-card {
    border: 2px solid var(--color-gold) !important;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.15) !important;
    transition: all 0.3s ease !important;
}

.ve-offer-card:hover {
    border-color: #FFD700 !important;
    box-shadow: 0 8px 32px rgba(255, 215, 0, 0.3) !important;
    transform: translateY(-4px) !important;
}

/* 9. ITEMS DE COLECCIÓN */
.ve-jewelry-index-item {
    border: 1px solid rgba(212, 175, 55, 0.5);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.ve-jewelry-index-item:hover {
    border-color: var(--color-gold);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.2);
}

/* 10. BOTONES CON EFECTO ORO */
a.ve-offer-btn {
    border: 1px solid var(--color-gold) !important;
    position: relative;
    overflow: hidden;
}

a.ve-offer-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.2), transparent);
    transition: left 0.6s ease;
}

a.ve-offer-btn:hover::before {
    left: 100%;
}

/* ═══════════════════════════════════════════════════════
   ANIMACIONES Y EFECTOS
   ═══════════════════════════════════════════════════════ */

@keyframes gold-shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes gold-pulse {
    0%, 100% { box-shadow: 0 4px 24px rgba(212, 175, 55, 0.15); }
    50% { box-shadow: 0 6px 32px rgba(212, 175, 55, 0.25); }
}

.ve-hero-main:hover,
.ve-jewelry-index:hover,
.ve-experiences:hover {
    animation: gold-pulse 3s infinite;
}

/* ═══════════════════════════════════════════════════════
   BORDES RESPONSIVE
   ═══════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .ve-hero-main,
    .ve-jewelry-categories,
    .ve-offers-section,
    .ve-jewelry-index,
    .ve-experiences {
        border-width: 2px !important;
        border-radius: 16px !important;
    }
    
    .ve-materials-bar {
        border-width: 1px !important;
        margin: var(--space-4) 0 !important;
    }
    
    .ve-benefit-item,
    .ve-testimonial-card,
    .ve-trust-item {
        border-width: 1px !important;
        border-radius: 12px !important;
    }
}

@media (max-width: 480px) {
    .ve-hero-main,
    .ve-jewelry-categories,
    .ve-offers-section,
    .ve-jewelry-index,
    .ve-experiences {
        border-width: 1px !important;
        border-radius: 12px !important;
        box-shadow: 0 2px 12px rgba(212, 175, 55, 0.1) !important;
    }
}

/* ═══════════════════════════════════════════════════════
   COLOR VERDE-ORO PARA FONDOS DE SECCIÓN
   ═══════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════
   CORRECCIÓN TARJETAS OFERTA — Mobile Fix
   ═══════════════════════════════════════════════════════ */

/* Permitir que las tarjetas crezcan para mostrar todo el contenido */
.ve-offer-card {
    overflow: visible !important;
}

/* Imagen adaptable en lugar de forzar 1:1 */
.ve-offer-card > a[href] {
    aspect-ratio: auto !important;
    height: auto !important;
}

.ve-offer-card > a[href] img {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    display: block;
}

/* Ajustes responsive para móviles */
@media (max-width: 768px) {
    .ve-offer-card > a[href] img {
        max-height: none !important;
    }
    
    .ve-offer-card > div[style*="padding"] {
        padding: 0.75rem !important;
    }
    
    .ve-offer-card h3 {
        font-size: 0.9rem !important;
        line-height: 1.2 !important;
    }
    
    .ve-offer-btn {
        font-size: 0.75rem !important;
        padding: 6px 16px !important;
    }
}

@media (max-width: 480px) {
    .ve-offer-card > a[href] img {
        max-height: none !important;
    }
    
    .ve-offer-card h3 {
        font-size: 0.85rem !important;
    }
}

/* Define un gradiente verde-oro elegante */
.ve-offers-section {
    background: linear-gradient(135deg, rgba(27, 94, 32, 0.95), rgba(13, 51, 16, 0.95)) !important;
    position: relative;
}

.ve-offers-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(212, 175, 55, 0.05) 0%, 
        transparent 25%, 
        rgba(255, 215, 0, 0.03) 50%, 
        transparent 75%);
    pointer-events: none;
    z-index: 0;
}

/* Contenedor de contenido sobre el gradiente */
.ve-offers-section > .ve-container {
    position: relative;
    z-index: 1;
}