:root {
    --primary-green: #1F3A32;
    --antique-gold: #C8A96B;
    --ivory-parchment: #F5F1E8;
    --charcoal: #2B2B2B;
    --olive-green: #556B5D;
    --aged-beige: #E7DCC8;
    --dark-gold: #A88442;
    --text-color: #2B2B2B;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-覚え: border-box;
}

body {
    background-color: var(--ivory-parchment);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .font-serif {
    font-family: var(--font-heading);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.container-home {
    max-width: 1600px; /* Reducción de los márgenes laterales (~60% menos de espacio vacío en pantallas estándar) */
    padding: 0 0.8rem; /* Reducción del padding de 2rem a 0.8rem (-60%) */
}

.container-dashboard {
    max-width: 1440px; /* Reducción de los márgenes laterales (~40% menos de espacio vacío en pantallas estándar) */
    padding: 0 1.2rem; /* Reducción del padding de 2rem a 1.2rem (-40%) */
}

/* Estilos para validación de formularios */
.field-error-wrapper input,
.field-error-wrapper select,
.field-error-wrapper textarea {
    border-color: #c0392b !important;
    background-color: #fffafa !important;
}

.field-error-wrapper input:focus,
.field-error-wrapper select:focus,
.field-error-wrapper textarea:focus {
    box-shadow: 0 0 5px rgba(192, 57, 43, 0.5) !important;
}

section {
    padding: 100px 0;
}

/* Header */
header {
    background-color: rgba(245, 241, 232, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(200, 169, 107, 0.2);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.monogram {
    width: 45px;
    height: 45px;
    border: 2px solid var(--antique-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: bold;
    color: var(--primary-green);
    background: radial-gradient(circle, var(--aged-beige) 0%, var(--ivory-parchment) 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.brand-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-green);
    letter-spacing: 1px;
}

header nav ul {
    display: flex;
    gap: 2rem;
}

header nav ul li a {
    font-size: 0.9rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--olive-green);
}

header nav ul li a:hover {
    color: var(--dark-gold);
}

/* Estilos para la foto de perfil en el header */
.header-profile-link {
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.header-profile-link:hover {
    transform: scale(1.05);
}

.header-profile-pic {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--antique-gold);
}

.header-profile-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--aged-beige);
    border: 1px solid var(--antique-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--primary-green);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 2px;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-green);
    color: var(--ivory-parchment);
    border: 1px solid var(--primary-green);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-green);
}

.btn-outline {
    border: 1px solid var(--antique-gold);
    color: var(--dark-gold);
}

.btn-outline:hover {
    background-color: var(--antique-gold);
    color: white;
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: linear-gradient(to right, var(--ivory-parchment) 50%, #eeebe3 100%);
    position: relative;
    padding: 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
}

.hero-content h1 {
    font-size: 4.5rem;
    color: var(--primary-green);
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.hero-content .tagline {
    font-size: 1.5rem;
    color: var(--antique-gold);
    font-style: italic;
    margin-bottom: 2rem;
    display: block;
}

.hero-content p {
    font-size: 1.1rem;
    max-width: 500px;
    margin-bottom: 2.5rem;
    color: var(--olive-green);
}

.hero-image {
    position: relative;
    height: 100%;
}

.hero-image-container {
    width: 100%;
    height: 600px;
    background-color: var(--aged-beige);
    border: 1px solid var(--antique-gold);
    position: relative;
    overflow: hidden;
}

.hero-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 5rem;
    color: rgba(31, 58, 50, 0.05);
    background-image: radial-gradient(var(--antique-gold) 1px, transparent 1px);
    background-size: 30px 30px;
}

/* Category Grid */
.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-green);
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background-color: var(--antique-gold);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.category-card {
    background-color: white;
    padding: 0;
    transition: var(--transition);
    border: 1px solid transparent;
    overflow: hidden;
}

.category-card:hover {
    transform: translateY(-10px);
    border-color: var(--antique-gold);
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
}

.category-img-box {
    height: 250px;
    background-color: var(--aged-beige);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.category-info {
    padding: 2rem;
    text-align: center;
}

.category-info h3 {
    margin-bottom: 1rem;
    color: var(--primary-green);
    font-size: 1.5rem;
}

.category-info p {
    font-size: 0.9rem;
    color: var(--olive-green);
}

/* Featured Piece */
.featured-piece {
    background-color: var(--primary-green);
    color: var(--ivory-parchment);
}

.featured-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.featured-image-box {
    padding: 40px;
    border: 1px solid var(--antique-gold);
}

.featured-image-inner {
    height: 450px;
    background-color: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.featured-content .badge {
    color: var(--antique-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    margin-bottom: 1rem;
    display: block;
}

.featured-content h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.featured-details {
    margin-bottom: 2rem;
    font-style: italic;
    color: var(--aged-beige);
}

/* Narrative */
.narrative {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.narrative blockquote {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--primary-green);
    margin-bottom: 2rem;
    line-height: 1.3;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 300px;
    gap: 1rem;
}

.gallery-item {
    background-color: var(--aged-beige);
    position: relative;
    overflow: hidden;
}

.gallery-item.wide {
    grid-column: span 2;
}

.gallery-item.tall {
    grid-row: span 2;
}

/* Blog */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.blog-card h3 {
    margin: 1.5rem 0 1rem;
    font-size: 1.4rem;
}

/* Footer */
footer {
    background-color: var(--charcoal);
    color: var(--ivory-parchment);
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 60px;
}

.footer-logo h3 {
    font-size: 1.8rem;
    color: var(--antique-gold);
    margin-bottom: 1rem;
}

.footer-links h4 {
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    color: var(--antique-gold);
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links ul li a {
    font-size: 0.9rem;
    opacity: 0.7;
}

.footer-links ul li a:hover {
    opacity: 1;
    color: var(--antique-gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.8rem;
    opacity: 0.5;
}

/* Dashboard Sidebar Layout fixes */
.dashboard-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    align-items: start;
}

.dashboard-sidebar {
    background-color: var(--primary-green);
    color: white;
    padding: 1.5rem 0;
    border-radius: 8px;
    position: sticky;
    top: 100px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.sidebar-menu li {
    margin: 0;
}

.sidebar-menu li a {
    display: block;
    padding: 1rem 1.5rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    font-size: 0.95rem;
}

.sidebar-menu li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.sidebar-menu li.active {
    background-color: rgba(255, 255, 255, 0.05);
}

.sidebar-menu li.active a {
    color: white;
    border-left: 4px solid var(--antique-gold);
    background-color: rgba(255, 255, 255, 0.1);
    font-weight: bold;
}

/* Submenu Styles */
.sidebar-submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: rgba(0, 0, 0, 0.1);
    display: none;
}

.sidebar-menu li.active .sidebar-submenu,
.sidebar-menu li.open .sidebar-submenu {
    display: block !important;
}

.sidebar-menu li > a[href="#"] {
    position: relative;
    cursor: pointer;
}

.sidebar-menu li > a[href="#"]::after {
    content: '▾';
    position: absolute;
    right: 1.5rem;
    transition: transform 0.3s ease;
}

.sidebar-menu li.active > a[href="#"]::after,
.sidebar-menu li.open > a[href="#"]::after {
    transform: rotate(180deg);
}

.sidebar-submenu li a {
    padding: 0.8rem 1.5rem 0.8rem 2.5rem;
    font-size: 0.85rem;
    border-left: 4px solid transparent;
}

.sidebar-submenu li a:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.sidebar-submenu li.active a {
    color: var(--antique-gold);
    border-left-color: var(--antique-gold);
    background-color: transparent;
}

/* Header Dropdown */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--ivory-parchment);
    min-width: 200px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid var(--antique-gold);
    display: none;
    z-index: 1001;
    padding: 0.5rem 0;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    display: block;
}

.dropdown-menu li a {
    padding: 0.8rem 1.5rem;
    color: var(--primary-green);
    text-transform: none;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    display: block;
}

.dropdown-menu li a:hover,
.dropdown-menu li button:hover {
    background-color: var(--aged-beige) !important;
    color: var(--dark-gold) !important;
}

.form-input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--antique-gold);
    background: white;
    font-family: var(--font-body);
    font-size: 0.9rem;
}

    .tag-badge {
    background-color: var(--primary-green);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Estilos para Select2 para que coincida con el tema */
.select2-container--default .select2-selection--single {
    border: 1px solid var(--antique-gold) !important;
    height: 45px !important;
    background-color: white !important;
    border-radius: 0 !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 45px !important;
    color: var(--text-color) !important;
    font-size: 0.9rem;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 43px !important;
}

.select2-dropdown {
    border: 1px solid var(--antique-gold) !important;
    border-radius: 0 !important;
    background-color: white !important;
}

.select2-results__option--highlighted[aria-selected] {
    background-color: var(--primary-green) !important;
}

/* Responsive fixes */
@media (max-width: 992px) {
    .dashboard-layout {
        grid-template-columns: 1fr;
    }
    .dashboard-sidebar {
        position: static;
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    .category-grid, .blog-grid, .footer-grid {
        grid-template-columns: 1fr;
    }
    nav {
        display: none; /* Simplificado para demo */
    }
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }
}
