* {
    box-sizing: border-box;
}

/* Añadido: Variables CSS para mayor coherencia y personalización */
:root {
    --primary-font: 'Inter', sans-serif;
    --text-color: #fff;
    --gradient-1: #6a0dad;
    --gradient-2: #4b0082;
    --gradient-3: #000000;
    --nav-bg-scrolled: rgba(12, 0, 22, 0.95);
    --button-bg: #fdcf08;
    --button-text: #1d1b20;
    --transition-speed: 0.3s;
    --border-radius: 6px;
    --blur-filter: blur(5px);
    --spacing-small: 0.5rem;
    --spacing-medium: 1rem;
    --spacing-large: 2rem;
}

body {
    margin: 0;
    font-family: var(--primary-font);
    color: var(--text-color);
    background: linear-gradient(270deg, var(--gradient-1), var(--gradient-2), var(--gradient-3));
    background-size: 600% 600%;
    overflow-x: hidden;
    max-width: 100vw;
    width: 100%;
    position: relative;
    left: 0;
    right: 0;
}

@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Añadido: Definición de la animación fadeInUp */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.main-nav {
    background: transparent;
    padding: 0.5rem clamp(1rem, 5vw, 4rem);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    max-width: 100vw;
    z-index: 1000;
    transition: background-color 0.3s ease;
    left: 0;
    right: 0;
}

.main-nav .logo {
    width: clamp(50px, 12vw, 1500px);
    height: auto;
    padding: 1vw;
}

.main-nav .menu-icon {
    display: none;
    width: 30px;
    height: 30px;
    background: url('images/menu-icon.png') no-repeat center center;
    background-size: contain;
    cursor: pointer;
    position: absolute;
    right: 7vw;
    top: 7vw;
}

/* Efecto fondo nav-bar */
.main-nav.scrolled {
    background: rgba(12, 0, 22, 0.95);
    transition: background-color 0.3s ease;
}

.button-yellow {
    padding: 12px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    text-align: center;
    font-family: var(--primary-font);
    border: none;
    cursor: pointer;
    background-color: var(--button-bg);
    color: var(--button-text);
    border-radius: var(--border-radius);
    font-weight: bold;
    font-size: clamp(0.875rem, 2rem, 1rem);
}
.main-nav .button-yellow.nav-button {
    width: 10vw;
    height: auto;
    border-radius: 50px;
    font-size: 1.5vw;
}

.inspiration {
    text-align: center;
    margin: 0 auto;
    backdrop-filter: var(--blur-filter);
}

.inspiration h1 {
    font-size: clamp(2rem, 7vw, 10rem);
    font-weight: 700;
    margin-bottom: var(--spacing-medium);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out;
    color: #fff;  /* Color de texto fijo */
}

.inspiration p {
    font-size: clamp(0.7rem, 1.8vw, 3rem);
    line-height: 1.6;
    text-align: center;
    margin: 0 5vw;
}

.inspiration h2 {
    font-size: clamp(1.8rem, 5vw, 7.5rem);
    font-weight: 600;
    color: #fff;
}

.inspiration h3 {
    font-size: clamp(1.5rem, 4vw, 6rem);
    font-weight: 500;
    color: #fff;
}

.inspiration .origin {
    padding: 10vh 2vw;
    color: white;
    transition: all 0.5s ease-in-out;
    position: relative;
    overflow: hidden;
}

.accordion-content {
    max-height: 0;
    opacity: 0;
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, padding 0.3s ease;
}

.accordion-content.active {
    max-height: 1000px; /* Adjusted to allow enough space for expanded content */
    opacity: 1;
    margin-bottom: 1rem; /* Added margin to ensure space between content and next title */
}

h3.active-header {
    color: var(--button-bg); /* Yellow color like the buttons */
}

.logo,
.inspiration .obsolete-model h3,  
.inspiration .digital-abundance {
    cursor: pointer;
}

.inspiration .music-change {
    padding: 2rem 2vw;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/knobs.jpg') no-repeat center/cover;
    background-attachment: fixed;
    overflow: hidden;
    transition: background 0.5s ease-in-out;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.obsolete-model {
    width: 100vw;
    height: 100vw;
    background: url('images/discoexp5.1.jpg') no-repeat center;
    background-size: cover; /* Cambiado para ajustar el background al alto de la sección */
    overflow: hidden;
    transition: background 0.5s ease-in-out;
    color: #000; 
    text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.7); 
    padding-top: 5%;
}

.inspiration .obsolete-model h1,
.inspiration .obsolete-model h2,
.inspiration .obsolete-model h3 {
    color: #1d1b20;
    text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.7);
    padding-top: 3%;
}

.listen-image {
    display: flex;
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url('images/listen.jpg') no-repeat center/cover;
    background-attachment: fixed;
    background-size: 120%; /* Adjusted to make the image smaller */
}

.listen-image h1 {
    padding: 10rem 0;
}

.community {
    padding: 10rem 0;
}

.community img {
    width: 30%;
    height: auto;
    margin-bottom: 1.5rem;
}

.community p {
    font-size: 2.5vw;
    padding-left: 1%; /* ajuste centrado por engaño visual */
}

.integral-solution {
    padding: 7rem 0;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/3302183.jpg') no-repeat center/cover;
    overflow: hidden;
    transition: background 0.5s ease-in-out;
}

.music-change p {
    padding-bottom: 5%;
}

/* Media query para pantallas medianas y menores */
@media (max-width: 768px) {
    body {
        font-size: 14px; /* Ajuste base */
    }
    .main-nav {
        padding: 0.5rem 1rem;
    }
    .main-nav .logo {
        width: 120px;
    }
    .main-nav .button-yellow.nav-button {
        width: 20vw;
        font-size: 3vw;
    }
    .obsolete-model {
        height: auto; /* Ajuste para que el contenido siempre sea visible */
        background-size: cover; /* Cambiado para ajustar el background al alto de la sección */
        padding-bottom: 30%;
    }
}

@media (max-width: 400px) {
    .obsolete-model {
        padding-bottom: 45%;
    }
}

@media (min-width: 1440px) {
    .listen-image {
        background-size: 130%; /* Ajuste para que la imagen no se repita */
        padding: 20%;
    }
}