body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    height: 360vh;
    width: 100%;
    background-color: #f0f0f0;
}

main {
    width: 90%;
    margin: 10px auto;
    height: 360vh;
    padding: 1em;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.fade-in {
    opacity: 1;
    transition: opacity 0.3s ease;
}

#popup-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(104, 26, 61, 0.95);
    color: #fff; 
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 999;
    overflow: auto;
}

.popup-slide {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 80%;
    background-color: #E6566B;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.popup-slide h2 {
    font-size: 2.2vh;
    margin-bottom: 20px;
    font-weight: normal;
}

.popup-slide p {
    font-size: 16px;
    margin-bottom: 20px;
}

#popup-container button {
    background-color: #176F79;
    color: #fff;
    font-size: 2vh;
    font-weight: normal;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 20px;
    margin-left: auto; 
    margin-right: auto; 
}

#popup-container button:hover {
    background-color: #2980b9;
}

#redes-menu {
    display: none;
    position: absolute;
    top: 80px;
    left: 40px;
    background-color: rgba(65, 105, 225, 0.7);
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

#redes-menu a {
    display: block;
    margin-bottom: 7px;
    font-size: 2vh;
    color: #fff;
    text-decoration: none;
}

#menu-icon {
    position: absolute;
    top: 32px;
    left: 64px;
    cursor: pointer;
    font-size: 42px;
    color: #fff;
}

header {
    position: relative;
    background: linear-gradient(45deg, #ff6666, #ff3333, #ff6666);
    background-size: 300% 300%;
    animation: gradientShift 10s ease infinite;
    color: #fff;
    text-align: center;
    padding: 1em 0;
    width: 100%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: color 0.3s ease;
    overflow: hidden;
}

header:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    pointer-events: none;
    transition: background 0.3s ease;
}

header:hover:after {
    background: rgba(255, 255, 255, 0.1);
}

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

@keyframes dataMove {
    0% {
        opacity: 1;
        transform: translateY(100%);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(-5500%);
    }
}

.header {
    position: relative;
    overflow: hidden;
}

.data-animation {
    position: absolute;
    width: 3px;
    height: 3px;
    top: 160px;
    left: 12%;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: dataMove 5s infinite ease-in-out;
}

.data-animation:nth-child(2) {
    left: 20%;
    animation-delay: 1s;
}

.data-animation:nth-child(3) {
    left: 32%;
    animation-delay: 0.4s;
}

.data-animation:nth-child(4) {
    left: 65%;
    animation-delay: 1.2s;
}

.data-animation:nth-child(5) {
    left: 70%;
    animation-delay: 2.4s;
}

.data-animation:nth-child(6) {
    left: 80%;
    animation-delay: 1s;
}

.data-animation:nth-child(7) {
    left: 90%;
    animation-delay: 1.4s;
}

.data-animation:nth-child(8) {
    left: 24%;
    animation-delay: 0.4s;
}

.data-animation:nth-child(9) {
    left: 74%;
    animation-delay: 2s;
}

.data-animation:nth-child(10) {
    left: 5%;
    animation-delay: 0.8s;
}

.data-animation:nth-child(11) {
    left: 45%;
    animation-delay: 1.3s;
}

.data-animation:nth-child(12) {
    left: 68%;
    animation-delay: 0.4s;
}

.data-animation:nth-child(13) {
    left: 54%;
    animation-delay: 0.8s;
}

.data-animation:nth-child(14) {
    left: 47%;
    animation-delay: 1s;
}


h2.subtitulo {
    font-weight: normal;
    margin-top:;
}

nav {
    background-color: #ffe6e6;
    margin: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: background-color 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

nav ul {
    list-style: none;
    margin: 0;
    width: 80%;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 10px;
    margin-top: 10px;
}

nav ul li {
    margin: 12px;

}

nav ul li a {
    text-decoration: none;
    padding: 10px;
    background-color: #0abd37dd;
    color: #fff;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    display: block;
    text-align: center;
    width: 100%;
}

nav ul li a:hover {
    background-color: #6fb936;
}

nav li {
    margin: 20px 0; 
}

nav a {
    text-decoration: none;
    padding: 10px;
    width: 90%;
    background-color: #3cb840;
    color: #fff;
    margin: 5px;
    margin-top: 5px;
    margin-bottom: 0px;
    border-radius: 12px;
    transition: background-color 0.3s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

nav {
    animation: fadeInDown 0.5s ease;
}
#menu-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
    width: 100%;
}

.boton-container {
    margin-bottom: 20px;
    width: 80%;
    align-content: center;
}

.custom-button {
    padding: 20px;
    font-size: 20px;
    height: 5%;
    border: none;
    border-radius: 7px;
    background-color: #007bff;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    text-align: center;
}

.canales-container {
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
    margin-top: 40px;
}

.titulo-seccion {
    color: #fff;
    margin-bottom: 20px;
    margin-top: 20px;
    font-size: 3vh;
}

.tarjeta-canal {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

.tarjeta-canal h3 {
    margin-bottom: 10px;
    color: #333;
}

.tarjeta-canal p {
    color: #666;
    margin-bottom: 15px;
}

.custom-button:hover {
    background-color: seagreen;
}

.crypto-tarjeta {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.crypto-titulo {
    color: #343a40;
    font-size: 26px;
    margin-bottom: 15px;
}

.crypto-tarjeta-canal {
    border-bottom: 1px solid #ced4da;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.crypto-titulo-canal {
    color: #343a40;
    font-size: 22px;
    margin-bottom: 10px;
}

.crypto-descripcion {
    color: #6c757d;
    font-size: 18px;
    line-height: 1.5;
}

.crypto-button {
    background-color: #007bff;
    color: #ffffff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.crypto-button:hover {
    background-color: #0056b3;
}

#destacados-container {
    max-width: 100%;
    width: 100%;
    height: 50vh;
    margin: 20px auto;
    margin-top: 10px;
    margin-bottom: 230px;
}

.destacado {
    background-color: #ff6666d0;
    color: #fff;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.destacado h3 {
    margin-top: 0 auto;
    font-size: 2.4vh;
    margin-left: 10px;
}

.destacado p {
    margin-bottom: 10px;
    margin-left: 10px;
    font-size: 1.8vh;
    padding: 5px;
}

.destacado a {
    height: 15vh;
    display: inline-block;
    padding: 10px 10px;
    background-color: #ffe6e6; 
    color: #ff6666; 
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.destacado a:hover {
    background-color: #ecf0f1;
}

.button-destacado {
    display: inline-block;
    height: 2vh;
    padding: 10px 15px;
    background-color: #fff;
    color: #2ecc71; 
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.button-destacado:hover {
    background-color: #ecf0f1;
}

footer {
    background: linear-gradient(to right, #ff6666, #ff3333);
    color: #fff;
    text-align: center;
    padding: 0.5em 0;
    position: fixed;
    bottom: 0;
    width: 100%;
}

.button {
    display: inline-block;
    margin-top: 0px;
    margin-bottom: 10px;
    padding: 10px 15px;
    background-color: #ff6666cd; 
    color: #fff;
    
    text-decoration: none;
    border-radius: 12px;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: #2980b9;
}

#carousel-container {
    width: 100%;
    max-width: 100%;
    
    overflow: hidden;
    position: relative;
    margin: 0 auto;
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
  }
  
  .carousel-item {
    flex: 1 0 100%;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    position: relative;
    display: flex;
    align-items: flex-end;
    color: white;
  }
  
  .carousel-item .card {
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
    border-radius: 0 0 10px 10px;
  }
  
  .button {
    display: inline-block;
    padding: 10px 15px;
    background-color: #007BFF;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 10px;
    font-weight: bold;
  }
  
  .button:hover {
    background-color: #0056b3;
  }
  
.card {
    background-color: #e41d520c;
    padding: 40px;
    height: 40vh;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.card h3 {
    color: #ffffff;
    font-size: 2.8vh;
}

.card p {
    color: #ffffff;
    margin-top: 5vh;
    font-size: 2vh;
}

.card a {
    display: inline-block;
    margin-top: 5vh;
    padding: 10px 40px;
    font-size: 1.6vh;
    background-color: #ff6666f7;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.card a:hover {
    background-color: #2980b9;
}

#categorias-container {
    margin: 10px auto;
    text-align: center;
    width: 92%;
}

.botones-categorias {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.boton-categoria {
    width: 50%; 
    height: 50px; 
    padding: 10px 10px; 
    background-color: rgba(255, 102, 102, 0.8);
    color: #fff;
    border: none;
    font-size: 1.8vh; 
    border-radius: 5px;
    margin: 0 5px; 
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.boton-categoria:hover {
    background-color: #3498db;
}

.custom-button.custom-button-crypto,
.custom-button.custom-button-bienes {
    transition: background-color 0.3s ease;
}

.custom-button.custom-button-crypto:hover {
    background-color: #ffcc66; 
}

.custom-button.custom-button-bienes:hover {
    background-color: limegreen;
}

.opciones-categoria {
    display: none;
    position: absolute;
    flex-direction: column;
    font-size: 1.5vh; 
    align-items: center;
    width: 20%;
    padding: 5px;
    margin: 0 auto;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    background-color: rgba(240, 128, 128, 0.806);
    border-radius: 5px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.opciones-categoria a {
    display: block;
    align-items: center;
    width: 100%;
    padding: 5px;
    margin: 5px;
    color: whitesmoke;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.opciones-categoria a:hover {
    background-color: orangered;
}

.opciones-categoria.expandido {
    display: flex !important;
    opacity: 1;
}

.fade-in {
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tarjeta {
    background-color: rgba(0, 0, 122, 0.1);
    padding: 40px;
    margin-top: 20px;
    height: 6.5%;
    margin: 0 auto;
    width: 90%;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

.titulo-seccion {
    margin-bottom: 20px;
    margin-top: 10px;
    font-size: 2.5vh;
    color: black;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.botones-monitorizaciones {
    display: flex;
    margin-top: 40px;
    justify-content: center;
    gap: 10px;
}

.boton-monitorizacion {
    padding: 5px 20px;
    font-size: 1.8vh;
    border: none;
    background-color: transparent;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    border-radius: 5px;
    width: 40%;
    height: 8vh;
    background-image: linear-gradient(to right, #ff5722, #ff9800);
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.boton-monitorizacion:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.boton-monitorizacion.animated {
    animation: pulse 1s infinite alternate ease-in-out;
}


@media (max-width: 768px) {
    nav {
        flex-direction: column;
        align-items: center;
    }

    nav ul {
        margin: 10px 10px;
        margin-left: -15px;
        margin-top: 10px;
        display: flex;
        justify-content: center;
        padding: 0;
    }

    nav li {
        margin: 10px 10px;
        text-align: center;
    }

    #menu-container {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin-top: 10px;
        width: 100%;
}

@media (max-width: 480px) {
    
    nav {
        flex-direction: column; 
        align-items: center;
        padding: 10px;
    }

    nav ul {
        padding: 5px;
        margin-top: 5px;
    }

    nav li {
        width: 80vw;
        padding: 2px 0; 
        margin: 5px 0; 
        font-size: 2vh; 
        text-align: center; 
    }

    #popup-container button {
        width: 80%; 
    }

    #redes-menu {
        display: none;
        position: absolute;
        top: 40px;
        left: 17vw;
        text-align: center;
        width: 70vw;
        background-color: rgba(355, 355, 355, 0.7);
        padding: 10px;
        border-radius: 5px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);

    }

    #redes-menu a {
        display: block;
        margin-bottom: 7px;
        font-size: 2.2vh;
        color: black;
        text-decoration: none;
    }

    #menu-icon {
        position: absolute;
        top: 3px;
        left: 45vw;
        cursor: pointer;
        font-size: 32px;
        color: #fff;
    }

    body {
        font-family: 'Arial', sans-serif;
        margin: 0;
        padding: 0;
        height: 400vh;
        width: 100%;
        background-color: #f0f0f0;
    }

    .tarjeta {
        background-color: rgba(0, 0, 122, 0.1);
        padding: 40px;
        height: 6%;
        margin: 0 auto;
        width: 80%;
        border-radius: 10px;
        box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    }

    #destacados-container {
        max-width: 100%;
        width: 100%;
        height: 50vh;
        margin: 20px auto;
        margin-top: 10px;
        margin-bottom: 230px;
    }

    main {
        width: 90%;
        margin: 10px auto;
        height: 375vh;
        padding: 1em;
        background-color: #fff;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    }

    .custom-button {
        padding: 15px;
        font-size: 1.8vh;
        height: 5%;
        border: none;
        border-radius: 7px;
        background-color: #007bff;
        color: #fff;
        cursor: pointer;
        transition: background-color 0.3s;
        text-decoration: none;
        display: block;
        margin-bottom: 10px;
        text-align: center;
    }

    .botones-monitorizaciones {
        display: flex;
        margin-top: 40px;
        justify-content: center;
        gap: 5px;
        width: 100%;
    }

    .boton-monitorizacion {
        padding: 5px 10px;
        font-size: 1.5vh;
        border: none;
        background-color: transparent;
        color: #fff;
        cursor: pointer;
        transition: background-color 0.3s ease, color 0.3s ease;
        border-radius: 5px;
        width: 25%;
        height: 7.5vh;
        background-image: linear-gradient(to right, #ff5722, #ff9800);
        box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    }
}