/**
 * Landing Page CSS - Estilos para la página de inicio
 * Basado en el diseño de referencia de AI Partner
 */

/* Background Image */
.landing-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background-image: url('/recursos/_ (4).jpeg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    min-width: 100vw;
    content-visibility: auto;
}

@media (max-width: 768px) {
    .landing-background {
        background-attachment: scroll;
        background-size: cover;
        background-position: center top;
        background-repeat: no-repeat;
    }
}

@media (orientation: portrait) and (max-width: 768px) {
    .landing-background {
        background-size: cover;
        background-position: center 30%;
        min-height: 100vh;
    }
}

@media (orientation: landscape) and (max-width: 768px) {
    .landing-background {
        background-size: cover;
        background-position: center center;
        min-height: 100vh;
    }
}

@media (max-width: 480px) {
    .landing-background {
        background-size: cover;
        background-position: center 25%;
    }
}

/* Glassmorphism Overlay */
.glass-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: rgba(0, 0, 0, 0.4);
}

/* Header Transparente */
.landing-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100vw;
    z-index: 999;
    background: transparent;
    padding: 60px 32px 24px 32px;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

.landing-header-logo {
    max-width: 1200px;
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    object-position: center;
}

/* Si es texto en lugar de imagen */
.landing-header-logo:not(img) {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: 0.1em;
    text-align: center;
}

@media (max-width: 768px) {
    .landing-header {
        padding: 40px 20px 16px 20px;
    }

    .landing-header-logo {
        max-width: 100%;
        width: 100%;
        height: auto;
    }
    
    .landing-header-logo:not(img) {
        font-size: 1.25rem;
    }
}

/* Footer Transparente */
.landing-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: 100vw;
    z-index: 999;
    background: transparent;
    padding: 16px 32px 60px 32px;
    margin: 0;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

.landing-footer-content {
    max-width: min(1200px, 100%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-width: 0;
}

.landing-footer-contact {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: #ffffff;
    font-size: 0.875rem;
    line-height: 1.4;
}

.landing-footer-contact a {
    color: #ffffff;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.landing-footer-contact a:hover {
    opacity: 1;
}

.landing-footer-signature-link {
    display: inline-flex;
    align-items: center;
    height: auto;
    width: auto;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.landing-footer-signature-link:hover {
    opacity: 1;
}

.landing-footer-signature-link img {
    height: 2rem;
    width: auto;
    display: block;
}

@media (max-width: 768px) {
    .landing-footer {
        padding: 12px 20px 40px 20px;
    }

    .landing-footer-content {
        max-width: 100%;
    }

    .landing-footer-contact {
        font-size: 0.75rem;
    }

    .landing-footer-signature-link img {
        height: 1.6rem;
    }
}

/* Centered Content */
.landing-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    width: 100%;
    max-width: 500px;
    padding: 2rem;
}

.logo-section {
    display: none;
}

.header-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    visibility: visible !important;
    opacity: 1 !important;
    width: fit-content;
}

.auth-btn {
    padding: 0.625rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-family: inherit;
    text-decoration: none;
    display: inline-block;
}

.auth-btn.login {
    background: transparent;
    color: #ffffff;
    border: 1px solid #ffffff;
}

.auth-btn.login:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transform: translateY(-1px);
}

.auth-btn.register {
    background: #ffffff;
    color: #000000;
    border: none;
}

.auth-btn.register:hover {
    background: #f3f4f6;
    color: #000000;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    .landing-content {
        gap: 2rem;
        padding: 1.5rem;
    }

    .auth-btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.9rem;
    }

    .header-actions {
        gap: 0.75rem;
        flex-direction: row;
        width: 100%;
    }
}

/* Login Modal */
.login-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100vw;
    height: 100%;
    z-index: 2000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    padding: 1rem;
    box-sizing: border-box;
}

.login-modal.active {
    display: flex;
}

/* Modal login: tamaño pequeño fijo (como en commit ce5eeb81) y tema oscuro */
.login-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color, rgba(42, 47, 58, 0.4));
    border-radius: 16px;
    padding: 2.5rem;
    width: 420px;
    max-width: calc(100vw - 2rem);
    flex: 0 0 auto;
    box-shadow: var(--shadow-floating);
    animation: modalSlideIn 0.3s ease-out;
    position: relative;
    box-sizing: border-box;
}

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

.login-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.login-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.close-btn,
.modal-close {
    background: transparent;
    border: none;
    color: var(--text-muted, rgba(242, 243, 245, 0.5));
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover,
.modal-close:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.login-card .form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary, rgba(242, 243, 245, 0.7));
}

.login-card .form-input {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color, rgba(42, 47, 58, 0.4));
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-primary);
    background: var(--bg-secondary);
    transition: all 0.2s ease;
}

.login-card .form-input:focus {
    outline: none;
    border-color: var(--accent-yellow);
    box-shadow: 0 0 0 2px var(--border-color);
}

.login-card .form-input::placeholder {
    color: var(--text-muted, rgba(242, 243, 245, 0.5));
}

.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-toggle,
.password-toggle-btn {
    position: absolute;
    right: 0.75rem;
    background: transparent;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
    z-index: 10;
}

.password-toggle:hover,
.password-toggle-btn:hover {
    color: #1e293b;
}

.password-input-wrapper .form-input {
    padding-right: 3rem;
}

.login-card .submit-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-family: inherit;
    background: var(--accent-yellow);
    color: #0E0F12;
    margin-top: 0.5rem;
}

.login-card .submit-btn:hover {
    background: var(--accent-yellow-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-card);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Notification Messages */
.notification,
.notification-message {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3000;
    background: #ffffff;
    border-radius: 16px;
    padding: 2.5rem;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
    animation: modalSlideIn 0.3s ease-out;
}

.notification.active,
.notification-message.active {
    display: block;
}

.notification-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.notification-icon.warning {
    color: #f59e0b;
}

.notification-icon.info {
    color: #3b82f6;
}

.notification-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}

.notification-text {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.notification-btn,
.btn.btn-accent {
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-family: inherit;
    background: #000000;
    color: #ffffff;
}

.notification-btn:hover,
.btn.btn-accent:hover {
    background: #374151;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    .login-card {
        padding: 2rem 1.5rem;
        width: 100%;
        max-width: 420px;
    }

    .login-header h2 {
        font-size: 1.25rem;
    }
}

