/* ============================================
   SECCIÓN DE PRODUCTOS - DISEÑO PROFESIONAL DELICADO
============================================ */

/* VARIABLES CSS REFINADAS */
:root {
    /* Paleta de colores profesional */
    --color-primary: #2c1810;
    --color-primary-light: #3d2418;
    --color-accent: #d4a4a4;
    --color-accent-light: #e8c4c4;
    --color-accent-subtle: #f4efef;
    --color-sage: #a8b5a0;
    --color-sage-light: #c2cebb;
    --color-neutral-100: #fefefe;
    --color-neutral-200: #f8f6f6;
    --color-neutral-300: #f0eeee;
    --color-neutral-700: #8b8680;
    --color-neutral-800: #5a544e;
    
    /* Sombras refinadas */
    --shadow-subtle: 0 1px 3px rgba(44, 24, 16, 0.03), 0 1px 2px rgba(44, 24, 16, 0.02);
    --shadow-soft: 0 4px 12px rgba(44, 24, 16, 0.08), 0 2px 4px rgba(44, 24, 16, 0.04);
    --shadow-elevated: 0 8px 24px rgba(44, 24, 16, 0.12), 0 4px 8px rgba(44, 24, 16, 0.06);
    --shadow-floating: 0 12px 32px rgba(44, 24, 16, 0.15), 0 6px 12px rgba(44, 24, 16, 0.08);
    
    /* Transiciones suaves */
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-gentle: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    
    /* Bordes */
    --border-subtle: 1px solid rgba(212, 164, 164, 0.08);
    --border-light: 1px solid rgba(212, 164, 164, 0.12);
    --border-medium: 2px solid rgba(212, 164, 164, 0.16);
    
    /* Espaciado refinado */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-xxl: 3rem;
    
    /* Tipografía profesional */
    --font-serif: 'Playfair Display', 'Georgia', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
}

/* PRODUCTOS - VERSIÓN PROFESIONAL REFINADA */
.products-section {
    padding: 6rem 0 7rem;
    background: var(--color-neutral-200);
    position: relative;
    overflow: hidden;
}

.products-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--color-accent) 50%, 
        transparent 100%);
}

.container {
    max-width: 2400px;
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
}

/* ENCABEZADO DE SECCIÓN MEJORADO */
.section-header {
    text-align: center;
    margin-bottom: 5rem;
    position: relative;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: -1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-sage));
    border-radius: 1px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: var(--font-weight-light);
    color: var(--color-primary);
    margin-bottom: var(--spacing-lg);
    letter-spacing: 0.02em;
    line-height: 1.2;
    position: relative;
}

.section-subtitle {
    color: var(--color-neutral-700);
    font-family: var(--font-sans);
    font-size: 1.125rem;
    font-weight: var(--font-weight-light);
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.7;
    letter-spacing: 0.01em;
}

/* GRID DE PRODUCTOS PROFESIONAL */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    margin-top: 4rem;
    justify-items: center;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* TARJETAS DE PRODUCTO REFINADAS */
.product-card {
    background: var(--color-neutral-100);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition-gentle);
    box-shadow: var(--shadow-soft);
    position: relative;
    width: 575px;
    max-width: 100%;
    cursor: pointer;
    text-decoration: none;
    display: block;
    border: var(--border-subtle);
    backdrop-filter: blur(20px);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(212, 164, 164, 0.02) 0%, 
        rgba(168, 181, 160, 0.02) 100%);
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: 1;
    pointer-events: none;
    border-radius: inherit;
}

.product-card:hover {
    transform: translateY(-8px) scale(1.015);
    box-shadow: var(--shadow-floating);
    border-color: rgba(212, 164, 164, 0.16);
}

.product-card:hover::before {
    opacity: 1;
}

/* CONTENEDOR DE IMAGEN PROFESIONAL */
.product-image-container {
    width: 575px;
    height: 863px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, 
        var(--color-accent-subtle) 0%, 
        rgba(248, 246, 246, 0.8) 100%);
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: var(--transition-gentle);
    filter: saturate(0.95) contrast(1.02);
}

.product-card:hover .product-image {
    transform: scale(1.08);
    filter: saturate(1.05) contrast(1.05);
}

/* ICONO DE PRODUCTO ELEGANTE */
.product-icon {
    position: absolute;
    top: var(--spacing-lg);
    right: var(--spacing-lg);
    width: 52px;
    height: 52px;
    background: rgba(254, 254, 254, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-size: 1.4rem;
    box-shadow: var(--shadow-soft);
    border: var(--border-subtle);
    backdrop-filter: blur(20px);
    transition: var(--transition-smooth);
    z-index: 2;
}

.product-icon:hover {
    background: var(--color-accent);
    color: white;
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-elevated);
}

/* INFORMACIÓN DEL PRODUCTO MEJORADA */
.product-info {
    padding: var(--spacing-xl);
    background: var(--color-neutral-100);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    position: relative;
    z-index: 2;
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-md);
    gap: var(--spacing-md);
}

.product-name {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: var(--font-weight-medium);
    color: var(--color-primary);
    margin: 0;
    letter-spacing: 0.01em;
    line-height: 1.3;
}

.product-price {
    font-family: var(--font-sans);
    font-size: 1.25rem;
    font-weight: var(--font-weight-semibold);
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-light) 100%);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 24px;
    color: white;
    text-shadow: 0 1px 3px rgba(0,0,0,0.15);
    box-shadow: var(--shadow-soft);
    white-space: nowrap;
    letter-spacing: 0.02em;
}

/* ACCIONES DE PRODUCTO PROFESIONALES */
.product-actions {
    display: flex;
    gap: var(--spacing-md);
    width: 100%;
}

.btn {
    padding: var(--spacing-md) var(--spacing-lg);
    border: none;
    border-radius: 10px;
    font-family: var(--font-sans);
    font-size: 0.925rem;
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    letter-spacing: 0.02em;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.2) 50%, 
        transparent 100%);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: white;
    box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-elevated);
}

.btn-secondary {
    background: var(--color-neutral-100);
    color: var(--color-primary);
    border: var(--border-medium);
    box-shadow: var(--shadow-subtle);
}

.btn-secondary:hover {
    background: var(--color-accent-subtle);
    border-color: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

/* GRADIENTES DE PRODUCTOS REFINADOS */
.romero-canela {
    background: linear-gradient(135deg, 
        var(--color-accent-subtle) 0%, 
        rgba(232, 196, 196, 0.3) 50%, 
        rgba(194, 206, 187, 0.2) 100%);
}

.manzanilla-miel {
    background: linear-gradient(135deg, 
        var(--color-neutral-300) 0%, 
        rgba(232, 196, 196, 0.25) 50%, 
        rgba(194, 206, 187, 0.3) 100%);
}

.menta {
    background: linear-gradient(135deg, 
        rgba(194, 206, 187, 0.2) 0%, 
        rgba(168, 181, 160, 0.3) 50%, 
        var(--color-sage-light) 100%);
}

.cebolla {
    background: linear-gradient(135deg, 
        var(--color-accent-subtle) 0%, 
        rgba(90, 84, 78, 0.1) 50%, 
        rgba(232, 196, 196, 0.25) 100%);
}

/* RESPONSIVE DESIGN PROFESIONAL */
@media (max-width: 1200px) {
    .products-grid {
        gap: var(--spacing-xl);
        max-width: 900px;
    }
    
    .product-card {
        width: 400px;
    }
    
    .product-image-container {
        height: 350px;
    }
}

@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
        max-width: 800px;
    }
    
    .product-card {
        width: 100%;
        max-width: 380px;
    }
    
    .product-image-container {
        height: 300px;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .btn {
        flex: none;
    }
}

@media (max-width: 768px) {
    .products-section {
        padding: 4rem 0 5rem;
    }
    
    .container {
        padding: 0 var(--spacing-lg);
    }
    
    .section-header {
        margin-bottom: 4rem;
    }
    
    .section-title {
        font-size: 2.25rem;
        margin-bottom: var(--spacing-md);
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
        max-width: 420px;
        margin-top: var(--spacing-xxl);
    }
    
    .product-card {
        max-width: 100%;
    }
    
    .product-image-container {
        height: 320px;
    }
    
    .product-header {
        flex-direction: column;
        gap: var(--spacing-sm);
        align-items: flex-start;
    }
    
    .product-name {
        font-size: 1.3rem;
    }
    
    .product-price {
        font-size: 1.125rem;
        align-self: flex-end;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-md);
    }
    
    .products-grid {
        gap: var(--spacing-lg);
    }
    
    .product-image-container {
        height: 280px;
    }
    
    .product-info {
        padding: var(--spacing-lg);
    }
    
    .btn {
        padding: 0.875rem var(--spacing-md);
        font-size: 0.875rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 0.95rem;
    }
    
    .product-icon {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }
}

/* ANIMACIONES SUAVES Y PROFESIONALES */
.product-card {
    opacity: 0;
    transform: translateY(60px) scale(0.95);
    animation: elegantFadeIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.25s; }
.product-card:nth-child(3) { animation-delay: 0.4s; }
.product-card:nth-child(4) { animation-delay: 0.55s; }

@keyframes elegantFadeIn {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ESTADOS DE FOCUS MEJORADOS PARA ACCESIBILIDAD */
.product-card:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 4px;
    box-shadow: var(--shadow-elevated);
}

.btn:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(212, 164, 164, 0.2);
}

/* MEJORAS ADICIONALES DE UX */
.product-card:active {
    transform: translateY(-4px) scale(1.01);
}

.btn:active {
    transform: translateY(0) scale(0.98);
}

/* MICRO-INTERACCIONES DELICADAS */
.product-name {
    transition: var(--transition-smooth);
}

.product-card:hover .product-name {
    color: var(--color-accent);
    transform: translateX(2px);
}

.product-price {
    transition: var(--transition-smooth);
    position: relative;
}

.product-card:hover .product-price {
    transform: scale(1.05);
    box-shadow: var(--shadow-elevated);
}