body {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Playfair Display', 'Georgia', serif;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    color: #ffffff;
    overflow-x: hidden;
    min-height: 100%;
    width: 100%;
}

* {
    box-sizing: border-box;
}

/* Menú lateral */
.sidebar {
    position: fixed;
    left: -280px;
    top: 0;
    width: 280px;
    height: 100%;
    background: linear-gradient(180deg, #000000 0%, #2a2a2a 100%);
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    box-shadow: 4px 0 20px rgba(212, 175, 55, 0.3);
    border-right: 2px solid #d4af37;
}

.sidebar.active {
    left: 0;
}

.sidebar-header {
    padding: 32px 24px;
    border-bottom: 1px solid #d4af37;
    background: rgba(212, 175, 55, 0.1);
}

.sidebar-header h2 {
    margin: 0;
    font-size: 28px;
    color: #d4af37;
    font-weight: 700;
    letter-spacing: 1px;
}

.sidebar-nav {
    padding: 24px 0;
}

.sidebar-nav a {
    display: block;
    padding: 16px 24px;
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    letter-spacing: 0.5px;
}

.sidebar-nav a:hover {
    background: rgba(212, 175, 55, 0.2);
    border-left-color: #d4af37;
    padding-left: 32px;
}

.menu-toggle {
    position: fixed;
    top: 24px;
    left: 24px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.6);
}

.menu-toggle span {
    width: 24px;
    height: 3px;
    background: #000000;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Contenedor principal */
.main-container {
    width: 100%;
    padding: 100px 40px 60px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Encabezado */
.header {
    text-align: center;
    margin-bottom: 60px;
}

.header h1 {
    font-size: 56px;
    margin: 0 0 16px;
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 50%, #d4af37 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    letter-spacing: 2px;
}

.header p {
    font-size: 20px;
    color: #cccccc;
    font-style: italic;
    letter-spacing: 1px;
}

/* Filtros de categoría */
.category-filters {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.category-btn {
    padding: 12px 28px;
    background: rgba(212, 175, 55, 0.1);
    border: 2px solid #d4af37;
    color: #d4af37;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 25px;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    font-family: 'Playfair Display', serif;
}

.category-btn:hover,
.category-btn.active {
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

/* Galería mosaico */
.gallery {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    grid-auto-flow: dense;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.gallery-item:nth-child(3n+1) {
    grid-row: span 2;
}

.gallery-item:nth-child(5n+2) {
    grid-column: span 2;
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.3) 0%, rgba(0, 0, 0, 0.7) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(212, 175, 55, 0.4);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    transform: translateY(100%);
    transition: transform 0.4s ease;
    z-index: 2;
}

.gallery-item:hover .item-overlay {
    transform: translateY(0);
}

.item-overlay h3 {
    margin: 0 0 8px;
    font-size: 20px;
    color: #d4af37;
    font-weight: 600;
}

.item-category {
    font-size: 14px;
    color: #cccccc;
    font-style: italic;
}

.type-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #d4af37;
    border-radius: 50%;
    font-size: 20px;
    z-index: 3;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.type-badge.independiente {
    color: #d4af37;
    border-color: #d4af37;
}

.type-badge.agencia {
    color: #f4d03f;
    border-color: #f4d03f;
}

.gallery-item:hover .type-badge {
    background: rgba(212, 175, 55, 0.9);
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.6);
}

/* Modal de detalle */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 20px;
    overflow-y: auto;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border-radius: 16px;
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 0;
    box-shadow: 0 20px 60px rgba(212, 175, 55, 0.3);
    border: 2px solid #d4af37;
    overflow: hidden;
    max-height: 90%;
}

.modal-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 500px;
    overflow: hidden;
}

.modal-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(212, 175, 55, 0.9);
    border: none;
    border-radius: 50%;
    color: #000000;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    font-weight: bold;
}

.carousel-btn:hover {
    background: #f4d03f;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.6);
}

.carousel-btn.prev {
    left: 20px;
}

.carousel-btn.next {
    right: 20px;
}

.image-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.indicator.active {
    background: #d4af37;
    border-color: #f4d03f;
    transform: scale(1.2);
}

.modal-details {
    padding: 40px;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    border: none;
    border-radius: 50%;
    color: #000000;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.6);
}

.modal-title {
    font-size: 32px;
    margin: 0 0 12px;
    color: #d4af37;
    font-weight: 700;
    letter-spacing: 1px;
}

.modal-category {
    font-size: 16px;
    color: #cccccc;
    font-style: italic;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

.modal-description {
    font-size: 16px;
    line-height: 1.8;
    color: #dddddd;
    margin-bottom: 32px;
}

.rating-section {
    margin-bottom: 32px;
}

.rating-label {
    font-size: 14px;
    color: #cccccc;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.stars {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.star {
    font-size: 28px;
    color: #555555;
    cursor: pointer;
    transition: all 0.3s ease;
}

.star.active {
    color: #d4af37;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.star:hover {
    transform: scale(1.2);
}

.like-count {
    font-size: 14px;
    color: #d4af37;
    font-weight: 600;
}

.action-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.action-btn {
    flex: 1;
    min-width: 120px;
    padding: 14px 24px;
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    border: none;
    border-radius: 8px;
    color: #000000;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

.reviews-btn {
    width: 100%;
    padding: 16px;
    background: rgba(212, 175, 55, 0.1);
    border: 2px solid #d4af37;
    border-radius: 8px;
    color: #d4af37;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.reviews-btn:hover {
    background: rgba(212, 175, 55, 0.2);
    transform: translateY(-2px);
}

.welcome-popup {
      max-width: 600px;
      width: 90%;
      border-radius: 12px;
      padding: 50px 40px;
      box-shadow: 0 20px 60px rgba(212, 175, 55, 0.4), 0 10px 30px rgba(0, 0, 0, 0.8);
      text-align: center;
      animation: slideUp 0.5s ease;
      position: relative;
      background-color: black;
    }

    .welcome-icon {
      font-size: 80px;
      margin-bottom: 20px;
      animation: bounce 1s ease infinite;
    }

    
    .welcome-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.9);
      z-index: 3000;
      display: none;
      align-items: center;
      justify-content: center;
      animation: fadeIn 0.4s ease;
    }

    .welcome-overlay.active {
      display: flex;
    }

    .welcome-title {
      font-size: 42px;
      font-weight: 700;
      letter-spacing: 2px;
      margin: 0 0 15px 0;
      text-transform: uppercase;
    }

    .welcome-message {
      font-size: 20px;
      line-height: 1.6;
      opacity: 0.9;
      margin: 0 0 30px 0;
    }

    .welcome-close-btn {
      padding: 15px 40px;
      border: 2px solid;
      background: transparent;
      border-radius: 6px;
      font-size: 18px;
      font-weight: 600;
      letter-spacing: 1px;
      cursor: pointer;
      transition: all 0.3s ease;
      text-transform: uppercase;
      font-family: 'Cormorant Garamond', Georgia, serif;
    }

    .welcome-close-btn:hover {
      transform: scale(1.05);
      box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
    }

    @keyframes fadeIn {
      from {
        opacity: 0;
      }
      to {
        opacity: 1;
      }
    }
@media(max-width: 768px) {
    .main-container {
        padding: 80px 20px 40px;
    }

    .header h1 {
        font-size: 36px;
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
    }

    .type-badge {
        width: 36px;
        height: 36px;
        font-size: 16px;
        top: 8px;
        right: 8px;
    }

    .gallery-item:nth-child(3n+1),
    .gallery-item:nth-child(5n+2) {
        grid-row: span 1;
        grid-column: span 1;
    }

    .modal-content {
        grid-template-columns: 1fr;
        max-height: 95%;
    }

    .modal-image-container {
        min-height: 300px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .carousel-btn.prev {
        left: 10px;
    }

    .carousel-btn.next {
        right: 10px;
    }

    .modal-details {
        padding: 24px;
    }

    .action-buttons {
        flex-direction: column;
    }

    .action-btn {
        width: 100%;
    }
}