:root {
    --red: #ec3838;
    --black: #252a34;
    --blue: #2b6ab5;
    --white: #eaeaea;
    --title: 35px;
    --text: 19px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #ffff;
    overflow-x: hidden;
    font-family: "Red Hat Text", sans-serif;
}

a {
    text-decoration: none;
    outline: none;
}

/** Skew **/
.gris {
    border-color: transparent transparent #262b34 transparent !important;
}

.grisarriba {
    border-color: #262b34 transparent transparent transparent !important;
}

.skew-abajo {
    position: absolute;
    bottom: 0;
    left: 0;
    border-width: 0 0 10vh 100vw;
    border-style: solid;
    border-color: transparent transparent #fff transparent;
}

.skew-arriba {
    position: absolute;
    top: 0;
    left: 0;
    border-width: 10vh 100vw 0 0;
    border-style: solid;
    border-color: #fff transparent transparent transparent;
    z-index: 10;
}

/** Navegation Menu **/
#header {
    position: relative;
    width: 100%;
}

.menu {
    width: 100%;
    height: 80px;
    background: #000000a3;
    padding: 0.5rem 1rem;
}

/** Reproductor **/
.player {
    width: 700px;
    height: auto;
    outline: 0;
    border: 0;
}

.player__controls {
    display: flex;
    gap: 10px;
    width: 100%;
    align-items: center;
    outline: 0;
    border: 0;
}

.player__btn {
    cursor: pointer;
    border-radius: 50%;
    outline: 0;
    border: 0;
    transition: transform 0.2s ease;
}

.player__btn:hover {
    transform: scale(1.05);
}

.player__btn:active {
    transform: scale(0.95);
}

.player__audio {
    visibility: hidden;
}

.player__btn--medium {
    min-height: 50px;
    min-width: 50px;
}

.blue {
    cursor: pointer;
    background: url(../img/play.png);
    background-position: center;
    background-size: cover;
}

.red {
    cursor: pointer;
    background: url(../img/pause.gif);
    background-position: center;
    background-size: cover;
}

.hide {
    display: none;
}

.boxinforadio {
    width: 34%;
    height: 40px;
    background: var(--black);
    border-radius: 10px;
    color: blanchedalmond;
    overflow: hidden;
}

.horareproductor {
    width: 150px;
    height: 19px;
    font-size: 11px;
    border-radius: 0% 5px 5px 0;
    background-color: #ca3039;
}

#reloj h6 {
    font-weight: 700;
    font-size: 13px;
}

/* Reemplazo de marquee con CSS animation */
.scrolling-text {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
}

.scrolling-text span {
    display: inline-block;
    padding-left: 100%;
    font-weight: 700;
    font-size: 14px;
    animation: scroll-left 20s linear infinite;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Pausar animación al hacer hover */
.scrolling-text:hover span {
    animation-play-state: paused;
}

/** Scroll-top-btn **/
.scroll-top-btn {
    position: fixed;
    z-index: 1000;
    bottom: 80px;
    right: 10px;
    width: 3.5rem;
    height: 3.5rem;
    font-size: 2rem;
    border-radius: 50%;
    background-color: var(--red);
    color: #ffffff;
    cursor: pointer;
    outline: 0;
    border: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);

    /* Transiciones suaves */
    transition: all 0.3s ease-out,
    visibility 0.3s,
    opacity 0.3s;
}

.scroll-top-btn > span {
    font-size: 30px;
    font-weight: bold;
    color: #ffffff;
    /* Evitar que el span capture clics */
    pointer-events: none;
}

.scroll-top-btn:hover {
    background-color: var(--blue);
    transform: translateY(-3px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.4);
}

.scroll-top-btn:active {
    transform: translateY(-1px);
}

.hidden-scroll-top {
    visibility: hidden;
    opacity: 0;
    pointer-events: none; /* Evitar clics cuando está oculto */
}
/** IMG Header **/
#video_background {
    position: absolute;
    bottom: 0px;
    right: 0px;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1000;
    overflow: hidden;
    object-fit: cover;
}

.img-header {
    position: relative;
    width: 100%;
    height: 100vh;
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
}

.img-header .welcome {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.img-header .welcome .logo {
    width: 600px;
    max-width: 90%;
    height: auto;
}

.img-header .welcome hr {
    width: 400px;
    max-width: 80%;
    height: 2px;
    background: #fff;
    border: none;
    margin-top: 5px;
}

.button-danger {
    display: inline-block;
    width: 170px;
    height: 40px;
    background: var(--red);
    border-radius: 24px;
    border: none;
    outline: none;
    font-size: 22px;
    color: #fff;
    text-align: center;
    line-height: 40px;
    margin-top: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.button-danger:hover {
    background: var(--blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/** Iconos flotantes redes sociales **/
.social-float {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin-left: 0px !important;
    margin-bottom: -15px;
    left: calc(50% - 98% / 2);
    top: 35%;
    color: antiquewhite;
    position: absolute;
    z-index: 2;
}

.social-float a {
    color: var(--blue);
    text-decoration: none;
}

.social-item {
    color: var(--blue);
    width: 100%;
}

.circle-social {
    background-color: #ffffff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-left: 15px;
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.circle-social:hover {
    background-color: var(--red);
    color: #ffffff;
    transform: scale(1.1);
}

/** Plataforma de radio **/
.plataformasradio {
    width: 100%;
    color: #fff;
    background-color: var(--black);
    padding: 20px 0;
}

.plataformasradio h2 {
    padding-top: 5px;
    font-size: 15px;
    font-weight: 200;
    color: var(--white);
    text-align: center;
}

.plataformasradio .radios {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    padding: 20px 0;
}

.plataformasradio .radios img {
    transition: transform 0.3s ease;
}

.plataformasradio .radios img:hover {
    transform: scale(1.05);
}

.plataformasradio .radios .mystuner {
    color: #fff;
    width: 200px;
}

.plataformasradio .radios .listener {
    color: #fff;
    width: 250px;
}

.box-hr {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.box-hr hr {
    width: 60%;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/** Clientes **/
.clientes {
    width: 100%;
    background-color: var(--black);
    padding-top: 60px;
    padding-bottom: 38px;
}

.clientes .info-container {
    width: 80%;
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.clientes .info-container h1 {
    font-size: 50px;
    font-weight: 400;
    color: #fff;
    text-align: center;
    margin-bottom: 20px;
}

/* Carousel optimizations */
.carousel-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/** Footer **/
footer {
    width: 100%;
    height: auto;
    margin: auto;
    background: var(--black);
    padding: 30px 0px;
}

footer .footer-social-icons {
    width: 100%;
    height: auto;
    margin: auto;
}

.footer-social-icons ul {
    margin: 0px;
    padding: 0px;
    text-align: center;
    list-style: none;
}

.footer-social-icons ul li {
    display: inline-block;
    width: 50px;
    height: 50px;
    margin: 0px 10px;
    border-radius: 100%;
    background-color: var(--red);
    transition: all 0.3s ease;
}

.footer-social-icons ul li a {
    color: white;
    font-size: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.footer-social-icons ul li a i {
    line-height: 50px;
}

.footer-social-icons ul li:hover {
    background-color: var(--blue);
    transform: translateY(-3px);
}

.footer-social-icons ul li:hover a {
    color: #fff;
}

.footer-bottom {
    width: 100%;
    height: auto;
    margin: auto;
    background-color: var(--blue);
    padding: 10px;
}

.footer-bottom p {
    font-size: 14px;
    text-align: center;
    color: #fff;
    font-weight: 600;
    letter-spacing: 1px;
    margin: 0;
}

.footer-bottom p a {
    color: #fff;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.footer-bottom p a:hover {
    color: var(--black);
}

/** Media Queries **/
@media only screen and (max-width: 900px) {
    .boxinforadio {
        width: 100%;
    }

    .player {
        width: 100%;
    }
}

@media only screen and (max-width: 773px) {
    .img-header .welcome .logo {
        width: 290px;
    }

    .img-header .welcome h1 {
        font-size: 40px;
    }

    .button-danger {
        width: 130px;
        font-size: 20px;
    }

    .social-float {
        display: none;
    }

    .clientes .info-container {
        flex-direction: column;
    }
}

@media only screen and (max-width: 590px) {
    .img-header .welcome h1 {
        font-size: 30px;
    }

    .img-header .welcome hr {
        width: 100px;
    }

    .img-header .welcome p {
        font-size: 17px;
    }

    .button-danger {
        width: 100px;
        font-size: 17px;
    }

    .plataformasradio h2 {
        font-size: 10px;
    }

    .plataformasradio .radios {
        gap: 10px;
    }

    .plataformasradio .radios .mystuner {
        width: 100px;
    }

    .plataformasradio .radios .listener {
        width: 150px;
    }

    .clientes .info-container h1 {
        font-size: 30px;
    }

    .clientes .info-container p {
        font-size: 15px;
    }

    .footer-social-icons ul li {
        width: 40px;
        height: 40px;
        margin: 0px 10px;
    }

    .footer-social-icons ul li a {
        font-size: 20px;
    }

    .footer-social-icons ul li a i {
        line-height: 40px;
    }

    .footer-bottom p {
        font-size: 10px;
    }

    .scroll-top-btn {
        bottom: 80px;
        width: 2.5rem;
        height: 2.5rem;
    }

    .scrolling-text span {
        font-size: 12px;
    }
}

/* Mejoras de accesibilidad */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus visible para accesibilidad de teclado */
.player__btn:focus-visible,
.button-danger:focus-visible,
.scroll-top-btn:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 2px;
}



/* ===================================
   PWA Installation Card Styles
   =================================== */

.pwa-install-card {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(150%);
    max-width: 420px;
    width: calc(100% - 40px);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2),
    0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    padding: 24px;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: 2px solid rgba(43, 106, 181, 0.1);
    backdrop-filter: blur(10px);
}

.pwa-install-card.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.pwa-install-card.hide {
    transform: translateX(-50%) translateY(150%);
    opacity: 0;
    pointer-events: none;
}

/* Close Button */
.pwa-close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #666;
    z-index: 2;
}

.pwa-close-btn:hover {
    background: rgba(236, 56, 56, 0.1);
    color: var(--red);
    transform: rotate(90deg);
}

/* Card Content */
.pwa-card-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Icon Container */
.pwa-icon-container {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto;
}

.pwa-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 1;
    object-fit: cover;
}

/* Pulse Ring Animation */
.pwa-pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border: 3px solid var(--blue);
    border-radius: 20px;
    /*animation: pulse-ring 2s cubic-bezier(0.455, 0.03, 0.515, 0.955) infinite;*/
    opacity: 0;
}

@keyframes pulse-ring {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    50% {
        opacity: 0.3;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0;
    }
}

/* Text Content */
.pwa-text-content {
    text-align: center;
}

.pwa-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--black);
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.pwa-title i {
    color: var(--blue);
    font-size: 22px;
}

.pwa-description {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin: 0 0 16px 0;
}

/* Features */
.pwa-features {
    display: flex;
    justify-content: space-around;
    gap: 12px;
    margin-top: 16px;
}

.pwa-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
}

.pwa-feature i {
    font-size: 24px;
    color: var(--blue);
}

.pwa-feature span {
    font-size: 12px;
    color: #666;
    font-weight: 500;
    text-align: center;
}

/* Actions */
.pwa-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}

.pwa-install-btn {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--blue) 0%, #1e5a9e 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(43, 106, 181, 0.3);
    position: relative;
    overflow: hidden;
}

.pwa-install-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.pwa-install-btn:hover::before {
    width: 300px;
    height: 300px;
}

.pwa-install-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(43, 106, 181, 0.4);
}

.pwa-install-btn:active {
    transform: translateY(0);
}

.pwa-install-btn i {
    font-size: 18px;
    position: relative;
    z-index: 1;
}

.pwa-install-btn .btn-text {
    position: relative;
    z-index: 1;
}

.pwa-later-btn {
    width: 100%;
    padding: 12px 24px;
    background: transparent;
    color: #666;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pwa-later-btn:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
    color: var(--black);
}

/* iOS Instructions */
.pwa-ios-instructions {
    margin-top: 20px;
    padding: 16px;
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f4ff 100%);
    border-radius: 12px;
    border-left: 4px solid var(--blue);
}

.ios-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--black);
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ios-title i {
    font-size: 18px;
}

.ios-steps {
    margin: 0;
    padding-left: 24px;
    color: #555;
    font-size: 14px;
    line-height: 1.8;
}

.ios-steps li {
    margin-bottom: 8px;
}

.ios-steps i {
    color: var(--blue);
    font-weight: bold;
}

/* Responsive Design */
@media only screen and (max-width: 480px) {
    .pwa-install-card {
        bottom: 10px;
        width: calc(100% - 20px);
        padding: 20px;
        border-radius: 16px;
    }

    .pwa-title {
        font-size: 20px;
    }

    .pwa-description {
        font-size: 14px;
    }

    .pwa-features {
        gap: 8px;
    }

    .pwa-feature i {
        font-size: 20px;
    }

    .pwa-feature span {
        font-size: 11px;
    }

    .pwa-install-btn {
        padding: 12px 20px;
        font-size: 15px;
    }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    .pwa-install-card {
        background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
        border-color: rgba(255, 255, 255, 0.1);
    }

    .pwa-title,
    .ios-title {
        color: #ffffff;
    }

    .pwa-description,
    .pwa-feature span {
        color: #b0b0b0;
    }

    .pwa-close-btn {
        background: rgba(255, 255, 255, 0.05);
        color: #b0b0b0;
    }

    .pwa-later-btn {
        color: #b0b0b0;
        border-color: #404040;
    }

    .pwa-later-btn:hover {
        background: #333;
        border-color: #555;
        color: #ffffff;
    }

    .pwa-ios-instructions {
        background: linear-gradient(135deg, #1e3a5f 0%, #1a2f4f 100%);
    }

    .ios-steps {
        color: #b0b0b0;
    }
}

/* Animation for appearing */
@keyframes slideUpBounce {
    0% {
        transform: translateX(-50%) translateY(150%);
        opacity: 0;
    }
    60% {
        transform: translateX(-50%) translateY(-10px);
        opacity: 1;
    }
    80% {
        transform: translateX(-50%) translateY(5px);
    }
    100% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

.pwa-install-card.animate-in {
    animation: slideUpBounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

/* Loading State */
.pwa-install-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.pwa-install-btn.loading .btn-text::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-left: 8px;
    border: 2px solid #ffffff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}