/* Reset básico */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}
/* Fondo con imagen */
body {
    background-image: url('img/fondopc1.webp');
    background-size: cover;
    background-position: center 65%;
    background-repeat: no-repeat;
}

/* Versión móvil */
@media (max-width: 768px) {
    body {
        background-image: url('img/fondo-movil.jpg');
        background-position: center;
    }
    .whatsapp-btn {
        bottom: 25px;
        left: 25px;
    }

    .whatsapp-btn img {
        width: 85px;
        height: 85px;
    }
}

/* Botón de WhatsApp */
.whatsapp-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
}

/* Imagen */
.whatsapp-btn img {
    width: 60px;
    height: 60px;
    cursor: pointer;
    border-radius: 50%;

    /* Animación */
    animation: latido 1.5s infinite;
    transition: transform 0.3s;
}

/* Hover (PC) */
.whatsapp-btn img:hover {
    transform: scale(1.2);
}

/* 🔥 Animación tipo latido */
@keyframes latido {
    0% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.1);
    }
    50% {
        transform: scale(1);
    }
    75% {
        transform: scale(1.15);
    }
    100% {
        transform: scale(1);
    }
}
.whatsapp-btn img:hover {
    animation: none;
    transform: scale(1.2);
}
/* =========================
   HEADER + LOGIN
========================= */
.header {
    display: flex;
    justify-content: flex-end;
    padding: 20px;
}

.logo {
    height: 40px;
}

.login-btn {
    cursor: pointer;
}

.login-btn img {
    width: 28px;
    transition: 0.3s;
}

.login-btn img:hover {
    transform: scale(1.1);
}
@media (max-width: 768px) {

    .header {
        padding: 10px 15px;
    }

    .logo {
        height: 30px;
    }

    .login-btn img {
        width: 24px;
    }

}
/* =========================
   LOGIN
========================= */

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: calc(100vh - 70px); /* respeta header */
}

.login-box {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    padding: 35px;
    border-radius: 15px;
    width: 70%;
    max-width: 280px;

    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);

    text-align: center;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}
.login-box {
    position: relative;
    overflow: hidden;
}
.login-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;

    background: linear-gradient(
        120deg,
        transparent,
        rgba(255,255,255,0.2),
        transparent
    );

    transform: rotate(25deg);

    pointer-events: none; /* 🔥 ESTO SOLUCIONA TODO */
}
/* 🔥 esto arregla el espaciado real */
.login-box > * {
    margin: 0;
}
.login-box form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px; /* 🔥 separación entre inputs y botón */
}
/* Logo dentro del login */
.login-box .logo-login {
    width: 110px;
    margin-bottom: 15px;
}

/* Inputs */
.login-box input {
    width: 100%;
    max-width: 240px; /* 🔥 controla el ancho visual */
    padding: 12px;

    border-radius: 8px;
    border: none;

    background: rgba(255,255,255,0.2);
    color: #fff;

    outline: none;
}

.login-box input::placeholder {
    color: rgba(255,255,255,0.7);
}

.login-box input:focus {
    background: rgba(255,255,255,0.3);
}

/* Botón */
.login-box button {
    width: 100%;
    max-width: 240px;
    padding: 12px;

    background: rgba(255,255,255,0.25);
    color: white;

    border: none;
    border-radius: 8px;

    cursor: pointer;
    font-weight: bold;

    transition: 0.3s;
}

.login-box button:hover {
    background: rgba(255,255,255,0.5);
    transform: translateY(-2px);
}
.login-box button:active {
    transform: scale(0.97);
}
/* Fondo exclusivo para login */
.login-page {
    background-image: url('img/fondopc2.webp');
}
.login-box h3 {
    color: white;
}
/* Error */
#error {
    color: #ff6b6b;
    font-size: 13px;
    margin-top: 10px;
}
.login-title {
    color: white;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 5px;
}

.login-subtitle {
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    margin-bottom: 20px;
}
/* Versión móvil login */
@media (max-width: 768px) {
    .login-page {
        background-image: url('img/fondo-movil.jpg');
    }
}