html{
    font-family: 'Open Sans', sans-serif;
}

body{
	margin: 0;
	height: 100vh;
	display: flex;
	flex-direction: column;
	background: linear-gradient(270deg, #0d0d0d, #1a1a1a, #2b2b2b, #0d0d0d);
	background-size: 600% 600%;
	animation: gradientShift 18s ease infinite;
	color: #fff;
}

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

/* HEADER */
header{
	padding: 10px;
	display: flex;
	justify-content: center; /* empieza centrado */
	align-items: center;
	overflow: hidden;
}

.logo-wrap{
	display: flex;
	align-items: center;
	gap: 12px;
}

header img{
    height: 75px;
    opacity: 0;
    transform: scale(0.8);
    animation: logoIn 0.8s ease forwards;

}
@keyframes logoIn{
    to { opacity: 1; transform: scale(1); }
}

header h1{
    font-size: 32px;
    font-weight: 600;
    margin: 0;
    color: white;
    opacity: 0;
    transform: translateX(50px);
    animation: nameIn 0.8s ease forwards;
    animation-delay: 1s; /* aparece después del logo */
}

@keyframes nameIn{
    to { opacity: 1; transform: translateX(0); }
}

/* Animación para empujar a la izquierda */
header{
    animation: alignLeft 2s ease forwards;
    animation-delay: 1s; /* justo cuando aparece el nombre */
}

/* FRANJA ANIMADA */
.franja{
    height: 3px;
    background: linear-gradient(90deg, #000, #beb194, #000);
    background-size: 200% 100%;
    animation: lightMove 8s linear infinite;
}

@keyframes lightMove{
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* TARJETA LOGIN (resto como antes) */
main{
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-card{
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(190,177,148,0.4);
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 360px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    backdrop-filter: blur(12px);
    opacity: 0;
    transform: scale(0.95);
    animation: fadeInScale 1.5s forwards ease-out 0.5s; /* después del header */
}

@keyframes fadeInScale{
    to { opacity: 1; transform: scale(1); }
}

.login-card h2{
    margin-bottom: 25px;
    font-weight: 600;
    font-size: 22px;
    color: #beb194;
}

.form-group{ margin-bottom: 18px; text-align: left; }
.form-group label{ font-size: 14px; color: #ccc; margin-bottom: 6px; display: block; }
.form-group input{
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 8px;
    font-size: 14px;
    background: rgba(0,0,0,0.3);
    color: #fff;
}
.form-group input:focus{
    outline: none;
    border-color: #beb194;
    box-shadow: 0 0 6px rgba(190,177,148,0.6);
}

.btn{
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #000;
    background: #beb194;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.btn::before{
    content: "";
    position: absolute;
    top: 0; left: -75%;
    width: 50%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.7), transparent);
    transform: skewX(-25deg);
}
.btn:hover::before{ animation: shine 2s forwards; }
@keyframes shine{ 100% { left: 125%; } }

.forgot{
    display: block;
    margin-top: 12px;
    font-size: 13px;
    color: #aaa;
    text-decoration: none;
}
.forgot:hover{ color: #beb194; }

.apps{ margin-top: 30px; }
.apps p{ font-size: 14px; margin-bottom: 12px; color: #eee; }
.apps a img,
.apps div img{
    height: 20px;
    margin: 0 6px;
    filter: grayscale(100%) brightness(1.2);
    transition: 0.2s;
}
.apps a img:hover,
.apps div img:hover{
    filter: none;
    transform: translateY(-3px) scale(1.05);
}

footer {
    text-align: center;
    padding: 15px;
    font-size: 12px;
    color: #bbb;
}

.image-container {
    display: inline-block;
    position: relative;
    cursor: pointer;
}

.image-container img {
    max-width: 200px;
    border-radius: 8px;
}

/* Texto inicial (oculto) */
.texto {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 1rem;
    border-radius: 6px;
    opacity: 0;
    transition: opacity 1s ease; /* <-- fade in/out */
    display: none;
}

/* Clase activa */
.texto.visible {
    opacity: 1;
    display: block;
}