/* navegador */
nav button {
    background-color: transparent;
    border: none;
    padding: 10px;
    margin: 10px;

}

nav button:hover {
    transform: scale(1.5);
    cursor: pointer;
}

nav:hover> :not(:hover) {
    opacity: .7;
    filter: blur(3px);
}

iframe {
    border: none;

}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.781);
    width: min-content;
    border-radius: 20px;
    padding: 5px;
    margin: 5px;


}

nav button i {

    color: white
}

.sectionNav {
    display: flex;
    justify-content: center;
}

/* fin navegador */
/* boton regresar inicio */

.regresar {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    margin-bottom: 10px;
    transition: background-color 0.3s ease;
}

.regresar:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.headerNav {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

/* fondos imagenes */
#backgroundIMG {
    position: fixed;
    inset: 0;
    z-index: -1;

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    opacity: 1;

    transition: opacity 1.8s ease-in-out, filter 1.8s ease-out;
}
#background {
    position: fixed;
    inset: 0;
    z-index: -1;

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    opacity: 1;

    transition: opacity 1.8s ease-in-out, filter 1.8s ease-out;
}


#backgroundIMG.fade {
    opacity: 0;
    filter: brightness(40%) blur(4px);
}

#background.fade {
    opacity: 0;
    filter: brightness(40%) blur(4px);
}

#backgroundIMG::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;

    background: radial-gradient(circle,
            rgba(0, 0, 0, 0) 40%,
            rgba(0, 0, 0, 0.55) 100%);
}

#background::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;

    background: radial-gradient(circle,
            rgba(0, 0, 0, 0) 40%,
            rgba(0, 0, 0, 0.55) 100%);
}

/* fin fondos imagenes */
/* contenedores generales */
.contenedorUrl {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 300px;
    flex-direction: column;
}

.contenedor {
    display: flex;
    justify-content: center;
    align-items: center;

    flex-direction: column;
}

.contenedor-reloj {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    gap: 15px;
}

.content {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    flex-direction: column;
}

.content #reloj,
#password,
#buscador {
    background-color: rgba(150, 149, 149, 0.486);

    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.342);
    padding: 20px;
    margin: 10px;
    align-items: center;
    text-align: center;

}

/* contenedores generales */

/* carrusel */
.view {
    display: none;
}

.view.show {
    display: block;
}


body:not(:has(:target)) #buscadorSec {

    display: block;
}

.card-carousel {
    position: relative;
    width: 750px;
    height: 650px;
    margin: auto;
    margin-top: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cards {
    position: relative;
    width: 100%;
    height: 100%;
    perspective: 1200px;
}

.card {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 25px;
    overflow: hidden;
    background: #000000e8;
    transform-style: preserve-3d;
    transition: transform .8s ease, opacity .8s ease;
}

.card iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.nav {
    position: absolute;
    z-index: 20;
    background: rgba(136, 131, 131, 0.8);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 25px;
    margin: 15px;
}

.prev {
    left: -70px;
}

.next {
    right: -70px;
}

.card.center {
    transform: translateZ(160px);
    opacity: 1;
    z-index: 4;
}

.card.left {
    transform: translateX(-180px) rotateY(28deg) translateZ(-60px) scale(.88);
    opacity: 0.35;
    z-index: 2;
}

.card.right {
    transform: translateX(180px) rotateY(-28deg) translateZ(-60px) scale(.88);
    opacity: 0.35;
    z-index: 2;
}

.card.far-left,
.card.far-right {
    opacity: 0;
    transform: scale(.7) translateZ(-200px);
    z-index: 1;
}

.contenedor-principal {
    display: flex;
    justify-content: center;
    flex-direction: column;
}



/* fin carrusel */
/* tarjetas reloj clima generador contraseñas */
.horalocal,
.generadorContraseñas,
.climacard,
.contenedorUrl {
    width: 100%;
    max-width: 600px;
    padding: 25px;
    background: rgba(31, 30, 30, 0.75);
    border: 2px solid #11191b;
    border-radius: 15px;
    box-shadow: 0 0 20px rgb(82, 53, 53);
    color: white;
    text-align: center;
    backdrop-filter: blur(8px);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.horalocal h1 {
    margin-top: 0;
    font-size: 26px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #ffffff;
}

/*fin tarjetas reloj clima generador contraseñas */
/* Estilos reloj */
#reloj {
    font-size: 45px;
    font-weight: bold;
    margin: 10px 0;
    letter-spacing: 4px;

    font-family: 'Courier New', monospace;

}

#fecha {
    margin-top: 8px;
    font-size: 20px;
    letter-spacing: 1px;
    opacity: 0.9;
}

#mensaje {
    margin-top: 15px;
    font-size: 22px;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 0 0 8px #000000;
}

#reloj,
#fecha,
#mensaje {
    transition: all 0.3s ease-in-out;
}

.current {
    width: 90%;    
    background: rgba(0, 0, 0, 0.26);
    
    
    border-radius: 25px;
    color: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

}

/* Fin estilos reloj */
/* Estilos clima */
#clima {
    display: flex;
    justify-content: center;
    align-items: center;
}

.weather-header h2 {
    margin: 0;
    font-size: 2rem;
}

.weather-header p {
    margin: 2px 0 10px;
    opacity: 0.8;
    font-size: 1.2rem;
}

.weather-body {
    display: flex;
    align-items: center;
    justify-content: space-between;

}

.icono-clima {
    width: 100px;
    height: 100px;
}

.weather-temp {
    text-align: center;
}

.temp-num {
    font-size: 2.8rem;
    font-weight: bold;
}

.weather-extra {
    text-align: right;

}

.weather-extra p {
    margin: 2px 0;
    font-size: 1.2rem;
    opacity: 0.9;
}

.forecast {
    margin-top: 15px;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(70px, 1fr);
    gap: 10px;
    overflow-x: auto;
}

.hour-card {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 10px;
    text-align: center;
}

/* Fin clima */
/* Estilos generador contraseñas */
.generadorContraseñas h1 {
    margin-top: 0;
    font-size: 26px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #ffffff;
}

.generadorContraseñas input[type="number"] {
    width: 60px;
    padding: 8px;
    margin: 10px 0;
    border: none;
    border-radius: 5px;
    font-size: 16px;
}

.btn-dark-animated {
    padding: 12px 25px;
    color: #fff;
    font-size: 18px;
    border: none;
    border-radius: 10px;
    cursor: pointer;

    background: linear-gradient(90deg, #0d0d0d, #1c1c1c, #3a3a3a);
    background-size: 300% 300%;
    animation: darkMove 4s ease-in-out infinite;

    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    transition: transform .2s;
}

.btn-dark-animated:hover {
    transform: scale(1.08);
}

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

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}


.generadorContraseñas .resultado {
    margin-top: 15px;
    font-size: 20px;
    word-break: break-all;
    background: rgba(255, 255, 255, 0.15);
    padding: 10px;
    border-radius: 10px;
}

.generadorContraseñas p {
    font-size: px;
}

/* Fin estilos generador contraseñas */
/*Estilos buscador url*/
.contenedorUrl h1 {
    margin-top: 0;
    font-size: 26px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #ffffff;
}

.contenedorUrl input[type="text"] {
    width: 80%;
    padding: 8px;
    margin: 10px 0;
    border: none;
    border-radius: 5px;
    font-size: 16px;
}
.inputCont{
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}
.boton-URL {
    width: max-content;
    padding: 12px 24px;
    font-size: 18px;
    color: #fff;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
    background: linear-gradient(45deg, #ff0080, #ff8c00, #40e0d0, #8a2be2);
    background-size: 300% 300%;
    animation: gradientAnim 4s ease infinite;
    transition: transform .2s;
}

.boton-URL:hover {
    transform: scale(1.05);
}

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

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.contenedorUrl .resultadoUrl {
    margin-top: 15px;
    font-size: 20px;
    word-break: break-all;
    background: rgba(255, 255, 255, 0.15);
    padding: 10px;
    border-radius: 10px;
}

.contenedorUrl p {
    font-size: px;
}

#link-añadido li {
    color: #00ff00;
    font-weight: bold;
    margin-top: 10px;
    list-style: none;
    background-color: #333;
    text-align: left;
    width: max-content;
    margin: 10px;
    padding: 10px;
    border-radius: 8px;

}

#link-añadido a {
    text-decoration: none;
    color: #ffffff;
    padding-right: 20px;
}

#link-añadido button {
    background-color: #ff4d4d2a;
    border: none;
    color: white;
    padding: 5px 10px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    margin-left: 10px;
    border-radius: 5px;
    cursor: pointer;
}

#link-añadido button:hover {
    background-color: #ff1a1a;
}

/*Fin estilos buscador url*/
/* estilos boton x */
#back-container {
    position: fixed;
    top: 18px;
    left: 18px;
    z-index: 9999;
    pointer-events: auto;
}

#back-btn {
    height: 44px;
    width: 44px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-size: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, #0f0f10, #1b1b1f);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6), inset 0 -2px 0 rgba(255, 255, 255, 0.02);
    transition: transform .18s ease, box-shadow .18s ease;
    backdrop-filter: blur(6px);
}

/* animación color oscuro */
@keyframes darkShift {
    0% {
        background: linear-gradient(135deg, #0f0f10, #1b1b1f);
    }

    50% {
        background: linear-gradient(135deg, #0b0b0c, #242428);
    }

    100% {
        background: linear-gradient(135deg, #0f0f10, #1b1b1f);
    }
}

#back-btn {
    animation: darkShift 6s ease-in-out infinite;
}

#back-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
}


#back-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

#back-btn {
    background: linear-gradient(135deg, #111, #333, #111);
    border: none;
    padding: 12px 18px;
    border-radius: 50%;
    font-size: 18px;
    color: white;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 0, 0, .6);
    transition: transform .2s ease, box-shadow .2s ease;
    animation: glow 3s infinite;
}

#back-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 14px rgba(0, 0, 0, .9);
}

@keyframes glow {
    0% {
        box-shadow: 0 0 8px rgba(50, 50, 50, 0.4);
    }

    50% {
        box-shadow: 0 0 18px rgba(255, 255, 255, 0.2);
    }

    100% {
        box-shadow: 0 0 8px rgba(50, 50, 50, 0.4);
    }
}

/* responsive */

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

body {
    font-family: Arial, Helvetica, sans-serif;
    color: white;
    overflow-x: hidden;
}

iframe {
    border: none;
}

/* 
FONDO
 */
#backgroundIMG {
    position: fixed;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: -1;
    filter: brightness(0.8);
}
#background {
    position: fixed;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: -1;
    filter: brightness(0.8);
}
/* 
contenedor principal responsive
 */
.contenedor-principal {
    width: 100%;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contenedor-principal>iframe {
    width: min(95%, 900px);
    height: 80px;
    margin-bottom: 20px;
}

/* 
carrusel responsive
 */

.card-carousel {
    width: min(90%, 900px);
    margin: 20px auto;
    position: relative;
    padding: 20px 40px;
    box-sizing: border-box;
    overflow: visible !important;
}

.cards {
    display: flex;
    width: 100%;
    transition: transform 0.4s ease;

}

.card {
    min-width: 100%;
    background: rgba(0, 0, 0, 0.40);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;


}

.card iframe {
    width: 100%;
    height: auto;
    min-height: 420px;

}

/* flechas carrusel */
.nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;

    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 12px;
    font-size: 25px;
    cursor: pointer;
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.25s ease;
}

.nav:hover {
    background: rgba(255, 255, 255, 0.25);
}

.prev {
    left: 5px;
}

.next {
    right: 5px;
}

/* tarjetas resposive*/

.horalocal,
.generadorContraseñas,

.contenedorUrl {
    
    width: 100%;
    max-width: 95%;
    margin: 20px auto;
    position: fixed;
}

.climacard {
    width: 100%;
    max-width: 95%;
    position: fixed;
}

#reloj {
    font-size: 40px;
    font-weight: bold;
}

.weather-body {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* 
boton regresar responsive
*/
#back-btn {
    position: fixed;
    top: 20px;
    left: 20px;

    width: 45px;
    height: 45px;
    font-size: 18px;

    border: none;
    border-radius: 50%;
    cursor: pointer;

    background: rgba(0, 0, 0, 0.5);
    color: white;
    backdrop-filter: blur(5px);
    z-index: 100;
}




/*  480px — MÓVIL*/
@media (max-width: 480px) {

    .card-carousel {
        padding: 15px 35px;
    }

    .nav {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .card iframe {
        min-height: 380px;
    }

    #back-btn {
        width: 38px;
        height: 38px;
        font-size: 15px;
    }
}

/* 768px — TABLET */
@media (max-width: 768px) {

    .card-carousel {
        width: 95%;
        padding: 15px 45px;
    }

    .card iframe {
        min-height: 430px;
    }
}

/* pantalla grande  1200px+ */
@media (min-width: 1200px) {

    .card-carousel {
        width: 1000px;
        padding: 20px 60px;
    }

    .nav {
        width: 55px;
        height: 55px;
        font-size: 30px;
    }

    .card iframe {
        min-height: 500px;

    }
}

/*responsive para clima independiente*/

@media (max-width: 480px) {

    /* contenedor general clima */
    nav {
        margin-bottom: 10%;
    }

    .climacard {
        width: 95% !important;
        max-width: 360px;
        padding: 5px !important;
        border-radius: 18px;
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;


    }

    div.climacard {
        padding: 50px;
        margin: auto;
    }

    /* encabezado */
    .weather-header h2 {
        font-size: 1.4rem !important;
    }

    .weather-header p {
        font-size: 0.9rem !important;
    }

    /* icono principal */
    .icono-clima {
        width: 70px !important;
        height: 70px !important;
    }

    /* temperatura grande */
    .temp-num {
        font-size: 2.4rem !important;
    }

    /* cuerpo clima reorganizado */
    .weather-body {
        flex-direction: column !important;
        text-align: center;
        gap: 10px !important;
    }

    /* info extra */
    .weather-extra p {
        font-size: 0.9rem !important;
        text-align: center !important;
    }

    /* pronóstico por horas */
    .forecast {
        margin-top: 15px;
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 10px;
        scrollbar-width: none;
    }

    .forecast::-webkit-scrollbar {
        display: none;
    }

    .hour-card {
        min-width: 70px !important;
        padding: 8px !important;
        border-radius: 12px;
    }

    .hour-card img {
        width: 40px !important;
        height: 40px !important;
    }
}