/*
Theme Name: ExpoSubasta
Theme URI: https://tudominio.com
Description: Galería de exposición de obras de arte
Author: Tu Nombre
Version: 1.0.0
*/

/* ============================================
   VARIABLES DE COLOR
   ============================================ */
:root {
    --rojo-oscuro: #811714;
    --rojo: #AE191A;
    --crema: #FFFADA;
    --blanco-suave: #FFFAFA;
    --gris-claro: #F5F5F5;
}

/* ============================================
   ESTILOS GENERALES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    background: var(--gris-claro);
    color: #333;
    line-height: 1.6;
}

/* ============================================
   HEADER - LOGO MÁS GRANDE
   ============================================ */
.site-header {
    background: var(--rojo);
    color: white;
    padding: 25px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.site-header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
    color: white;
    transition: transform 0.3s ease;
}

.site-logo:hover {
    transform: scale(1.05);
}

.site-logo img {
    width: 100px;  /* MÁS GRANDE */
    height: 100px; /* MÁS GRANDE */
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.site-logo h1 {
    font-size: 36px; /* MÁS GRANDE */
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.site-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
}

.site-nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 18px;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 6px;
}

.site-nav a:hover {
    background: var(--rojo-oscuro);
    color: var(--crema);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    background: linear-gradient(135deg, var(--rojo-oscuro) 0%, var(--rojo) 100%);
    color: white;
    padding: 100px 20px;
    text-align: center;
}

.hero-section h2 {
    font-size: 52px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}

.hero-section p {
    font-size: 22px;
    color: var(--crema);
}

/* ============================================
   GALERÍA DE OBRAS
   ============================================ */
.obras-container {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    font-size: 40px;
    color: var(--rojo-oscuro);
    margin-bottom: 50px;
    position: relative;
    font-weight: bold;
}

.section-title:after {
    content: '';
    display: block;
    width: 120px;
    height: 4px;
    background: var(--rojo);
    margin: 20px auto 0;
    border-radius: 2px;
}

.obras-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 35px;
    margin-bottom: 60px;
}

/* ============================================
   CARD DE OBRA - FONDO BLANCO SUAVE
   ============================================ */
.obra-card {
    background: var(--blanco-suave); /* FONDO #FFFAFA */
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    transition: all 0.4s ease;
    position: relative;
    border: 2px solid transparent;
}

.obra-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 15px 40px rgba(174, 25, 26, 0.25);
    border-color: var(--rojo);
}

.obra-card-image {
    position: relative;
    width: 100%;
    height: 320px;
    overflow: hidden;
    background: #f0f0f0;
}

.obra-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.obra-card:hover .obra-card-image img {
    transform: scale(1.15);
}

/* Badge destacado */
.badge-destacada {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, gold 0%, #ffd700 100%);
    color: var(--rojo-oscuro);
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.5);
    z-index: 2;
}

/* Badge de estado */
.badge-estado {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--rojo);
    color: white;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
    z-index: 2;
}

.badge-estado.vendida {
    background: #555;
}

.badge-estado.reservada {
    background: #ff9800;
}

.obra-card-content {
    padding: 28px;
}

.obra-card-title {
    font-size: 24px;
    color: var(--rojo-oscuro);
    margin-bottom: 12px;
    font-weight: bold;
    line-height: 1.3;
}

.obra-card-artist {
    color: #666;
    font-size: 16px;
    margin-bottom: 20px;
    font-style: italic;
}

.obra-card-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
    padding: 20px;
    background: var(--crema);
    border-radius: 12px;
    border: 2px solid #f0e5d0;
}

.obra-card-info div {
    text-align: center;
}

.obra-card-info span {
    display: block;
    font-size: 13px;
    color: #888;
    margin-bottom: 5px;
}

.obra-card-info strong {
    display: block;
    color: var(--rojo);
    font-size: 17px;
    font-weight: bold;
}

/* BOTÓN MEJORADO */
.obra-card-button {
    display: inline-block;
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--rojo) 0%, var(--rojo-oscuro) 100%);
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 12px;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(174, 25, 26, 0.3);
    border: none;
    cursor: pointer;
}

.obra-card-button:hover {
    background: linear-gradient(135deg, var(--rojo-oscuro) 0%, #6b0f0d 100%);
    box-shadow: 0 6px 20px rgba(174, 25, 26, 0.5);
    transform: translateY(-2px);
}

/* ============================================
   PÁGINA INDIVIDUAL - MÁS BONITA Y ORDENADA
   ============================================ */
.single-obra-container {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.obra-detail {
    background: white;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.obra-detail-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    margin-bottom: 50px;
}

.obra-detail-image {
    position: relative;
}

.obra-detail-image img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.obra-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 25px;
}

.obra-gallery img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.obra-gallery img:hover {
    transform: scale(1.05);
    border-color: var(--rojo);
}

.obra-detail-info h1 {
    font-size: 42px;
    color: var(--rojo-oscuro);
    margin-bottom: 20px;
    line-height: 1.2;
}

/* META INFO MEJORADA */
.obra-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 35px 0;
    padding: 35px;
    background: linear-gradient(135deg, var(--blanco-suave) 0%, var(--crema) 100%);
    border-radius: 16px;
    border: 3px solid var(--rojo);
    box-shadow: 0 4px 15px rgba(174, 25, 26, 0.1);
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 15px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.meta-label {
    font-size: 14px;
    color: #888;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meta-value {
    font-size: 20px;
    font-weight: bold;
    color: var(--rojo-oscuro);
}

.obra-description {
    margin: 40px 0;
    line-height: 1.9;
    font-size: 17px;
}

.obra-description h2 {
    font-size: 32px;
    color: var(--rojo-oscuro);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--rojo);
}

/* PRECIO REFERENCIAL MEJORADO */
.precio-referencia {
    background: linear-gradient(135deg, var(--rojo) 0%, var(--rojo-oscuro) 100%);
    color: white;
    padding: 35px;
    border-radius: 16px;
    text-align: center;
    margin: 40px 0;
    box-shadow: 0 8px 25px rgba(174, 25, 26, 0.3);
}

.precio-referencia p {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 500;
}

.precio-referencia .precio {
    font-size: 56px;
    font-weight: bold;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
    margin: 15px 0;
}

.precio-referencia small {
    font-size: 14px;
    opacity: 0.9;
    display: block;
    margin-top: 15px;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--rojo-oscuro);
    color: white;
    padding: 60px 20px 25px;
    margin-top: 100px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px;
    margin-bottom: 40px;
}

.footer-section h3 {
    margin-bottom: 25px;
    color: var(--crema);
    font-size: 22px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 16px;
}

.footer-section a:hover {
    color: var(--crema);
}

.footer-bottom {
    text-align: center;
    padding-top: 35px;
    border-top: 2px solid rgba(255,255,255,0.2);
    color: var(--crema);
    font-size: 15px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .site-logo img {
        width: 70px;
        height: 70px;
    }
    
    .site-logo h1 {
        font-size: 28px;
    }
    
    .obras-grid {
        grid-template-columns: 1fr;
    }
    
    .obra-detail-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .obra-meta {
        grid-template-columns: 1fr;
    }
    
    .site-header .container {
        flex-direction: column;
        gap: 20px;
    }
    
    .site-nav ul {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .hero-section h2 {
        font-size: 36px;
    }
    
    .obra-detail {
        padding: 30px 20px;
    }
}

/* ============================================
   ANIMACIONES ADICIONALES
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.obra-card {
    animation: fadeInUp 0.6s ease-out;
}

.obra-card:nth-child(1) { animation-delay: 0.1s; }
.obra-card:nth-child(2) { animation-delay: 0.2s; }
.obra-card:nth-child(3) { animation-delay: 0.3s; }