/* Estilos generales */
:root {
    --primary-color: #ff6b6b;
    --primary-dark: #ff5252;
    --secondary-color: #333;
    --light-color: #f7f5f2;
    --dark-color: #D3CDC6;
    --text-color: #333;
    --text-light: #666;
    --white: #fff;
    --black: #000;
    --shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--light-color);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Tipografía */
h1, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    line-height: 1.2;
}
h2 {
  font-family: "Dancing Script", cursive;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
}

h1 {
    font-family: "Monoton", sans-serif;
    font-weight: 400;
    text-shadow: 1px 1px 2px rgba(255, 107, 107, 0.3);
}
.w3-bar .w3-bar-item:hover {
    background-color: #ff6b6b !important;
  }
.section-title {
    font-size: 4rem;
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
    color: var(--secondary-color);
}

.section-title:after {
    content: "";
    display: block;
    width: 100px;
    height: 4px;
    background: var(--primary-color);
    margin: 15px auto;
}


/* Evitar scroll del body cuando el menú está abierto */
body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}
/* Hero Section */
.hero-section {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url("Images/FondoEstudioPC.jpg");
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding-top: 60px;
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: 7rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    animation: fadeIn 2s;
}

.hero-subtitle {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeIn 2.5s;
}

.hero-button {
    padding: 15px 30px;
    font-size: 1.2rem;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50px;
    transition: var(--transition);
    animation: fadeIn 3s;
}

.hero-button:hover {
    background-color: var(--primary-dark);
    transform: scale(1.05);
}

/* Secciones */
.section {
    padding: 100px 0;
    background-color: var(--light-color);
}

.section.dark {
    background-color: var(--dark-color);
}

.section-header {
    max-width: 500px;
    margin: 0 auto 40px;
    border-radius: 8px;
    text-align: center;
	height:auto; 
}

/* About Section */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
}

.about-content p {
    margin-bottom: 1.5rem;
}

.about-content strong {
    color: var(--primary-color);
}

/* Cards */
.card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px 0;
}

.card-wrapper {
    width: calc(25% - 20px);
    padding: 0 10px;
    box-sizing: border-box;
    margin-bottom: 20px;
}

.card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #eee;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.card-image-container {
    width: 100%;
    padding-top: 100%;
    position: relative;
    overflow: hidden;
}

.card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-image {
    transform: scale(1.05);
}

.card-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 0.85rem;
}

.card-genre {
    display: inline-block;
    padding: 3px 10px;
    background-color: #ffebee;
    color: var(--primary-color);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: bold;
}

.card-button {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    border-radius: 5px;
    transition: var(--transition);
    margin-bottom: 10px;
    font-size: 0.9rem;
    font-weight: 500;
}

.card-button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.card-button i {
    margin-right: 8px;
}

/* Contador de clicks */
.click-counter {
    display: block;
    font-size: 0.7rem;
    margin-top: 5px;
    color: #ddd;
    font-style: italic;
}

/* Buscador */
.search-box {
    max-width: 800px;
    margin: 0 auto 40px;
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.search-input {
    flex: 1;
    min-width: 200px;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.search-select {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    background: var(--white);
}

.search-button, .reset-button {
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1rem;
    transition: var(--transition);
}

.search-button {
    background-color: var(--primary-color);
    color: var(--white);
}

.search-button:hover {
    background-color: var(--primary-dark);
}

.reset-button {
    background-color: var(--secondary-color);
    color: var(--white);
}

.reset-button:hover {
    background-color: #555;
}

.search-results-info {
    text-align: center;
    margin-bottom: 20px;
    font-style: italic;
    color: var(--text-light);
}

.no-results {
    text-align: center;
    padding: 40px;
    width: 100%;
}

/* Paginación */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    padding-bottom: 20px;
    flex-wrap: wrap;
}

.pagination a {
    color: var(--text-color);
    padding: 8px 16px;
    border: 1px solid #ddd;
    margin: 0 4px;
    border-radius: 5px;
    transition: var(--transition);
}

.pagination a.active {
    background-color: var(--primary-color);
    color: var(--white);
    border: 1px solid var(--primary-color);
}

.pagination a:hover:not(.active) {
    background-color: #ddd;
}

.pagination-dots {
    padding: 8px 16px;
}

/* Footer */
.footer {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 40px 0;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-link {
    color: var(--white);
    margin: 0 15px;
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--primary-color);
}

.copyright {
    font-size: 0.9rem;
    color: #aaa;
}

/* Modales */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    overflow: auto;
}

.modal-content {
    background-color: var(--white);
    margin: 10% auto;
    padding: 30px;
    border-radius: 10px;
    width: 80%;
    max-width: 600px;
    position: relative;
    animation: fadeIn 0.3s;
}

.close {
    position: absolute;
    right: 20px;
    top: 10px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: var(--text-color);
}

.player-container {
    margin-top: 20px;
    text-align: center;
}

.player-actions {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.player-action-btn {
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 5px;
    transition: var(--transition);
}

.player-action-btn:hover {
    background-color: var(--primary-dark);
}

.download-info {
    margin: 20px 0;
    text-align: center;
}

.download-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}


/* Responsive */
@media (max-width: 1200px) {
	.hero-title {
        font-size: 6rem;
    }
    .card-wrapper {
        width: calc(33.333% - 20px);
    }
}

@media (max-width: 992px) {
    .section {
        padding: 80px 0;
    }
    
    .hero-title {
        font-size: 5rem;
    }
    
    .hero-subtitle {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .card-wrapper {
        width: calc(50% - 20px);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .about-content {
        font-size: 1rem;
    }
    
    .search-form {
        flex-direction: column;
    }
    
    .search-input, .search-select, .search-button, .reset-button {
        width: 100%;
    }
    
    .modal-content {
        width: 90%;
        margin: 20% auto;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .card-wrapper {
        width: 100%;
        padding: 0;
    }
    
    .footer-links {
        flex-direction: column;
    }
    
    .footer-link {
        margin: 5px 0;
    }
}