* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f5f0e8;
    padding: 40px;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    width: 100%;
    max-width: 1024px;
    display: flex;
    justify-content: center;
}

.card {
    background-color: #ffffff;
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Header con Logo */
.header {
    text-align: center;
    margin-bottom: 30px;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
}

.logo-img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100px;
    object-fit: contain;
}

/* Imagen Principal */
.main-image {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 25px;
    overflow: hidden;
}

.main-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Título Principal */
.main-title {
    font-family: 'thornwood-vf', sans-serif;
    font-size: 42px;
    font-weight: bold;
    color: #000;
    text-align: center;
    margin-bottom: 30px;
}

/* Sección Introductoria */
.intro-section {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    align-items: flex-start;
}

.intro-icon {
    flex-shrink: 0;
}

.intro-icon a {
    display: inline-block;
    text-decoration: none;
}

.intro-icon img {
    width: 60px;
    height: auto;
}

.intro-text {
    flex: 1;
}

.intro-text p {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    text-align: justify;
}

/* Contenedor de Etapas */
.stages-container {
    margin-bottom: 40px;
}

.stage-item {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 25px 0;
    border-bottom: 1px solid #000;
}

.stage-item:last-child {
    border-bottom: none;
}

.stage-header {
    display: flex;
    align-items: center;
    gap: 25px;
    flex: 1;
}

.stage-seal {
    width: 80px;
    height: 80px;
    object-fit: contain;
    flex-shrink: 0;
}

.stage-content {
    flex: 1;
}

.stage-title {
    font-size: 22px;
    font-weight: bold;
    color: #000;
    margin-bottom: 10px;
    line-height: 1.3;
}

.stage-route {
    font-size: 16px;
    color: #333;
    margin: 0;
}

.stage-downloads {
    display: flex;
    gap: 18px;
    align-items: center;
    flex-shrink: 0;
}

.stage-downloads a {
    display: inline-block;
    text-decoration: none;
}

.download-icon {
    width: 40px;
    height: auto;
    cursor: pointer;
    transition: transform 0.2s;
    display: block;
}

.download-icon:hover {
    transform: scale(1.1);
}

/* Footer */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 2px solid #ddd;
    margin-top: 40px;
    gap: 30px;
}

.footer-logo {
    flex: 1;
    display: flex;
    align-items: center;
}

.footer-logo:first-child {
    justify-content: flex-start;
}

.footer-logo:last-child {
    justify-content: flex-end;
}

.footer-logo img {
    max-width: 200px;
    height: auto;
    display: block;
}

.footer-logo:last-child img {
    max-width: 300px;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 0;
    }

    .container {
        max-width: 100%;
    }

    .card {
        padding: 20px;
        border-radius: 0;
        min-height: 100vh;
    }

    .logo-container {
        flex-direction: column;
        gap: 10px;
    }

    .main-title {
        font-size: 32px;
    }

    .intro-section {
        flex-direction: column;
    }

    .stage-item {
        flex-direction: row;
        align-items: flex-start;
        gap: 15px;
    }

    .stage-header {
        display: flex;
        flex-direction: column;
        flex: 1;
        gap: 10px;
    }

    .stage-header .stage-downloads {
        display: flex;
        padding-left: 0;
        align-self: flex-start;
    }

    .stage-item > .stage-downloads {
        display: none;
    }

    .stage-seal {
        width: 70px;
        height: 70px;
        flex-shrink: 0;
    }

    .stage-content {
        width: 100%;
    }

    .footer {
        flex-direction: column;
        gap: 20px;
    }
}

/* Modal del reproductor de audio */
.audio-modal {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    padding: 0;
    animation: slideUp 0.3s ease-out;
}

.audio-modal.show {
    display: block;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.audio-modal-content {
    max-width: 1024px;
    margin: 0 auto;
    position: relative;
    padding: 20px;
}

.audio-player {
    display: flex;
    align-items: center;
    gap: 15px;

}

.audio-player audio {
    flex: 1;
    min-width: 0;
    height: 70px;
    outline: none;
    margin-right: 10px;
}

.audio-close {
    background: none;
    border: none;
    font-size: 32px;
    color: #fff;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: color 0.2s;
    flex-shrink: 0;
    position: absolute;
    top: 0px;
    right: -10px;
    z-index: 10;
}

.audio-close:hover {
    color: #fff;
}

@media (max-width: 768px) {
    .audio-modal-content {
        padding: 15px;
    }

    .audio-player {
        padding: 20px;
        flex-direction: row;
        gap: 10px;
        position: relative;
        min-height: 90px;
    }

    .audio-player audio {
        width: 100%;
        flex: 1;
        height: 60px;
        margin-right: 0;
    }

    .audio-close {
        position: absolute;
        top: -15px;
        right: -15px;
        font-size: 28px;
        width: 35px;
        height: 35px;
        z-index: 10;
    }
}
