/*
Theme Name: Hoteles STECK
Theme URI: https://hoteles-steck.com
Description: Sistema de Gestión Hotelera Profesional
Version: 1.0.0
Author: Sistema STECK
Author URI: https://hoteles-steck.com
Text Domain: hoteles-steck

Ubicación: /wp-content/themes/hoteles-steck/style.css
*/

/* ======================================== 
   RESET Y VARIABLES
   ======================================== */

:root {
    --primary: #667eea;
    --secondary: #764ba2;
    --success: #27ae60;
    --danger: #e74c3c;
    --warning: #f39c12;
    --info: #3498db;
    --dark: #2c3e50;
    --light: #ecf0f1;
    --white: #ffffff;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-lg: rgba(0, 0, 0, 0.2);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: var(--dark);
    overflow-x: hidden;
}

/* ======================================== 
   ✨ ESTILOS MODERNOS DE LOGIN - REEMPLAZAR DESDE LÍNEA 74
   ======================================== */

/* Animación de burbujas mejorada */
.bubbles-container {
    position: fixed;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
}

.bubble {
    position: absolute;
    bottom: -150px;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.05));
    border-radius: 50%;
    opacity: 0.7;
    animation: rise 15s infinite ease-in;
    box-shadow: 0 8px 32px rgba(255, 255, 255, 0.1);
}

.bubble:nth-child(1) { width: 60px; height: 60px; left: 5%; animation-duration: 12s; }
.bubble:nth-child(2) { width: 30px; height: 30px; left: 15%; animation-duration: 9s; animation-delay: 1s; }
.bubble:nth-child(3) { width: 80px; height: 80px; left: 25%; animation-duration: 14s; animation-delay: 2s; }
.bubble:nth-child(4) { width: 100px; height: 100px; left: 40%; animation-duration: 16s; }
.bubble:nth-child(5) { width: 45px; height: 45px; left: 50%; animation-duration: 11s; animation-delay: 3s; }
.bubble:nth-child(6) { width: 70px; height: 70px; left: 60%; animation-duration: 13s; }
.bubble:nth-child(7) { width: 120px; height: 120px; left: 70%; animation-duration: 18s; animation-delay: 1s; }
.bubble:nth-child(8) { width: 35px; height: 35px; left: 80%; animation-duration: 10s; }
.bubble:nth-child(9) { width: 25px; height: 25px; left: 85%; animation-duration: 8s; animation-delay: 2s; }
.bubble:nth-child(10) { width: 90px; height: 90px; left: 92%; animation-duration: 15s; }

@keyframes rise {
    0% {
        bottom: -150px;
        transform: translateX(0) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    50% {
        transform: translateX(150px) scale(1.2);
        opacity: 0.9;
    }
    100% {
        bottom: 110vh;
        transform: translateX(-100px) scale(0.8);
        opacity: 0;
    }
}

/* ======================================== 
   CONTENEDOR DE LOGIN MODERNO
   ======================================== */

.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 30px;
    position: relative;
    perspective: 1000px;
}

.login-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 60px 50px;
    max-width: 520px;
    width: 100%;
    box-shadow: 
        0 30px 90px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.login-container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #667eea, #764ba2, #f093fb, #667eea);
    border-radius: 30px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s;
    animation: borderGlow 3s infinite;
}

.login-container:hover::before {
    opacity: 1;
}

@keyframes borderGlow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ======================================== 
   LOGO Y HEADER
   ======================================== */

.login-logo {
    text-align: center;
    margin-bottom: 35px;
}

.login-logo img {
    max-width: 140px;
    height: auto;
    animation: float 4s ease-in-out infinite;
    filter: drop-shadow(0 10px 20px rgba(102, 126, 234, 0.3));
    transition: transform 0.3s;
}

.login-logo img:hover {
    transform: scale(1.1) rotate(5deg);
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
    }
    50% { 
        transform: translateY(-15px) rotate(3deg); 
    }
}

.login-title {
    font-size: 38px;
    font-weight: 800;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
    letter-spacing: -1px;
    text-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.login-subtitle {
    text-align: center;
    color: #7f8c8d;
    font-size: 15px;
    margin-bottom: 35px;
    font-weight: 500;
}

/* ======================================== 
   TABS MODERNOS
   ======================================== */

.login-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 35px;
    padding: 6px;
    background: rgba(102, 126, 234, 0.08);
    border-radius: 15px;
}

.tab-button {
    flex: 1;
    padding: 14px;
    border: none;
    background: transparent;
    color: #7f8c8d;
    font-size: 16px;
    font-weight: 700;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
}

.tab-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.tab-button:hover {
    color: #667eea;
    transform: translateY(-2px);
}

.tab-button:hover::before {
    left: 100%;
}

.tab-button.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 
        0 8px 24px rgba(102, 126, 234, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    transform: translateY(-2px);
}

/* ======================================== 
   FORMULARIOS MODERNOS
   ======================================== */

.login-form {
    display: none;
    animation: fadeIn 0.5s ease-out;
}

.login-form.active {
    display: block;
}

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

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: flex;
    align-items: center;
    font-size: 15px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
    transition: color 0.3s;
}

.form-group label i {
    margin-right: 10px;
    font-size: 20px;
    color: #667eea;
    transition: transform 0.3s;
}

.form-group:focus-within label {
    color: #667eea;
}

.form-group:focus-within label i {
    transform: scale(1.2);
}

.form-group input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    background: rgba(248, 249, 250, 0.8);
    backdrop-filter: blur(10px);
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 
        0 0 0 4px rgba(102, 126, 234, 0.1),
        0 8px 24px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.toggle-password {
    position: absolute;
    right: 20px;
    top: 52px;
    cursor: pointer;
    color: #7f8c8d;
    font-size: 20px;
    transition: all 0.3s;
}

.toggle-password:hover {
    color: #667eea;
    transform: scale(1.2);
}

/* ======================================== 
   BOTONES MEJORADOS
   ======================================== */

.btn-login {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 200% 200%;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-login:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.5);
    background-position: 100% 0;
}

.btn-login:hover::before {
    left: 100%;
}

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

.btn-login.loading {
    pointer-events: none;
    opacity: 0.7;
    animation: pulse 2s infinite;
}

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

.btn-login.loading .btn-text {
    opacity: 0;
}

.btn-login.loading .btn-loader {
    display: block;
}

.btn-loader {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ======================================== 
   CEO WELCOME MEJORADO
   ======================================== */

.ceo-welcome {
    text-align: center;
    margin-bottom: 35px;
    padding: 25px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 15px;
    border: 2px solid rgba(102, 126, 234, 0.2);
    position: relative;
    overflow: hidden;
}

.ceo-welcome::before {
    content: '👑';
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 100px;
    opacity: 0.1;
    transform: rotate(25deg);
}

.ceo-welcome h3 {
    font-size: 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
    font-weight: 800;
}

.ceo-welcome p {
    color: #7f8c8d;
    font-size: 15px;
    font-weight: 600;
}

/* ======================================== 
   ALERTAS MODERNAS
   ======================================== */

.alert {
    padding: 16px 20px;
    border-radius: 12px;
    margin-top: 20px;
    font-size: 15px;
    animation: slideDown 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    font-weight: 600;
    border: 2px solid;
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.alert-error {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border-color: #e74c3c;
}

.alert-error::before {
    content: '⚠️';
    font-size: 20px;
}

.alert-success {
    background: rgba(39, 174, 96, 0.1);
    color: #27ae60;
    border-color: #27ae60;
}

.alert-success::before {
    content: '✅';
    font-size: 20px;
}

/* ======================================== 
   FOOTER MEJORADO
   ======================================== */

.login-footer {
    text-align: center;
    margin-top: 35px;
    padding-top: 25px;
    border-top: 2px solid rgba(102, 126, 234, 0.1);
}

.login-footer p {
    font-size: 14px;
    color: #7f8c8d;
    margin: 8px 0;
    font-weight: 500;
}

.shield-icon {
    font-size: 18px;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

.copyright {
    font-size: 12px !important;
    color: #bdc3c7 !important;
}

/* ======================================== 
   PANTALLA DE CARGA MEJORADA
   ======================================== */

.loading-screen {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.98) 0%, rgba(118, 75, 162, 0.98) 100%);
    backdrop-filter: blur(10px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.loading-screen.active {
    display: flex;
}

.loader-spinner {
    width: 80px;
    height: 80px;
    border: 6px solid rgba(255, 255, 255, 0.2);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.5);
}

.loading-text {
    margin-top: 30px;
    font-size: 18px;
    color: white;
    font-weight: 700;
    animation: pulse 2s infinite;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* ======================================== 
   🎨 TECLADO NUMÉRICO ESTILO NEQUI
   ======================================== */

/* Contenedor del input de contraseña */
.password-input-container {
    position: relative;
    margin: 25px 0;
}

/* Display visual de la contraseña */
.password-display {
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    padding: 18px 20px;
    text-align: center;
    font-size: 28px;
    letter-spacing: 12px;
    color: #2c3e50;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.password-display.empty {
    color: #bdc3c7;
    font-size: 16px;
    letter-spacing: normal;
}

.password-display:focus-within {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

/* Teclado numérico */
.numeric-keyboard {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 25px;
    padding: 0 10px;
}

/* Botones del teclado */
.key-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 24px;
    font-weight: 700;
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    overflow: hidden;
}

.key-button::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.3s, height 0.3s;
}

.key-button:hover::before {
    width: 100%;
    height: 100%;
}

.key-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.key-button:active {
    transform: scale(0.95);
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

/* Botón borrar */
.key-button.key-delete {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.key-button.key-delete:hover {
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.5);
}

/* Botón vacío (espacio) */
.key-button.key-empty {
    background: transparent;
    box-shadow: none;
    pointer-events: none;
}

/* Animación al presionar */
@keyframes keyPress {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(0.9); }
}

.key-button.pressed {
    animation: keyPress 0.2s ease;
}

/* Toggle mostrar/ocultar contraseña */
.toggle-password-view {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #667eea;
    font-size: 22px;
    cursor: pointer;
    padding: 8px;
    transition: all 0.3s ease;
    z-index: 10;
}

.toggle-password-view:hover {
    transform: translateY(-50%) scale(1.2);
    color: #764ba2;
}

/* Indicador de longitud */
.password-length-indicator {
    text-align: center;
    margin-top: 10px;
    font-size: 13px;
    color: #7f8c8d;
    font-weight: 500;
    transition: all 0.3s ease;
}

.password-length-indicator.complete {
    color: #27ae60;
    font-weight: 700;
    transform: scale(1.05);
}

/* Animación de entrada */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.numeric-keyboard {
    animation: slideInUp 0.4s ease-out;
}

/* Responsive para móviles */
@media (max-width: 480px) {
    .numeric-keyboard {
        gap: 10px;
        padding: 0 5px;
    }
    
    .key-button {
        padding: 18px;
        font-size: 22px;
        border-radius: 12px;
    }
    
    .password-display {
        font-size: 24px;
        padding: 15px;
        min-height: 55px;
    }
}

/* Efecto ripple al tocar */
.key-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.key-button:active::after {
    width: 200%;
    height: 200%;
}
/* ======================================== 
   RESPONSIVE MEJORADO
   ======================================== */

@media (max-width: 768px) {
    .login-container {
        padding: 40px 30px;
        border-radius: 20px;
    }
    
    .login-title {
        font-size: 30px;
    }
    
    .bubble {
        display: none;
    }
    
    .login-tabs {
        flex-direction: column;
        gap: 10px;
    }
    
    .tab-button {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .login-wrapper {
        padding: 20px;
    }
    
    .login-container {
        padding: 30px 20px;
    }
    
    .login-title {
        font-size: 26px;
    }
    
    .form-group input {
        padding: 14px 16px;
        font-size: 15px;
    }
    
    .btn-login {
        padding: 16px;
        font-size: 16px;
    }
}



/* ======================================== 
   EFECTOS ADICIONALES
   ======================================== */

/* Efecto de brillo en inputs */
@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

.form-group input:focus {
    background: 
        linear-gradient(90deg, 
            rgba(255, 255, 255, 0) 0%, 
            rgba(102, 126, 234, 0.1) 50%, 
            rgba(255, 255, 255, 0) 100%
        ) white;
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* Efecto de ondas al hacer click */
.btn-login::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-login:active::after {
    width: 300px;
    height: 300px;
}