:root {
    --color-primary: #007eff;
    --color-primary-dark: #1748c7;
    --color-white: #FCFCFC;
    --color-black: #111111;
    --color-gray: #8f96a3;
    --color-light-bg: #ffffff;
    --color-line: #d1d6dd;
    --color-soft: #f5f8ff;

    --radius-media: 22px;
    --radius-button: 16px;
    --shadow-soft: 0 8px 30px rgba(0, 0, 0, 0.147);

    --page-max-width: 560px;

    --outer-gap: clamp(6px, 1.2vw, 12px);
    --section-gap: clamp(40px, 2vh, 50px);
    --footer-min: clamp(92px, 14vh, 128px);
    --controls-min: clamp(76px, 11vh, 110px);
}

/* RESET */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    min-width: 0;
}

html,
body {
    height: 100%;
}

body {
    font-family: "Lato", sans-serif;
    background: var(--color-white);
    color: var(--color-black);
    overflow: hidden;
}

img {
    display: block;
    max-width: 100%;
}

button,
a {
    font: inherit;
}

/* PÁGINA */
.page {
    height: 100vh;
    height: 100svh;
    height: 100dvh;
    overflow: hidden;

    display: flex;
    flex-direction: column;
}

/* CONTENEDOR GENERAL DEL CONTENIDO */
.landing-shell {
    width: 100%;
    max-width: var(--page-max-width);
    margin: 0 auto;

    flex: 1 1 auto;
    min-height: 0;

    display: flex;
    flex-direction: column;
    overflow: hidden;

    padding-top: max(var(--outer-gap), env(safe-area-inset-top));
}

/* MAIN */
.landing-main {
    flex: 1 1 auto;
    min-height: 0;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--section-gap);

    padding:
        clamp(10px, 1.8vh, 18px) clamp(14px, 4vw, 22px) clamp(8px, 1vh, 14px);
}

/* HERO */
.hero-content {
    width: 100%;
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(10px, 2.5vw, 22px);
    margin: 10px;
}

.brand-top {
    display: flex;
    justify-content: center;
    align-items: center;
}

.brand-icon {
    width: clamp(44px, 13vw, 72px);
    height: clamp(44px, 13vw, 72px);
    object-fit: contain;
    border-radius: 14px;
    flex: 0 0 auto;
}

.brand-title {
    font-size: clamp(3rem, 9vw, 4rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.03em;
}

.brand-title-dark {
    color: #111111;
}

/* ZONA CENTRAL */
.audio-card {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--section-gap);
}

/* MENSAJE */
.hero-message {
    flex: 0 0 auto;
    font-size: clamp(1.6rem, 3vw, 1.9rem);
    font-weight: 700;
    line-height: 1.12;
    text-align: center;
    color: #0b73ff;
    max-width: min(100%, 360px);
}

/* TÍTULO */
.audio-title {
    flex: 0 0 auto;
    text-align: center;
    font-size: clamp(1.5rem, 3vw, 1.7rem);
    font-weight: 700;
    color: var(--color-black);
    line-height: 1.2;
}

/* IMAGEN */
.audio-image-container {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.audio-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* PANEL */
.control-panel-container {
    width: 100%;
    flex: 0 0 auto;
    min-height: var(--controls-min);

    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: clamp(6px, 1vh, 10px);

    padding-bottom: 2px;
}

.audio-progress-track {
    width: 100%;
    height: clamp(5px, 0.8vh, 8px);
    background: var(--color-line);
    border-radius: 999px;
    overflow: hidden;
    flex: 0 0 auto;
}

.audio-progress-bar {
    width: 0%;
    height: 100%;
    background: var(--color-primary);
}

.audio-times {
    width: 100%;
    display: flex;
    justify-content: space-between;
    font-size: clamp(0.72rem, 2.1vw, 0.9rem);
    color: var(--color-gray);
}

.audio-controls-panel {
    width: 100%;
    min-height: clamp(44px, 6.5vh, 60px);

    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.audio-controls-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);

    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(30px, 4vw, 42px);
    ;

    width: max-content;
}

.audio-control-btn {
    width: clamp(34px, 9vw, 50px);
    height: clamp(34px, 9vw, 50px);
    border-radius: 999px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex: 0 0 auto;
}

.audio-control-btn-primary {
    width: auto;
    height: auto;
    box-shadow: 0 6px 18px rgba(240, 242, 246, 0.403);
}

.audio-control-icon-img {
    width: clamp(30px, 6vw, 30px);
    object-fit: contain;
}

.audio-control-icon-img-primary {
    width: clamp(40px, 12vw, 54px);
}

/* SHARE */
.share-btn {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);

    width: auto;
    height: auto;
    border: none;
    background: transparent;
    box-shadow: none;
    padding: 0;

    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
}

.button-share {
    width: clamp(40px, 11vw, 54px);
    height: auto;
    object-fit: contain;
}

/* FOOTER FULL WIDTH REAL */
.footer-full {
    width: 100%;
    flex: 0 0 auto;
    min-height: var(--footer-min);

    background: var(--color-primary);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.147);

    display: flex;
    justify-content: center;

    padding: 20px;
}

.landing-footer {
    width: 100%;
    max-width: var(--page-max-width);

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(6px, 1vh, 10px);
}

.store-buttons {
    display: flex;
    gap: clamp(8px, 2vw, 12px);
    justify-content: center;
    align-items: center;
}

.store-buttons a {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    justify-content: center;
}

.store-buttons img {
    width: 100%;
    max-width: 140px;
    height: auto;
}

.terms-link {
    display: block;
    font-size: clamp(0.76rem, 2.3vw, 0.9rem);
    color: var(--color-white);
    text-decoration: none;
    line-height: 1.2;
    text-align: center;
    padding-top: 4px;
}

/* AJUSTES POR ALTURA */
@media (max-height: 740px) {
    .landing-main {
        gap: clamp(6px, 1.1vh, 12px);
        padding-top: 10px;
    }

    /* .hero-message {
        font-size: clamp(1rem, 4vw, 2rem);
    } */

    /* .audio-title {
        font-size: clamp(1rem, 4vw, 2rem);
    } */

}

@media (max-height: 640px) {
    :root {
        --footer-min: 78px;
        --controls-min: 68px;
    }

    .store-buttons img {
        max-width: 128px;
    }

}