/* ========== ESTILOS GENERALES ========== */

@font-face {
  font-family: 'Howdy Koala';
  src: url('fonts/Howdy\ Koala.ttf') format('truetype');
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    position: relative;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/fiesta2.png');
    
    background-position: center;
    opacity: 0.2;
    z-index: -1;
}

/* ========== BARRA DE REDES SOCIALES ========== */
.social-top {
    position: fixed;
    top: 10px;
    right: 20px;
    z-index: 1000;
    display: flex;
    gap: 15px;
}

.social-top img {
    width: 30px;
    height: 30px;
    transition: transform 0.3s;
}

.social-top img:hover {
    transform: scale(1.2);
}

/* ========== HEADER ========== */
header {
    background: linear-gradient(269deg,rgba(51, 45, 107, 1) 6%, rgba(9, 9, 121, 1) 27%, rgba(8, 31, 135, 1) 49%, rgba(0, 212, 255, 1) 100%);
    padding: 15px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 999;
    position: relative;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    max-width: 250px;
    height: auto;
    transition: transform 0.3s;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.3));
}

.logo:hover {
    transform: scale(1.05);
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
    align-items: center;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.5em;
    transition: all 0.3s;
    font-family: 'Poppins';
    padding: 5px 10px;
}

nav ul li a:hover {
    color: #ffeb3b;
    transform: scale(1.1);
}

/* Separador del menú */
nav ul li:nth-child(5) {
    font-size: 1.8em;
    color: white;
    margin: 0 5px;
}

/* ========== CONTENIDO PRINCIPAL ========== */
.products-page {
    flex: 1;
    padding: 20px 0;
}

.products-page h1 {
    font-size: 3rem;
    color: rgba(255, 64, 64, 0.9);
    margin-bottom: 30px;
    font-family: 'Lucid Bright';
    font-weight: bold;
    text-align: center;
}

.breadcrumbs {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
    font-size: 1.1rem;
}

.breadcrumbs a {
    color: rgba(255, 64, 64, 0.9);
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.product-filter-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 30px;
}

.filter-sidebar {
    width: 250px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.filter-sidebar h3 {
    color: rgba(255, 64, 64, 0.9);
    margin-bottom: 15px;
    font-family: 'Lucid Bright';
    font-weight: bold;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 1.1rem;
}

.filter-options input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: rgba(255, 64, 64, 0.9);
}

.products-container {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    position: relative;
    cursor: pointer;
}

.product:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.product img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s;
}

.product h3 {
    padding: 15px;
    margin: 0;
    font-size: 1.5rem;
    color: rgba(255, 64, 64, 0.9);
    text-align: center;
}

.product-desc {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 64, 64, 0.9);
    color: white;
    padding: 15px;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    transform: translateY(100%);
}

.product:hover .product-desc {
    opacity: 1;
    transform: translateY(0);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* ========== MODAL DE PRODUCTO ========== */
.product-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    z-index: 2000;
    overflow-y: auto;
}

.modal-container {
    background: white;
    max-width: 1200px;
    margin: 50px auto;
    padding: 30px;
    border-radius: 15px;
    display: flex;
    gap: 30px;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 30px;
    color: #333;
    cursor: pointer;
    z-index: 10;
}

.close-modal:hover {
    color: #ff4081;
}

.product-gallery {
    flex: 1;
    display: flex;
    gap: 15px;
}

.thumbnail-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 80px;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border: 2px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
}

.thumbnail.active {
    border-color: rgba(255, 64, 64, 0.9);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.main-image-container {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image {
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
    border-radius: 10px;
}

.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 5;
}

.nav-arrow:hover {
    background: rgba(255, 64, 64, 0.9);
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.product-info {
    flex: 1;
    padding: 0 20px;
}

.product-title {
    color: rgba(255, 64, 64, 0.9);
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-family: 'Howdy Koala', sans-serif;
    font-weight: bold;
}

.product-description {
    margin-bottom: 30px;
    line-height: 1.6;
}

.product-description p {
    margin-bottom: 10px;
}

.reserve-btn {
    display: inline-block;
    background: rgba(255, 64, 64, 0.9);
    color: white;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
    transition: all 0.3s;
    margin-bottom: 30px;
    text-align: center;
}

.reserve-btn:hover {
    background: rgba(255, 64, 64, 0.9);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 207, 64, 0.4);
}

.similar-products {
    margin-top: 40px;
}

.similar-products h3 {
    color: rgba(255, 64, 64, 0.9);
    font-size: 1.8rem;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(255, 207, 64, 0.3);
    padding-bottom: 10px;
}

.similar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.similar-product {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: all 0.3s;
    cursor: pointer;
}

.similar-product:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.similar-product img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.similar-product h4 {
    padding: 10px;
    margin: 0;
    font-size: 1.1rem;
    color: #333;
    text-align: center;
}

/* ========== FOOTER ========== */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: auto;
}

.key-words{
    color: #333;
}

/* ========== DISEÑO RESPONSIVO ========== */
@media (max-width: 992px) {
    .modal-container {
        flex-direction: column;
    }
    
    .product-gallery {
        flex-direction: column;
    }
    
    .thumbnail-container {
        flex-direction: row;
        width: 100%;
        order: 2;
    }
    
    .thumbnail {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 768px) {
    .product-filter-container {
        flex-direction: column;
    }
    
    .filter-sidebar {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .header-container {
        flex-direction: column;
        text-align: center;
    }
    
    nav ul {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .modal-container {
        margin: 20px;
        padding: 15px;
    }
    
    .product-title {
        font-size: 2rem;
    }
    
    .products-page h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .products-container {
        grid-template-columns: 1fr;
    }
    
    nav ul li a {
        font-size: 1.2em;
    }
    
    .logo {
        max-width: 200px;
    }
}